From 18b4cb754a48a90a298169d5a1adac40ccc1984a Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Wed, 10 Jul 2013 09:01:56 -0400
Subject: typo and whitespace correction
---
js/reveal.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 033fe31..b683eba 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1526,7 +1526,7 @@ var Reveal = (function(){
state = state.concat( slideState.split( ' ' ) );
}
- // If this slide has a data-autoslide attribtue associated use this as
+ // If this slide has a data-autoslide attribute associated use this as
// autoSlide value otherwise use the global configured time
var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
if( slideAutoSlide ) {
@@ -2119,7 +2119,7 @@ var Reveal = (function(){
var value = config.keyboard[ key ];
- // Calback function
+ // Callback function
if( typeof value === 'function' ) {
value.apply( null, [ event ] );
}
--
cgit v1.2.3
From 0cb6eab9795c1fef956a44722b4bfedb1e7378d5 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 14 Jul 2013 17:35:49 -0400
Subject: fix initial auto-slide overridev #525
---
js/reveal.js | 2 ++
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index b683eba..02b8932 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1536,6 +1536,8 @@ var Reveal = (function(){
autoSlide = config.autoSlide;
}
+ cueAutoSlide();
+
}
else {
// Since there are no slides we can't be anywhere beyond the
diff --git a/js/reveal.min.js b/js/reveal.min.js
index b8f3b27..3f39466 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-10, 08:58)
+ * reveal.js 2.5.0 (2013-07-14, 17:34)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='
',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Rt=Rt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Nt=l?parseInt(l,10):Pt.autoSlide}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Rt=Rt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Nt=l?parseInt(l,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From bf864c7a0d52cccff02f81f479c0f4d6264fb093 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 14 Jul 2013 18:19:40 -0400
Subject: ensure all future fragments are invisible #473
---
js/reveal.js | 7 +++++++
js/reveal.min.js | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 02b8932..dbe9be6 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1507,6 +1507,13 @@ var Reveal = (function(){
else if( i > index ) {
// Any element subsequent to index is given the 'future' class
element.classList.add( reverse ? 'past' : 'future' );
+
+ var fragments = toArray( element.querySelectorAll( '.fragment.visible' ) );
+
+ // No fragments in future slides should be visible ahead of time
+ while( fragments.length ) {
+ fragments.pop().classList.remove( 'visible' );
+ }
}
// If this element contains vertical slides
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 3f39466..2792c37 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-14, 17:34)
+ * reveal.js 2.5.0 (2013-07-14, 18:19)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Rt=Rt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Nt=l?parseInt(l,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8f47bd04e66ade1162c867a7ca0e46a205e579fa Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Tue, 16 Jul 2013 22:46:13 -0400
Subject: document 'none' background transition
---
README.md | 2 +-
js/reveal.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/README.md b/README.md
index 52c3fc3..c4e084b 100644
--- a/README.md
+++ b/README.md
@@ -110,7 +110,7 @@ Reveal.initialize({
transitionSpeed: 'default', // default/fast/slow
// Transition style for full page backgrounds
- backgroundTransition: 'default' // default/linear
+ backgroundTransition: 'default' // default/linear/none
});
```
diff --git a/js/reveal.js b/js/reveal.js
index dbe9be6..48cba2c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -83,7 +83,7 @@ var Reveal = (function(){
transitionSpeed: 'default', // default/fast/slow
// Transition style for full page slide backgrounds
- backgroundTransition: 'default', // default/linear
+ backgroundTransition: 'default', // default/linear/none
// Script dependencies to load
dependencies: []
--
cgit v1.2.3
From 1bb810e072869702fa6aafe085787a44b54d34f2 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Thu, 18 Jul 2013 21:53:00 -0400
Subject: add optional 'o' key to toggle overview #491
---
README.md | 2 +-
js/reveal.js | 3 ++-
js/reveal.min.js | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
(limited to 'js/reveal.js')
diff --git a/README.md b/README.md
index 5851971..e741139 100644
--- a/README.md
+++ b/README.md
@@ -400,7 +400,7 @@ By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/
### Overview mode
-Press "Esc" key to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
+Press "Esc" or "o" keys to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
as if you were at 1,000 feet above your presentation. The overview mode comes with a few API hooks:
```javascript
diff --git a/js/reveal.js b/js/reveal.js
index 48cba2c..651b1be 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2187,7 +2187,8 @@ var Reveal = (function(){
if( triggered ) {
event.preventDefault();
}
- else if ( event.keyCode === 27 && supports3DTransforms ) {
+ // ESC or O key
+ else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && supports3DTransforms ) {
toggleOverview();
event.preventDefault();
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 2792c37..9034854 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-14, 18:19)
+ * reveal.js 2.5.0 (2013-07-18, 21:51)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 5cb9a58938a5808c83d01f3c73ccb36edcbe0756 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 19 Jul 2013 09:23:17 -0400
Subject: remove delay from url update #530
---
js/reveal.js | 7 +++----
js/reveal.min.js | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 651b1be..560c94f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1338,10 +1338,6 @@ var Reveal = (function(){
activateOverview();
}
- // Update the URL hash after a delay since updating it mid-transition
- // is likely to cause visual lag
- writeURL( 1500 );
-
// Find the current horizontal slide and any possible vertical slides
// within it
var currentHorizontalSlide = horizontalSlides[ indexh ],
@@ -1413,6 +1409,9 @@ var Reveal = (function(){
updateProgress();
updateBackground();
+ // Update the URL hash
+ writeURL();
+
}
/**
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 9034854..30d35c3 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-18, 21:51)
+ * reveal.js 2.5.0 (2013-07-19, 09:22)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W(),$()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8dcf324f7a7362fb3bcc758b2d1726be9bcad807 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 19 Jul 2013 09:35:49 -0400
Subject: only call slide() after hash changes if indices have changed #529
---
js/reveal.js | 4 +++-
js/reveal.min.js | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 560c94f..eb23644 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1819,7 +1819,9 @@ var Reveal = (function(){
var h = parseInt( bits[0], 10 ) || 0,
v = parseInt( bits[1], 10 ) || 0;
- slide( h, v );
+ if( h !== indexh || v !== indexv ) {
+ slide( h, v );
+ }
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 30d35c3..8bd248a 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-19, 09:22)
+ * reveal.js 2.5.0 (2013-07-19, 09:34)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W(),$()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W(),$()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Ct||i!==Dt)&&O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 4a68d2d6a580d3ccd59b9648bb447d422829bb9a Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 20 Jul 2013 22:51:52 -0400
Subject: correction to bug introduced via #529
---
js/reveal.js | 4 ++--
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index eb23644..04e535d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -93,8 +93,8 @@ var Reveal = (function(){
autoSlide = 0,
// The horizontal and vertical index of the currently active slide
- indexh = 0,
- indexv = 0,
+ indexh,
+ indexv,
// The previous and current slide HTML elements
previousSlide,
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 8bd248a..a488209 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-19, 09:34)
+ * reveal.js 2.5.0 (2013-07-20, 22:50)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Ct,indexv:Dt,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Ct)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Ct?Dt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Ct,indexv:Dt,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Ct,Dt),B(),m("overviewhidden",{indexh:Ct,indexv:Dt,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Dt);var a=Rt.concat();Rt.length=0;var i=Ct,s=Dt;Ct=z(xt,void 0===e?Ct:e),Dt=z(Tt,void 0===t?Dt:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[Ct],v=f.querySelectorAll("section");if(At=v[Dt]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Ct!==i||Dt!==s;g?m("slidechanged",{indexh:Ct,indexv:Dt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W(),$()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,B()}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Ct>t?n:t>Ct?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Ct>0||Pt.loop,right:e.length-1>Ct||Pt.loop,up:Dt>0,down:t.length-1>Dt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Ct,Dt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Ct||i!==Dt)&&O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Ct>0||Dt>0)&&(t+=Ct),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function V(e){var t,n=Ct,r=Dt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Ct+1):(M()||Q()===!1)&&U().left&&O(Ct-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Ct-1):(M()||Z()===!1)&&U().right&&O(Ct+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Ct,Dt-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Ct,Dt+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Ct+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Ct-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Ct=0,Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From e8d257ec772a3ff7fafb6d38cc278a413094605f Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 20 Jul 2013 22:56:48 -0400
Subject: remove 'rolling links' #532
---
README.md | 3 --
css/reveal.css | 84 ------------------------------------------------------
css/reveal.min.css | 2 +-
js/reveal.js | 55 -----------------------------------
js/reveal.min.js | 4 +--
5 files changed, 3 insertions(+), 145 deletions(-)
(limited to 'js/reveal.js')
diff --git a/README.md b/README.md
index e741139..cf3c98b 100644
--- a/README.md
+++ b/README.md
@@ -100,9 +100,6 @@ Reveal.initialize({
// Enable slide navigation via mouse wheel
mouseWheel: false,
- // Apply a 3D roll to links on hover
- rollingLinks: true,
-
// Transition style
transition: 'default', // default/cube/page/concave/zoom/linear/fade/none
diff --git a/css/reveal.css b/css/reveal.css
index b155beb..0037a26 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -464,90 +464,6 @@ body {
}
-/*********************************************
- * ROLLING LINKS
- *********************************************/
-
-.reveal .roll {
- display: inline-block;
- line-height: 1.2;
- overflow: hidden;
-
- vertical-align: top;
-
- -webkit-perspective: 400px;
- -moz-perspective: 400px;
- -ms-perspective: 400px;
- perspective: 400px;
-
- -webkit-perspective-origin: 50% 50%;
- -moz-perspective-origin: 50% 50%;
- -ms-perspective-origin: 50% 50%;
- perspective-origin: 50% 50%;
-}
- .reveal .roll:hover {
- background: none;
- text-shadow: none;
- }
-.reveal .roll span {
- display: block;
- position: relative;
- padding: 0 2px;
-
- pointer-events: none;
-
- -webkit-transition: all 400ms ease;
- -moz-transition: all 400ms ease;
- -ms-transition: all 400ms ease;
- transition: all 400ms ease;
-
- -webkit-transform-origin: 50% 0%;
- -moz-transform-origin: 50% 0%;
- -ms-transform-origin: 50% 0%;
- transform-origin: 50% 0%;
-
- -webkit-transform-style: preserve-3d;
- -moz-transform-style: preserve-3d;
- -ms-transform-style: preserve-3d;
- transform-style: preserve-3d;
-
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-}
- .reveal .roll:hover span {
- background: rgba(0,0,0,0.5);
-
- -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
- -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
- -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
- transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
- }
-.reveal .roll span:after {
- content: attr(data-title);
-
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- padding: 0 2px;
-
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-
- -webkit-transform-origin: 50% 0%;
- -moz-transform-origin: 50% 0%;
- -ms-transform-origin: 50% 0%;
- transform-origin: 50% 0%;
-
- -webkit-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
- -moz-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
- -ms-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
- transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
-}
-
-
/*********************************************
* SLIDES
*********************************************/
diff --git a/css/reveal.min.css b/css/reveal.min.css
index 5937a36..3883281 100644
--- a/css/reveal.min.css
+++ b/css/reveal.min.css
@@ -4,4 +4,4 @@
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
- */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
+ */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
diff --git a/js/reveal.js b/js/reveal.js
index 04e535d..107b67b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -67,9 +67,6 @@ var Reveal = (function(){
// Enable slide navigation via mouse wheel
mouseWheel: false,
- // Apply a 3D roll to links on hover
- rollingLinks: true,
-
// Opens links in an iframe preview overlay
previewLinks: false,
@@ -478,14 +475,6 @@ var Reveal = (function(){
document.removeEventListener( 'mousewheel', onDocumentMouseScroll, false );
}
- // Rolling 3D links
- if( config.rollingLinks ) {
- enableRollingLinks();
- }
- else {
- disableRollingLinks();
- }
-
// Iframe link previews
if( config.previewLinks ) {
enablePreviewLinks();
@@ -708,50 +697,6 @@ var Reveal = (function(){
}
- /**
- * Wrap all links in 3D goodness.
- */
- function enableRollingLinks() {
-
- if( supports3DTransforms && !( 'msPerspective' in document.body.style ) ) {
- var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a:not(.image)' );
-
- for( var i = 0, len = anchors.length; i < len; i++ ) {
- var anchor = anchors[i];
-
- if( anchor.textContent && !anchor.querySelector( '*' ) && ( !anchor.className || !anchor.classList.contains( anchor, 'roll' ) ) ) {
- var span = document.createElement('span');
- span.setAttribute('data-title', anchor.text);
- span.innerHTML = anchor.innerHTML;
-
- anchor.classList.add( 'roll' );
- anchor.innerHTML = '';
- anchor.appendChild(span);
- }
- }
- }
-
- }
-
- /**
- * Unwrap all 3D links.
- */
- function disableRollingLinks() {
-
- var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a.roll' );
-
- for( var i = 0, len = anchors.length; i < len; i++ ) {
- var anchor = anchors[i];
- var span = anchor.querySelector( 'span' );
-
- if( span ) {
- anchor.classList.remove( 'roll' );
- anchor.innerHTML = span.innerHTML;
- }
- }
-
- }
-
/**
* Bind preview frame links.
*/
diff --git a/js/reveal.min.js b/js/reveal.min.js
index a488209..1f8a55c 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-20, 22:50)
+ * reveal.js 2.5.0 (2013-07-20, 22:53)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return Ot||It?(window.addEventListener("load",L,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Rt.theme=document.querySelector("#theme"),Rt.wrapper=document.querySelector(".reveal"),Rt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Rt.background=document.createElement("div"),Rt.background.classList.add("backgrounds"),Rt.wrapper.appendChild(Rt.background)),!Rt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Rt.wrapper.appendChild(e)}if(!Rt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Rt.wrapper.appendChild(t)}if(!Rt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Rt.wrapper.appendChild(n)}if(!Rt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Rt.wrapper.appendChild(r)}Rt.progress=document.querySelector(".reveal .progress"),Rt.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Rt.controls=document.querySelector(".reveal .controls"),Rt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Rt.controlsRight=d(document.querySelectorAll(".navigate-right")),Rt.controlsUp=d(document.querySelectorAll(".navigate-up")),Rt.controlsDown=d(document.querySelectorAll(".navigate-down")),Rt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Rt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Rt.background.innerHTML="",Rt.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Rt.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),F(),setTimeout(function(){m("ready",{indexh:Et,indexv:kt,currentSlide:At})},1)}function i(e){if(Rt.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),It===!1&&(Pt.transition="linear"),Rt.wrapper.classList.add(Pt.transition),Rt.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Rt.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Rt.controls&&(Rt.controls.style.display=Pt.controls&&Rt.controls?"block":"none"),Rt.progress&&(Rt.progress.style.display=Pt.progress&&Rt.progress?"block":"none"),Pt.rtl?Rt.wrapper.classList.add("rtl"):Rt.wrapper.classList.remove("rtl"),Pt.center?Rt.wrapper.classList.add("center"):Rt.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",dt,!1),document.addEventListener("mousewheel",dt,!1)):(document.removeEventListener("DOMMouseScroll",dt,!1),document.removeEventListener("mousewheel",dt,!1)),Pt.previewLinks?g():(h(),g("[data-preview-link]")),Pt.theme&&Rt.theme){var t=Rt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Rt.theme.setAttribute("href",t))}I()}function s(){Ht=!0,window.addEventListener("hashchange",yt,!1),window.addEventListener("resize",bt,!1),Pt.touch&&(Rt.wrapper.addEventListener("touchstart",ot,!1),Rt.wrapper.addEventListener("touchmove",at,!1),Rt.wrapper.addEventListener("touchend",it,!1),window.navigator.msPointerEnabled&&(Rt.wrapper.addEventListener("MSPointerDown",st,!1),Rt.wrapper.addEventListener("MSPointerMove",ct,!1),Rt.wrapper.addEventListener("MSPointerUp",lt,!1))),Pt.keyboard&&document.addEventListener("keydown",rt,!1),Pt.progress&&Rt.progress&&Rt.progress.addEventListener("click",ut,!1),Pt.controls&&Rt.controls&&["touchstart","click"].forEach(function(e){Rt.controlsLeft.forEach(function(t){t.addEventListener(e,ft,!1)}),Rt.controlsRight.forEach(function(t){t.addEventListener(e,vt,!1)}),Rt.controlsUp.forEach(function(t){t.addEventListener(e,pt,!1)}),Rt.controlsDown.forEach(function(t){t.addEventListener(e,mt,!1)}),Rt.controlsPrev.forEach(function(t){t.addEventListener(e,gt,!1)}),Rt.controlsNext.forEach(function(t){t.addEventListener(e,ht,!1)})})}function c(){Ht=!1,document.removeEventListener("keydown",rt,!1),window.removeEventListener("hashchange",yt,!1),window.removeEventListener("resize",bt,!1),Rt.wrapper.removeEventListener("touchstart",ot,!1),Rt.wrapper.removeEventListener("touchmove",at,!1),Rt.wrapper.removeEventListener("touchend",it,!1),window.navigator.msPointerEnabled&&(Rt.wrapper.removeEventListener("MSPointerDown",st,!1),Rt.wrapper.removeEventListener("MSPointerMove",ct,!1),Rt.wrapper.removeEventListener("MSPointerUp",lt,!1)),Pt.progress&&Rt.progress&&Rt.progress.removeEventListener("click",ut,!1),Pt.controls&&Rt.controls&&["touchstart","click"].forEach(function(e){Rt.controlsLeft.forEach(function(t){t.removeEventListener(e,ft,!1)}),Rt.controlsRight.forEach(function(t){t.removeEventListener(e,vt,!1)}),Rt.controlsUp.forEach(function(t){t.removeEventListener(e,pt,!1)}),Rt.controlsDown.forEach(function(t){t.removeEventListener(e,mt,!1)}),Rt.controlsPrev.forEach(function(t){t.removeEventListener(e,gt,!1)}),Rt.controlsNext.forEach(function(t){t.removeEventListener(e,ht,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Rt.wrapper.dispatchEvent(n)}function g(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Lt,!1)})}function h(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Lt,!1)})}function y(e){b(),Rt.preview=document.createElement("div"),Rt.preview.classList.add("preview-link-overlay"),Rt.wrapper.appendChild(Rt.preview),Rt.preview.innerHTML=["",'','','',"
"].join(""),Rt.preview.querySelector("iframe").addEventListener("load",function(){Rt.preview.classList.add("loaded")},!1),Rt.preview.querySelector(".close").addEventListener("click",function(e){b(),e.preventDefault()},!1),Rt.preview.querySelector(".external").addEventListener("click",function(){b()},!1),setTimeout(function(){Rt.preview.classList.add("visible")},1)}function b(){Rt.preview&&(Rt.preview.setAttribute("src",""),Rt.preview.parentNode.removeChild(Rt.preview),Rt.preview=null)}function w(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function L(){if(Rt.wrapper&&!v()){var e=Rt.wrapper.offsetWidth,t=Rt.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Rt.slides.style.width=n+"px",Rt.slides.style.height=r+"px",Ct=Math.min(e/n,t/r),Ct=Math.max(Ct,Pt.minScale),Ct=Math.min(Ct,Pt.maxScale),void 0===Rt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Ct+") translate(50%, 50%)";Rt.slides.style.WebkitTransform=o,Rt.slides.style.MozTransform=o,Rt.slides.style.msTransform=o,Rt.slides.style.OTransform=o,Rt.slides.style.transform=o}else Rt.slides.style.zoom=Ct;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}Y()}}function E(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function k(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function S(){if(Pt.overview){Q();var e=Rt.wrapper.classList.contains("overview");Rt.wrapper.classList.add("overview"),Rt.wrapper.classList.remove("exit-overview"),clearTimeout(Wt),clearTimeout(Ut),Wt=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Et)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Et?kt:k(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",wt,!0)}else o.addEventListener("click",wt,!0)}L(),e||m("overviewshown",{indexh:Et,indexv:kt,currentSlide:At})},10)}}function A(){if(Pt.overview){clearTimeout(Wt),clearTimeout(Ut),Rt.wrapper.classList.remove("overview"),Rt.wrapper.classList.add("exit-overview"),Ut=setTimeout(function(){Rt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",wt,!0)}R(Et,kt),Z(),m("overviewhidden",{indexh:Et,indexv:kt,currentSlide:At})}}function q(e){"boolean"==typeof e?e?S():A():x()?A():S()}function x(){return Rt.wrapper.classList.contains("overview")}function T(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function M(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function P(){var e=Rt.wrapper.classList.contains("paused");Q(),Rt.wrapper.classList.add("paused"),e===!1&&m("paused")}function N(){var e=Rt.wrapper.classList.contains("paused");Rt.wrapper.classList.remove("paused"),Z(),e&&m("resumed")}function D(){C()?N():P()}function C(){return Rt.wrapper.classList.contains("paused")}function R(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=k(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&E(St.parentNode,kt);var a=Dt.concat();Dt.length=0;var i=Et,s=kt;Et=O(xt,void 0===e?Et:e),kt=O(Tt,void 0===t?kt:t),L();e:for(var c=0,l=Dt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Dt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Dt[c]),m(Dt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());x()&&S();var f=o[Et],v=f.querySelectorAll("section");if(At=v[kt]||f,n!==void 0){var p=w(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Et!==i||kt!==s;g?m("slidechanged",{indexh:Et,indexv:kt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&E(t[e],0)},0)),g&&(j(St),H(At)),z(),Y(),X(),_()}function I(){c(),s(),L(),Nt=Pt.autoSlide,Z(),n(),z(),Y(),X()}function O(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(x()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!T(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Dt=Dt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,Z()}else t=0;return t}function Y(){if(Pt.progress&&Rt.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Rt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function z(){if(Pt.controls&&Rt.controls){var e=W(),t=U();Rt.controlsLeft.concat(Rt.controlsRight).concat(Rt.controlsUp).concat(Rt.controlsDown).concat(Rt.controlsPrev).concat(Rt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Rt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Rt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Rt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Rt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Rt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Rt.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Rt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),T(At)?(t.prev&&Rt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Rt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function X(){d(Rt.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Et>t?n:t>Et?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(kt>t?"past":t>kt?"future":"present")})}),setTimeout(function(){Rt.background.classList.remove("no-transition")},1)}function W(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Et>0||Pt.loop,right:e.length-1>Et||Pt.loop,up:kt>0,down:t.length-1>kt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function U(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function H(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function j(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function F(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);R(o.h,o.v)}else R(Et,kt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Et||i!==kt)&&R(a,i)}}function _(e){if(Pt.history)if(clearTimeout(Xt),"number"==typeof e)Xt=setTimeout(_,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Et>0||kt>0)&&(t+=Et),kt>0&&(t+="/"+kt)),window.location.hash=t}}function K(e){var t,n=Et,r=kt;if(e){var o=T(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function $(){if(At&&Pt.fragments){var e=w(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),z(),!0}}return!1}function V(){if(At&&Pt.fragments){var e=w(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),z(),!0}}return!1}function Z(){clearTimeout(zt),!Nt||C()||x()||(zt=setTimeout(nt,Nt))}function Q(){clearTimeout(zt)}function B(){Pt.rtl?(x()||$()===!1)&&W().left&&R(Et+1):(x()||V()===!1)&&W().left&&R(Et-1)}function G(){Pt.rtl?(x()||V()===!1)&&W().right&&R(Et-1):(x()||$()===!1)&&W().right&&R(Et+1)}function J(){(x()||V()===!1)&&W().up&&R(Et,kt-1)}function et(){(x()||$()===!1)&&W().down&&R(Et,kt+1)}function tt(){if(V()===!1)if(W().up)J();else{var e=document.querySelector(xt+".past:nth-child("+Et+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Et-1;R(n,t)}}}function nt(){$()===!1&&(W().down?et():G()),Z()}function rt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(C()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:tt();break;case 78:case 34:nt();break;case 72:case 37:B();break;case 76:case 39:G();break;case 75:case 38:J();break;case 74:case 40:et();break;case 36:R(0);break;case 35:R(Number.MAX_VALUE);break;case 32:x()?A():e.shiftKey?tt():nt();break;case 13:x()?A():n=!1;break;case 66:case 190:case 191:D();break;case 70:M();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(q(),e.preventDefault()),Z()}}function ot(e){jt.startX=e.touches[0].clientX,jt.startY=e.touches[0].clientY,jt.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(jt.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:jt.startX,y:jt.startY}))}function at(e){if(jt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===jt.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:jt.startX,y:jt.startY});Math.abs(jt.startSpan-r)>jt.threshold&&(jt.handled=!0,jt.startSpan>r?S():A()),e.preventDefault()}else if(1===e.touches.length&&2!==jt.startCount){var o=t-jt.startX,a=n-jt.startY;o>jt.threshold&&Math.abs(o)>Math.abs(a)?(jt.handled=!0,B()):-jt.threshold>o&&Math.abs(o)>Math.abs(a)?(jt.handled=!0,G()):a>jt.threshold?(jt.handled=!0,J()):-jt.threshold>a&&(jt.handled=!0,et()),e.preventDefault()}}}function it(){jt.handled=!1}function st(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ot(e))}function ct(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],at(e))}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){if(Date.now()-Yt>600){Yt=Date.now();var t=e.detail||-e.wheelDelta;t>0?nt():tt()}}function ut(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Rt.wrapper.offsetWidth*t);R(n)}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(){F()}function bt(){L()}function wt(e){if(Ht&&x()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(A(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);R(n,r)}}}function Lt(e){var t=e.target.getAttribute("href");t&&(y(t),e.preventDefault())}var Et,kt,St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=[],Ct=1,Rt={},It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ot="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=0,zt=0,Xt=0,Wt=0,Ut=0,Ht=!1,jt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:I,slide:R,left:B,right:G,up:J,down:et,prev:tt,next:nt,prevFragment:V,nextFragment:$,navigateTo:R,navigateLeft:B,navigateRight:G,navigateUp:J,navigateDown:et,navigatePrev:tt,navigateNext:nt,layout:L,availableRoutes:W,availableFragments:U,toggleOverview:q,togglePause:D,isOverview:x,isPaused:C,addEventListeners:s,removeEventListeners:c,getIndices:K,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return Ct},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Rt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Rt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8bf19ab61f8eb0e527348110f3923a33ea937eaa Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 26 Jul 2013 09:33:25 -0400
Subject: restore rolling links.. but default to off #532
---
css/reveal.css | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
css/reveal.min.css | 2 +-
js/reveal.js | 55 +++++++++++++++++++++++++++++++++++
js/reveal.min.js | 4 +--
4 files changed, 142 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/css/reveal.css b/css/reveal.css
index 0037a26..791d768 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -1494,6 +1494,90 @@ body {
}
+/*********************************************
+ * ROLLING LINKS
+ *********************************************/
+
+.reveal .roll {
+ display: inline-block;
+ line-height: 1.2;
+ overflow: hidden;
+
+ vertical-align: top;
+
+ -webkit-perspective: 400px;
+ -moz-perspective: 400px;
+ -ms-perspective: 400px;
+ perspective: 400px;
+
+ -webkit-perspective-origin: 50% 50%;
+ -moz-perspective-origin: 50% 50%;
+ -ms-perspective-origin: 50% 50%;
+ perspective-origin: 50% 50%;
+}
+ .reveal .roll:hover {
+ background: none;
+ text-shadow: none;
+ }
+.reveal .roll span {
+ display: block;
+ position: relative;
+ padding: 0 2px;
+
+ pointer-events: none;
+
+ -webkit-transition: all 400ms ease;
+ -moz-transition: all 400ms ease;
+ -ms-transition: all 400ms ease;
+ transition: all 400ms ease;
+
+ -webkit-transform-origin: 50% 0%;
+ -moz-transform-origin: 50% 0%;
+ -ms-transform-origin: 50% 0%;
+ transform-origin: 50% 0%;
+
+ -webkit-transform-style: preserve-3d;
+ -moz-transform-style: preserve-3d;
+ -ms-transform-style: preserve-3d;
+ transform-style: preserve-3d;
+
+ -webkit-backface-visibility: hidden;
+ -moz-backface-visibility: hidden;
+ backface-visibility: hidden;
+}
+ .reveal .roll:hover span {
+ background: rgba(0,0,0,0.5);
+
+ -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
+ -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
+ -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
+ transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
+ }
+.reveal .roll span:after {
+ content: attr(data-title);
+
+ display: block;
+ position: absolute;
+ left: 0;
+ top: 0;
+ padding: 0 2px;
+
+ -webkit-backface-visibility: hidden;
+ -moz-backface-visibility: hidden;
+ backface-visibility: hidden;
+
+ -webkit-transform-origin: 50% 0%;
+ -moz-transform-origin: 50% 0%;
+ -ms-transform-origin: 50% 0%;
+ transform-origin: 50% 0%;
+
+ -webkit-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
+ -moz-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
+ -ms-transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
+ transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
+}
+
+
/*********************************************
* SPEAKER NOTES
*********************************************/
diff --git a/css/reveal.min.css b/css/reveal.min.css
index 3883281..c5c37c3 100644
--- a/css/reveal.min.css
+++ b/css/reveal.min.css
@@ -4,4 +4,4 @@
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
- */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
+ */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
diff --git a/js/reveal.js b/js/reveal.js
index 107b67b..41d3535 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -67,6 +67,9 @@ var Reveal = (function(){
// Enable slide navigation via mouse wheel
mouseWheel: false,
+ // Apply a 3D roll to links on hover
+ rollingLinks: false,
+
// Opens links in an iframe preview overlay
previewLinks: false,
@@ -475,6 +478,14 @@ var Reveal = (function(){
document.removeEventListener( 'mousewheel', onDocumentMouseScroll, false );
}
+ // Rolling 3D links
+ if( config.rollingLinks ) {
+ enableRollingLinks();
+ }
+ else {
+ disableRollingLinks();
+ }
+
// Iframe link previews
if( config.previewLinks ) {
enablePreviewLinks();
@@ -697,6 +708,50 @@ var Reveal = (function(){
}
+ /**
+ * Wrap all links in 3D goodness.
+ */
+ function enableRollingLinks() {
+
+ if( supports3DTransforms && !( 'msPerspective' in document.body.style ) ) {
+ var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a:not(.image)' );
+
+ for( var i = 0, len = anchors.length; i < len; i++ ) {
+ var anchor = anchors[i];
+
+ if( anchor.textContent && !anchor.querySelector( '*' ) && ( !anchor.className || !anchor.classList.contains( anchor, 'roll' ) ) ) {
+ var span = document.createElement('span');
+ span.setAttribute('data-title', anchor.text);
+ span.innerHTML = anchor.innerHTML;
+
+ anchor.classList.add( 'roll' );
+ anchor.innerHTML = '';
+ anchor.appendChild(span);
+ }
+ }
+ }
+
+ }
+
+ /**
+ * Unwrap all 3D links.
+ */
+ function disableRollingLinks() {
+
+ var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a.roll' );
+
+ for( var i = 0, len = anchors.length; i < len; i++ ) {
+ var anchor = anchors[i];
+ var span = anchor.querySelector( 'span' );
+
+ if( span ) {
+ anchor.classList.remove( 'roll' );
+ anchor.innerHTML = span.innerHTML;
+ }
+ }
+
+ }
+
/**
* Bind preview frame links.
*/
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 1f8a55c..ca60ebf 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-20, 22:53)
+ * reveal.js 2.5.0 (2013-07-26, 09:32)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return Ot||It?(window.addEventListener("load",L,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Rt.theme=document.querySelector("#theme"),Rt.wrapper=document.querySelector(".reveal"),Rt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Rt.background=document.createElement("div"),Rt.background.classList.add("backgrounds"),Rt.wrapper.appendChild(Rt.background)),!Rt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Rt.wrapper.appendChild(e)}if(!Rt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Rt.wrapper.appendChild(t)}if(!Rt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Rt.wrapper.appendChild(n)}if(!Rt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Rt.wrapper.appendChild(r)}Rt.progress=document.querySelector(".reveal .progress"),Rt.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Rt.controls=document.querySelector(".reveal .controls"),Rt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Rt.controlsRight=d(document.querySelectorAll(".navigate-right")),Rt.controlsUp=d(document.querySelectorAll(".navigate-up")),Rt.controlsDown=d(document.querySelectorAll(".navigate-down")),Rt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Rt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Rt.background.innerHTML="",Rt.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Rt.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),F(),setTimeout(function(){m("ready",{indexh:Et,indexv:kt,currentSlide:At})},1)}function i(e){if(Rt.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),It===!1&&(Pt.transition="linear"),Rt.wrapper.classList.add(Pt.transition),Rt.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Rt.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Rt.controls&&(Rt.controls.style.display=Pt.controls&&Rt.controls?"block":"none"),Rt.progress&&(Rt.progress.style.display=Pt.progress&&Rt.progress?"block":"none"),Pt.rtl?Rt.wrapper.classList.add("rtl"):Rt.wrapper.classList.remove("rtl"),Pt.center?Rt.wrapper.classList.add("center"):Rt.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",dt,!1),document.addEventListener("mousewheel",dt,!1)):(document.removeEventListener("DOMMouseScroll",dt,!1),document.removeEventListener("mousewheel",dt,!1)),Pt.previewLinks?g():(h(),g("[data-preview-link]")),Pt.theme&&Rt.theme){var t=Rt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Rt.theme.setAttribute("href",t))}I()}function s(){Ht=!0,window.addEventListener("hashchange",yt,!1),window.addEventListener("resize",bt,!1),Pt.touch&&(Rt.wrapper.addEventListener("touchstart",ot,!1),Rt.wrapper.addEventListener("touchmove",at,!1),Rt.wrapper.addEventListener("touchend",it,!1),window.navigator.msPointerEnabled&&(Rt.wrapper.addEventListener("MSPointerDown",st,!1),Rt.wrapper.addEventListener("MSPointerMove",ct,!1),Rt.wrapper.addEventListener("MSPointerUp",lt,!1))),Pt.keyboard&&document.addEventListener("keydown",rt,!1),Pt.progress&&Rt.progress&&Rt.progress.addEventListener("click",ut,!1),Pt.controls&&Rt.controls&&["touchstart","click"].forEach(function(e){Rt.controlsLeft.forEach(function(t){t.addEventListener(e,ft,!1)}),Rt.controlsRight.forEach(function(t){t.addEventListener(e,vt,!1)}),Rt.controlsUp.forEach(function(t){t.addEventListener(e,pt,!1)}),Rt.controlsDown.forEach(function(t){t.addEventListener(e,mt,!1)}),Rt.controlsPrev.forEach(function(t){t.addEventListener(e,gt,!1)}),Rt.controlsNext.forEach(function(t){t.addEventListener(e,ht,!1)})})}function c(){Ht=!1,document.removeEventListener("keydown",rt,!1),window.removeEventListener("hashchange",yt,!1),window.removeEventListener("resize",bt,!1),Rt.wrapper.removeEventListener("touchstart",ot,!1),Rt.wrapper.removeEventListener("touchmove",at,!1),Rt.wrapper.removeEventListener("touchend",it,!1),window.navigator.msPointerEnabled&&(Rt.wrapper.removeEventListener("MSPointerDown",st,!1),Rt.wrapper.removeEventListener("MSPointerMove",ct,!1),Rt.wrapper.removeEventListener("MSPointerUp",lt,!1)),Pt.progress&&Rt.progress&&Rt.progress.removeEventListener("click",ut,!1),Pt.controls&&Rt.controls&&["touchstart","click"].forEach(function(e){Rt.controlsLeft.forEach(function(t){t.removeEventListener(e,ft,!1)}),Rt.controlsRight.forEach(function(t){t.removeEventListener(e,vt,!1)}),Rt.controlsUp.forEach(function(t){t.removeEventListener(e,pt,!1)}),Rt.controlsDown.forEach(function(t){t.removeEventListener(e,mt,!1)}),Rt.controlsPrev.forEach(function(t){t.removeEventListener(e,gt,!1)}),Rt.controlsNext.forEach(function(t){t.removeEventListener(e,ht,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Rt.wrapper.dispatchEvent(n)}function g(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Lt,!1)})}function h(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Lt,!1)})}function y(e){b(),Rt.preview=document.createElement("div"),Rt.preview.classList.add("preview-link-overlay"),Rt.wrapper.appendChild(Rt.preview),Rt.preview.innerHTML=["",'','','',"
"].join(""),Rt.preview.querySelector("iframe").addEventListener("load",function(){Rt.preview.classList.add("loaded")},!1),Rt.preview.querySelector(".close").addEventListener("click",function(e){b(),e.preventDefault()},!1),Rt.preview.querySelector(".external").addEventListener("click",function(){b()},!1),setTimeout(function(){Rt.preview.classList.add("visible")},1)}function b(){Rt.preview&&(Rt.preview.setAttribute("src",""),Rt.preview.parentNode.removeChild(Rt.preview),Rt.preview=null)}function w(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function L(){if(Rt.wrapper&&!v()){var e=Rt.wrapper.offsetWidth,t=Rt.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Rt.slides.style.width=n+"px",Rt.slides.style.height=r+"px",Ct=Math.min(e/n,t/r),Ct=Math.max(Ct,Pt.minScale),Ct=Math.min(Ct,Pt.maxScale),void 0===Rt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Ct+") translate(50%, 50%)";Rt.slides.style.WebkitTransform=o,Rt.slides.style.MozTransform=o,Rt.slides.style.msTransform=o,Rt.slides.style.OTransform=o,Rt.slides.style.transform=o}else Rt.slides.style.zoom=Ct;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}Y()}}function E(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function k(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function S(){if(Pt.overview){Q();var e=Rt.wrapper.classList.contains("overview");Rt.wrapper.classList.add("overview"),Rt.wrapper.classList.remove("exit-overview"),clearTimeout(Wt),clearTimeout(Ut),Wt=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Et)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Et?kt:k(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",wt,!0)}else o.addEventListener("click",wt,!0)}L(),e||m("overviewshown",{indexh:Et,indexv:kt,currentSlide:At})},10)}}function A(){if(Pt.overview){clearTimeout(Wt),clearTimeout(Ut),Rt.wrapper.classList.remove("overview"),Rt.wrapper.classList.add("exit-overview"),Ut=setTimeout(function(){Rt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",wt,!0)}R(Et,kt),Z(),m("overviewhidden",{indexh:Et,indexv:kt,currentSlide:At})}}function q(e){"boolean"==typeof e?e?S():A():x()?A():S()}function x(){return Rt.wrapper.classList.contains("overview")}function T(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function M(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function P(){var e=Rt.wrapper.classList.contains("paused");Q(),Rt.wrapper.classList.add("paused"),e===!1&&m("paused")}function N(){var e=Rt.wrapper.classList.contains("paused");Rt.wrapper.classList.remove("paused"),Z(),e&&m("resumed")}function D(){C()?N():P()}function C(){return Rt.wrapper.classList.contains("paused")}function R(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=k(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&E(St.parentNode,kt);var a=Dt.concat();Dt.length=0;var i=Et,s=kt;Et=O(xt,void 0===e?Et:e),kt=O(Tt,void 0===t?kt:t),L();e:for(var c=0,l=Dt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Dt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Dt[c]),m(Dt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());x()&&S();var f=o[Et],v=f.querySelectorAll("section");if(At=v[kt]||f,n!==void 0){var p=w(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Et!==i||kt!==s;g?m("slidechanged",{indexh:Et,indexv:kt,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&E(t[e],0)},0)),g&&(j(St),H(At)),z(),Y(),X(),_()}function I(){c(),s(),L(),Nt=Pt.autoSlide,Z(),n(),z(),Y(),X()}function O(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(x()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!T(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Dt=Dt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Nt=u?parseInt(u,10):Pt.autoSlide,Z()}else t=0;return t}function Y(){if(Pt.progress&&Rt.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Rt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function z(){if(Pt.controls&&Rt.controls){var e=W(),t=U();Rt.controlsLeft.concat(Rt.controlsRight).concat(Rt.controlsUp).concat(Rt.controlsDown).concat(Rt.controlsPrev).concat(Rt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Rt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Rt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Rt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Rt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Rt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Rt.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Rt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),T(At)?(t.prev&&Rt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Rt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Rt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function X(){d(Rt.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Et>t?n:t>Et?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(kt>t?"past":t>kt?"future":"present")})}),setTimeout(function(){Rt.background.classList.remove("no-transition")},1)}function W(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Et>0||Pt.loop,right:e.length-1>Et||Pt.loop,up:kt>0,down:t.length-1>kt};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function U(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function H(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function j(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function F(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);R(o.h,o.v)}else R(Et,kt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Et||i!==kt)&&R(a,i)}}function _(e){if(Pt.history)if(clearTimeout(Xt),"number"==typeof e)Xt=setTimeout(_,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Et>0||kt>0)&&(t+=Et),kt>0&&(t+="/"+kt)),window.location.hash=t}}function K(e){var t,n=Et,r=kt;if(e){var o=T(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function $(){if(At&&Pt.fragments){var e=w(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),z(),!0}}return!1}function V(){if(At&&Pt.fragments){var e=w(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),z(),!0}}return!1}function Z(){clearTimeout(zt),!Nt||C()||x()||(zt=setTimeout(nt,Nt))}function Q(){clearTimeout(zt)}function B(){Pt.rtl?(x()||$()===!1)&&W().left&&R(Et+1):(x()||V()===!1)&&W().left&&R(Et-1)}function G(){Pt.rtl?(x()||V()===!1)&&W().right&&R(Et-1):(x()||$()===!1)&&W().right&&R(Et+1)}function J(){(x()||V()===!1)&&W().up&&R(Et,kt-1)}function et(){(x()||$()===!1)&&W().down&&R(Et,kt+1)}function tt(){if(V()===!1)if(W().up)J();else{var e=document.querySelector(xt+".past:nth-child("+Et+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Et-1;R(n,t)}}}function nt(){$()===!1&&(W().down?et():G()),Z()}function rt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(C()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:tt();break;case 78:case 34:nt();break;case 72:case 37:B();break;case 76:case 39:G();break;case 75:case 38:J();break;case 74:case 40:et();break;case 36:R(0);break;case 35:R(Number.MAX_VALUE);break;case 32:x()?A():e.shiftKey?tt():nt();break;case 13:x()?A():n=!1;break;case 66:case 190:case 191:D();break;case 70:M();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(q(),e.preventDefault()),Z()}}function ot(e){jt.startX=e.touches[0].clientX,jt.startY=e.touches[0].clientY,jt.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(jt.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:jt.startX,y:jt.startY}))}function at(e){if(jt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===jt.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:jt.startX,y:jt.startY});Math.abs(jt.startSpan-r)>jt.threshold&&(jt.handled=!0,jt.startSpan>r?S():A()),e.preventDefault()}else if(1===e.touches.length&&2!==jt.startCount){var o=t-jt.startX,a=n-jt.startY;o>jt.threshold&&Math.abs(o)>Math.abs(a)?(jt.handled=!0,B()):-jt.threshold>o&&Math.abs(o)>Math.abs(a)?(jt.handled=!0,G()):a>jt.threshold?(jt.handled=!0,J()):-jt.threshold>a&&(jt.handled=!0,et()),e.preventDefault()}}}function it(){jt.handled=!1}function st(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ot(e))}function ct(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],at(e))}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){if(Date.now()-Yt>600){Yt=Date.now();var t=e.detail||-e.wheelDelta;t>0?nt():tt()}}function ut(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Rt.wrapper.offsetWidth*t);R(n)}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(){F()}function bt(){L()}function wt(e){if(Ht&&x()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(A(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);R(n,r)}}}function Lt(e){var t=e.target.getAttribute("href");t&&(y(t),e.preventDefault())}var Et,kt,St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=[],Ct=1,Rt={},It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ot="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=0,zt=0,Xt=0,Wt=0,Ut=0,Ht=!1,jt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:I,slide:R,left:B,right:G,up:J,down:et,prev:tt,next:nt,prevFragment:V,nextFragment:$,navigateTo:R,navigateLeft:B,navigateRight:G,navigateUp:J,navigateDown:et,navigatePrev:tt,navigateNext:nt,layout:L,availableRoutes:W,availableFragments:U,toggleOverview:q,togglePause:D,isOverview:x,isPaused:C,addEventListeners:s,removeEventListeners:c,getIndices:K,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return Ct},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Rt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Rt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 53f1f110c8066b40c788b59e663d303446e3819d Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 26 Jul 2013 10:03:59 -0400
Subject: ensure notes window fragment states are mirrored in main window #538
---
js/reveal.js | 5 +++--
js/reveal.min.js | 4 ++--
plugin/notes/notes.html | 24 +++++++++++++++++++-----
3 files changed, 24 insertions(+), 9 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 41d3535..31639fa 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1898,8 +1898,9 @@ var Reveal = (function(){
}
if( !slide && currentSlide ) {
- var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
- if( visibleFragments.length ) {
+ var hasFragments = currentSlide.querySelectorAll( '.fragment' ).length > 0;
+ if( hasFragments ) {
+ var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
f = visibleFragments.length;
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index ca60ebf..5e01073 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-07-26, 09:32)
+ * reveal.js 2.5.0 (2013-07-26, 10:01)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment").length>0;if(s){var c=xt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 9151663..0ef285b 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -169,7 +169,8 @@
var notes = document.getElementById( 'notes' ),
currentSlide = document.getElementById( 'current-slide' ),
- nextSlide = document.getElementById( 'next-slide' );
+ nextSlide = document.getElementById( 'next-slide' ),
+ silenced = false;
window.addEventListener( 'message', function( event ) {
var data = JSON.parse( event.data );
@@ -184,10 +185,14 @@
}
}
+ silenced = true;
+
// Update the note slides
currentSlide.contentWindow.Reveal.slide( data.indexh, data.indexv, data.indexf );
nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );
+ silenced = false;
+
}, false );
var start = new Date(),
@@ -218,12 +223,21 @@
}, 1000 );
- // Navigate the main window when the notes slide changes
- currentSlide.contentWindow.Reveal.addEventListener( 'slidechanged', function( event ) {
+ // Broadcasts the state of the notes window to synchronize
+ // the main window
+ function synchronizeMainWindow() {
- window.opener.Reveal.slide( event.indexh, event.indexv );
+ if( !silenced ) {
+ var indices = currentSlide.contentWindow.Reveal.getIndices();
+ window.opener.Reveal.slide( indices.h, indices.v, indices.f );
+ }
+
+ }
- } );
+ // Navigate the main window when the notes slide changes
+ currentSlide.contentWindow.Reveal.addEventListener( 'slidechanged', synchronizeMainWindow );
+ currentSlide.contentWindow.Reveal.addEventListener( 'fragmentshown', synchronizeMainWindow );
+ currentSlide.contentWindow.Reveal.addEventListener( 'fragmenthidden', synchronizeMainWindow );
}
else {
--
cgit v1.2.3
From 04b9e444d97b31c1c5b867c02fe58b59a80386f4 Mon Sep 17 00:00:00 2001
From: Guillaume Turri
Date: Sun, 28 Jul 2013 22:41:55 +0200
Subject: Minor refactoring
Removed some code duplication
---
js/reveal.js | 61 ++++++++++++++++++++++++++------------------------------
js/reveal.min.js | 4 ++--
2 files changed, 30 insertions(+), 35 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 033fe31..4666642 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -193,49 +193,26 @@ var Reveal = (function(){
dom.slides = document.querySelector( '.reveal .slides' );
// Background element
- if( !document.querySelector( '.reveal .backgrounds' ) ) {
- dom.background = document.createElement( 'div' );
- dom.background.classList.add( 'backgrounds' );
- dom.wrapper.appendChild( dom.background );
- }
+ dom.background = initializeNode(dom.wrapper, 'div', 'backgrounds', null);
// Progress bar
- if( !dom.wrapper.querySelector( '.progress' ) ) {
- var progressElement = document.createElement( 'div' );
- progressElement.classList.add( 'progress' );
- progressElement.innerHTML = '';
- dom.wrapper.appendChild( progressElement );
- }
+ dom.progress = initializeNode(dom.wrapper, 'div', 'progress', '');
+ dom.progressbar = dom.progress.querySelector('span');
// Arrow controls
- if( !dom.wrapper.querySelector( '.controls' ) ) {
- var controlsElement = document.createElement( 'aside' );
- controlsElement.classList.add( 'controls' );
- controlsElement.innerHTML = '' +
- '' +
- '' +
- '';
- dom.wrapper.appendChild( controlsElement );
- }
+ initializeNode(dom.wrapper, 'aside', 'controls',
+ '' +
+ '' +
+ '' +
+ '');
// State background element [DEPRECATED]
- if( !dom.wrapper.querySelector( '.state-background' ) ) {
- var stateBackgroundElement = document.createElement( 'div' );
- stateBackgroundElement.classList.add( 'state-background' );
- dom.wrapper.appendChild( stateBackgroundElement );
- }
+ initializeNode(dom.wrapper, 'div', 'state-background', null);
// Overlay graphic which is displayed during the paused mode
- if( !dom.wrapper.querySelector( '.pause-overlay' ) ) {
- var pausedElement = document.createElement( 'div' );
- pausedElement.classList.add( 'pause-overlay' );
- dom.wrapper.appendChild( pausedElement );
- }
+ initializeNode(dom.wrapper, 'div', 'pause-overlay', null);
// Cache references to elements
- dom.progress = document.querySelector( '.reveal .progress' );
- dom.progressbar = document.querySelector( '.reveal .progress span' );
-
if ( config.controls ) {
dom.controls = document.querySelector( '.reveal .controls' );
@@ -250,6 +227,24 @@ var Reveal = (function(){
}
+ function initializeNode(container, tagname, classname, innerHTML){
+ var node = container.querySelector('.' + classname);
+ if( !node ){
+ node = buildNode(tagname, classname, innerHTML);
+ container.appendChild(node);
+ }
+ return node;
+ }
+
+ function buildNode(tagname, classname, innerHTML){
+ var node = document.createElement(tagname);
+ node.classList.add(classname);
+ if(innerHTML !== null){
+ node.innerHTML = innerHTML;
+ }
+ return node;
+ }
+
/**
* Creates the slide background elements and appends them
* to the background container. One element is created per
diff --git a/js/reveal.min.js b/js/reveal.min.js
index e9d124f..93f2f97 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-06-22, 19:21)
+ * reveal.js 2.5.0 (2013-07-29, 14:30)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Pt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Pt.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(xt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Pt.dependencies.length;o>r;r++){var i=Pt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:Dt,indexv:Ct,currentSlide:At})},1)}function i(e){if(Ot.wrapper.classList.remove(Pt.transition),"object"==typeof e&&l(Pt,e),Yt===!1&&(Pt.transition="linear"),Ot.wrapper.classList.add(Pt.transition),Ot.wrapper.setAttribute("data-transition-speed",Pt.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Pt.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Pt.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Pt.progress&&Ot.progress?"block":"none"),Pt.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Pt.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Pt.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Pt.rollingLinks?g():h(),Pt.previewLinks?y():(b(),y("[data-preview-link]")),Pt.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Pt.theme!==r&&(t=t.replace(n,Pt.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Pt.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Pt.keyboard&&document.addEventListener("keydown",at,!1),Pt.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Pt.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Pt.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(qt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(qt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Pt.margin,t-=t*Pt.margin;var n=Pt.width,r=Pt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Pt.minScale),It=Math.min(It,Pt.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(qt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Pt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Pt.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(xt),n=0,r=t.length;r>n;n++){var o=t[n],a=Pt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Dt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Dt?Ct:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:Dt,indexv:Ct,currentSlide:At})},10)}}function x(){if(Pt.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(qt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(Dt,Ct),B(),m("overviewhidden",{indexh:Dt,indexv:Ct,currentSlide:At})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:At,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function C(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?C():D()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){St=At;var o=document.querySelectorAll(xt);void 0===t&&(t=A(o[e])),St&&St.parentNode&&St.parentNode.classList.contains("stack")&&S(St.parentNode,Ct);var a=Rt.concat();Rt.length=0;var i=Dt,s=Ct;Dt=z(xt,void 0===e?Dt:e),Ct=z(Tt,void 0===t?Ct:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q(),$(1500);var f=o[Dt],v=f.querySelectorAll("section");if(At=v[Ct]||f,n!==void 0){var p=E(At.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Dt!==i||Ct!==s;g?m("slidechanged",{indexh:Dt,indexv:Ct,previousSlide:St,currentSlide:At,origin:r}):St=null,St&&(St.classList.remove("present"),document.querySelector(Mt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(xt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(St),F(At)),X(),H(),W()}function Y(){c(),s(),k(),Nt=Pt.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Pt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Pt.rtl&&!P(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Rt=Rt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Nt=l?parseInt(l,10):Pt.autoSlide}else t=0;return t}function H(){if(Pt.progress&&Ot.progress){var e=d(document.querySelectorAll(xt)),t=document.querySelectorAll(qt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Pt.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),At&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(At)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Pt.rtl?"future":"past",r=Pt.rtl?"past":"future";e.className="slide-background "+(Dt>t?n:t>Dt?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Ct>t?"past":t>Ct?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(xt),t=document.querySelectorAll(Tt),n={left:Dt>0||Pt.loop,right:e.length-1>Dt||Pt.loop,up:Ct>0,down:t.length-1>Ct};if(Pt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(At&&Pt.fragments){var e=At.querySelectorAll(".fragment"),t=At.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Dt,Ct)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function $(e){if(Pt.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";At&&"string"==typeof At.getAttribute("id")?t="/"+At.getAttribute("id"):((Dt>0||Ct>0)&&(t+=Dt),Ct>0&&(t+="/"+Ct)),window.location.hash=t}}function V(e){var t,n=Dt,r=Ct;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&At){var s=At.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function Z(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible"),m("fragmentshown",{fragment:e})}),X(),!0}}return!1}function Q(){if(At&&Pt.fragments){var e=E(At.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=At.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible"),m("fragmenthidden",{fragment:e})}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Nt||I()||M()||(Xt=setTimeout(ot,Nt))}function G(){clearTimeout(Xt)}function J(){Pt.rtl?(M()||Z()===!1)&&U().left&&O(Dt+1):(M()||Q()===!1)&&U().left&&O(Dt-1)}function et(){Pt.rtl?(M()||Q()===!1)&&U().right&&O(Dt-1):(M()||Z()===!1)&&U().right&&O(Dt+1)}function tt(){(M()||Q()===!1)&&U().up&&O(Dt,Ct-1)}function nt(){(M()||Z()===!1)&&U().down&&O(Dt,Ct+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(xt+".past:nth-child("+Dt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Dt-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Pt.keyboard)for(var r in Pt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Pt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Yt&&(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Pt.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Pt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(xt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt=".reveal .slides section",xt=".reveal .slides>section",Tt=".reveal .slides>section.present>section",Mt=".reveal .slides>section:first-child",Pt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Nt=0,Dt=0,Ct=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return St},getCurrentSlide:function(){return At},getScale:function(){return It},getConfig:function(){return Pt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(qt+".past")?!0:!1},isLastSlide:function(){return At&&At.classList.contains(".stack")?null==At.querySelector(qt+".future")?!0:!1:null==document.querySelector(qt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return Ht||Xt?(window.addEventListener("load",A,!1),u(Dt,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){zt.theme=document.querySelector("#theme"),zt.wrapper=document.querySelector(".reveal"),zt.slides=document.querySelector(".reveal .slides"),zt.background=n(zt.wrapper,"div","backgrounds",null),zt.progress=n(zt.wrapper,"div","progress",""),zt.progressbar=zt.progress.querySelector("span"),n(zt.wrapper,"aside","controls",''),n(zt.wrapper,"div","state-background",null),n(zt.wrapper,"div","pause-overlay",null),Dt.controls&&(zt.controls=document.querySelector(".reveal .controls"),zt.controlsLeft=f(document.querySelectorAll(".navigate-left")),zt.controlsRight=f(document.querySelectorAll(".navigate-right")),zt.controlsUp=f(document.querySelectorAll(".navigate-up")),zt.controlsDown=f(document.querySelectorAll(".navigate-down")),zt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),zt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function n(e,t,n,o){var a=e.querySelector("."+n);return a||(a=r(t,n,o),e.appendChild(a)),a}function r(e,t,n){var r=document.createElement(e);return r.classList.add(t),null!==n&&(r.innerHTML=n),r}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),zt.background.innerHTML="",zt.background.classList.add("no-transition"),f(document.querySelectorAll(Mt)).forEach(function(t){var n;n=m()?e(t,t):e(t,zt.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",g,!1),window.addEventListener("orientationchange",g,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=Dt.dependencies.length;o>r;r++){var a=Dt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){t(),c(),V(),setTimeout(function(){h("ready",{indexh:Rt,indexv:It,currentSlide:xt})},1)}function c(e){if(zt.wrapper.classList.remove(Dt.transition),"object"==typeof e&&u(Dt,e),Xt===!1&&(Dt.transition="linear"),zt.wrapper.classList.add(Dt.transition),zt.wrapper.setAttribute("data-transition-speed",Dt.transitionSpeed),zt.wrapper.setAttribute("data-background-transition",Dt.backgroundTransition),zt.controls&&(zt.controls.style.display=Dt.controls&&zt.controls?"block":"none"),zt.progress&&(zt.progress.style.display=Dt.progress&&zt.progress?"block":"none"),Dt.rtl?zt.wrapper.classList.add("rtl"):zt.wrapper.classList.remove("rtl"),Dt.center?zt.wrapper.classList.add("center"):zt.wrapper.classList.remove("center"),Dt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Dt.rollingLinks?y():b(),Dt.previewLinks?w():(L(),w("[data-preview-link]")),Dt.theme&&zt.theme){var t=zt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Dt.theme!==r&&(t=t.replace(n,Dt.theme),zt.theme.setAttribute("href",t))}X()}function l(){Kt=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Dt.touch&&(zt.wrapper.addEventListener("touchstart",ct,!1),zt.wrapper.addEventListener("touchmove",lt,!1),zt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.addEventListener("MSPointerDown",ut,!1),zt.wrapper.addEventListener("MSPointerMove",ft,!1),zt.wrapper.addEventListener("MSPointerUp",vt,!1))),Dt.keyboard&&document.addEventListener("keydown",st,!1),Dt.progress&&zt.progress&&zt.progress.addEventListener("click",mt,!1),Dt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),zt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),zt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),zt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),zt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),zt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function d(){Kt=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),zt.wrapper.removeEventListener("touchstart",ct,!1),zt.wrapper.removeEventListener("touchmove",lt,!1),zt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.removeEventListener("MSPointerDown",ut,!1),zt.wrapper.removeEventListener("MSPointerMove",ft,!1),zt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Dt.progress&&zt.progress&&zt.progress.removeEventListener("click",mt,!1),Dt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),zt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),zt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),zt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),zt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),zt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function u(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function g(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function h(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),u(n,t),zt.wrapper.dispatchEvent(n)}function y(){if(Xt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function b(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function w(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function L(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function E(e){k(),zt.preview=document.createElement("div"),zt.preview.classList.add("preview-link-overlay"),zt.wrapper.appendChild(zt.preview),zt.preview.innerHTML=["",'','','',"
"].join(""),zt.preview.querySelector("iframe").addEventListener("load",function(){zt.preview.classList.add("loaded")},!1),zt.preview.querySelector(".close").addEventListener("click",function(e){k(),e.preventDefault()},!1),zt.preview.querySelector(".external").addEventListener("click",function(){k()},!1),setTimeout(function(){zt.preview.classList.add("visible")},1)}function k(){zt.preview&&(zt.preview.setAttribute("src",""),zt.preview.parentNode.removeChild(zt.preview),zt.preview=null)}function S(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function A(){if(zt.wrapper&&!m()){var e=zt.wrapper.offsetWidth,t=zt.wrapper.offsetHeight;e-=t*Dt.margin,t-=t*Dt.margin;var n=Dt.width,r=Dt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),zt.slides.style.width=n+"px",zt.slides.style.height=r+"px",Yt=Math.min(e/n,t/r),Yt=Math.max(Yt,Dt.minScale),Yt=Math.min(Yt,Dt.maxScale),void 0===zt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Yt+") translate(50%, 50%)";zt.slides.style.WebkitTransform=o,zt.slides.style.MozTransform=o,zt.slides.style.msTransform=o,zt.slides.style.OTransform=o,zt.slides.style.transform=o}else zt.slides.style.zoom=Yt;for(var a=f(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Dt.center?c.classList.contains("stack")?0:Math.max(-(p(c)/2)-20,-r/2)+"px":"")}W()}}function q(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function x(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function T(){if(Dt.overview){et();var e=zt.wrapper.classList.contains("overview");zt.wrapper.classList.add("overview"),zt.wrapper.classList.remove("exit-overview"),clearTimeout(Ft),clearTimeout(_t),Ft=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Dt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Rt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Rt?It:x(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",St,!0)}else o.addEventListener("click",St,!0)}A(),e||h("overviewshown",{indexh:Rt,indexv:It,currentSlide:xt})},10)}}function M(){if(Dt.overview){clearTimeout(Ft),clearTimeout(_t),zt.wrapper.classList.remove("overview"),zt.wrapper.classList.add("exit-overview"),_t=setTimeout(function(){zt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}z(Rt,It),J(),h("overviewhidden",{indexh:Rt,indexv:It,currentSlide:xt})}}function P(e){"boolean"==typeof e?e?T():M():N()?M():T()}function N(){return zt.wrapper.classList.contains("overview")}function D(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function R(){var e=zt.wrapper.classList.contains("paused");et(),zt.wrapper.classList.add("paused"),e===!1&&h("paused")}function I(){var e=zt.wrapper.classList.contains("paused");zt.wrapper.classList.remove("paused"),J(),e&&h("resumed")}function O(){Y()?I():R()}function Y(){return zt.wrapper.classList.contains("paused")}function z(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=x(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&q(qt.parentNode,It);var a=Ot.concat();Ot.length=0;var i=Rt,s=It;Rt=H(Mt,void 0===e?Rt:e),It=H(Pt,void 0===t?It:t),A();e:for(var c=0,l=Ot.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ot[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ot[c]),h(Ot[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());N()&&T(),Z(1500);var u=o[Rt],v=u.querySelectorAll("section");if(xt=v[It]||u,n!==void 0){var p=S(xt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=Rt!==i||It!==s;m?h("slidechanged",{indexh:Rt,indexv:It,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&q(t[e],0)},0)),m&&($(qt),K(xt)),U(),W(),j()}function X(){d(),l(),A(),Ct=Dt.autoSlide,J(),o(),U(),W(),j()}function H(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Dt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(N()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Dt.rtl&&!D(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ot=Ot.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ct=l?parseInt(l,10):Dt.autoSlide}else t=0;return t}function W(){if(Dt.progress&&zt.progress){var e=f(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}zt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Dt.controls&&zt.controls){var e=F(),t=_();zt.controlsLeft.concat(zt.controlsRight).concat(zt.controlsUp).concat(zt.controlsDown).concat(zt.controlsPrev).concat(zt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&zt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&zt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&zt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&zt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&zt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&zt.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&zt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(xt)?(t.prev&&zt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&zt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){f(zt.background.childNodes).forEach(function(e,t){var n=Dt.rtl?"future":"past",r=Dt.rtl?"past":"future";e.className="slide-background "+(Rt>t?n:t>Rt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(It>t?"past":t>It?"future":"present")})}),setTimeout(function(){zt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:Rt>0||Dt.loop,right:e.length-1>Rt||Dt.loop,up:It>0,down:t.length-1>It};if(Dt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(xt&&Dt.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(Rt,It)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;z(a,i)}}function Z(e){if(Dt.history)if(clearTimeout(jt),"number"==typeof e)jt=setTimeout(Z,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((Rt>0||It>0)&&(t+=Rt),It>0&&(t+="/"+It)),window.location.hash=t}}function Q(e){var t,n=Rt,r=It;if(e){var o=D(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function B(){if(xt&&Dt.fragments){var e=S(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),h("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(xt&&Dt.fragments){var e=S(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),h("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(Ut),!Ct||Y()||N()||(Ut=setTimeout(it,Ct))}function et(){clearTimeout(Ut)}function tt(){Dt.rtl?(N()||B()===!1)&&F().left&&z(Rt+1):(N()||G()===!1)&&F().left&&z(Rt-1)}function nt(){Dt.rtl?(N()||G()===!1)&&F().right&&z(Rt-1):(N()||B()===!1)&&F().right&&z(Rt+1)}function rt(){(N()||G()===!1)&&F().up&&z(Rt,It-1)}function ot(){(N()||B()===!1)&&F().down&&z(Rt,It+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Mt+".past:nth-child("+Rt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Rt-1;z(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(Y()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Dt.keyboard)for(var r in Dt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Dt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:N()?M():e.shiftKey?at():it();break;case 13:N()?M():n=!1;break;case 66:case 190:case 191:O();break;case 70:C();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Xt&&(P(),e.preventDefault()),J()}}function ct(e){$t.startX=e.touches[0].clientX,$t.startY=e.touches[0].clientY,$t.startCount=e.touches.length,2===e.touches.length&&Dt.overview&&($t.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY}))}function lt(e){if($t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===$t.startCount&&Dt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY});Math.abs($t.startSpan-r)>$t.threshold&&($t.handled=!0,$t.startSpan>r?T():M()),e.preventDefault()}else if(1===e.touches.length&&2!==$t.startCount){var o=t-$t.startX,a=n-$t.startY;o>$t.threshold&&Math.abs(o)>Math.abs(a)?($t.handled=!0,tt()):-$t.threshold>o&&Math.abs(o)>Math.abs(a)?($t.handled=!0,nt()):a>$t.threshold?($t.handled=!0,rt()):-$t.threshold>a&&($t.handled=!0,ot()),e.preventDefault()}}}function dt(){$t.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Wt>600){Wt=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=f(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/zt.wrapper.offsetWidth*t);z(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){A()}function St(e){if(Kt&&N()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(M(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(E(t),e.preventDefault())}var qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Dt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Ct=0,Rt=0,It=0,Ot=[],Yt=1,zt={},Xt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Wt=0,Ut=0,jt=0,Ft=0,_t=0,Kt=!1,$t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:c,sync:X,slide:z,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:z,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:A,availableRoutes:F,availableFragments:_,toggleOverview:P,togglePause:O,isOverview:N,isPaused:Y,addEventListeners:l,removeEventListeners:d,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return Yt},getConfig:function(){return Dt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 7b5e5371576c8c57196828745e4d28adceb8417e Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 12:52:28 -0400
Subject: much improved distance measuring logic, improves performance on
mobile and fixes some crashes
---
js/reveal.js | 84 ++++++++++++++++++++++++++++++++++++++++++++++++--------
js/reveal.min.js | 4 +--
2 files changed, 74 insertions(+), 14 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 31639fa..d86c22c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -14,6 +14,8 @@ var Reveal = (function(){
VERTICAL_SLIDES_SELECTOR = '.reveal .slides>section.present>section',
HOME_SLIDE_SELECTOR = '.reveal .slides>section:first-child',
+ IS_MOBILE = navigator.userAgent.match( /(iphone|ipod|android)/gi ),
+
// Configurations defaults, can be overridden at initialization time
config = {
@@ -1029,7 +1031,6 @@ var Reveal = (function(){
htransform = 'translateZ(-2500px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)';
hslide.setAttribute( 'data-index-h', i );
- hslide.style.display = 'block';
hslide.style.WebkitTransform = htransform;
hslide.style.MozTransform = htransform;
hslide.style.msTransform = htransform;
@@ -1048,7 +1049,6 @@ var Reveal = (function(){
vslide.setAttribute( 'data-index-h', i );
vslide.setAttribute( 'data-index-v', j );
- vslide.style.display = 'block';
vslide.style.WebkitTransform = vtransform;
vslide.style.MozTransform = vtransform;
vslide.style.msTransform = vtransform;
@@ -1068,6 +1068,8 @@ var Reveal = (function(){
}
}
+ updateSlidesVisibility();
+
layout();
if( !wasActive ) {
@@ -1309,6 +1311,9 @@ var Reveal = (function(){
indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h );
indexv = updateSlides( VERTICAL_SLIDES_SELECTOR, v === undefined ? indexv : v );
+ // Update the visibility of slides now that the indices have changed
+ updateSlidesVisibility();
+
layout();
// Apply the new state
@@ -1480,16 +1485,6 @@ var Reveal = (function(){
for( var i = 0; i < slidesLength; i++ ) {
var element = slides[i];
- // Optimization; hide all slides that are three or more steps
- // away from the present slide
- if( isOverview() === false ) {
- // The distance loops so that it measures 1 between the first
- // and last slides
- var distance = Math.abs( ( index - i ) % ( slidesLength - 3 ) ) || 0;
-
- element.style.display = distance > 3 ? 'none' : 'block';
- }
-
var reverse = config.rtl && !isVerticalSlide( element );
element.classList.remove( 'past' );
@@ -1555,6 +1550,71 @@ var Reveal = (function(){
}
+ /**
+ * Optimization method; hide all slides that are far away
+ * from the present slide.
+ */
+ function updateSlidesVisibility() {
+
+ // Select all slides and convert the NodeList result to
+ // an array
+ var horizontalSlides = toArray( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ),
+ horizontalSlidesLength = horizontalSlides.length,
+ distance;
+
+ if( horizontalSlidesLength ) {
+
+ // The number of steps away from the present slide that will
+ // be visible
+ var threshold = 3;
+
+ // Heavily limited on weaker devices
+ if( IS_MOBILE ) {
+ threshold = 1;
+ }
+
+ if( isOverview() ) {
+ threshold = 6;
+ }
+
+ for( var x = 0; x < horizontalSlidesLength; x++ ) {
+ var horizontalSlide = horizontalSlides[x];
+
+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) ),
+ verticalSlidesLength = verticalSlides.length;
+
+ if( verticalSlidesLength ) {
+
+ // Always show the vertical stack itself, even if its child
+ // slides are invisible
+ horizontalSlide.style.display = 'block';
+
+ for( var y = 0; y < verticalSlidesLength; y++ ) {
+ var verticalSlide = verticalSlides[y];
+
+ var dx = x - indexh,
+ dy = y - indexv;
+
+ distance = Math.sqrt( dx*dx + dy*dy );
+
+ verticalSlide.style.display = distance > threshold ? 'none' : 'block';
+ }
+
+ }
+ else {
+
+ // Loops so that it measures 1 between the first and last slides
+ distance = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - threshold ) ) || 0;
+
+ horizontalSlide.style.display = distance > threshold ? 'none' : 'block';
+
+ }
+ }
+
+ }
+
+ }
+
/**
* Updates the progress bar to reflect the current slide.
*/
diff --git a/js/reveal.min.js b/js/reveal.min.js
index aab8f26..8752c35 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-08, 10:21)
+ * reveal.js 2.5.0 (2013-08-10, 12:49)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return zt||Yt?(window.addEventListener("load",k,!1),l(Ct,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ot.theme=document.querySelector("#theme"),Ot.wrapper=document.querySelector(".reveal"),Ot.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Ot.background=document.createElement("div"),Ot.background.classList.add("backgrounds"),Ot.wrapper.appendChild(Ot.background)),!Ot.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Ot.wrapper.appendChild(e)}if(!Ot.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Ot.wrapper.appendChild(t)}if(!Ot.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ot.wrapper.appendChild(n)}if(!Ot.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ot.wrapper.appendChild(r)}Ot.progress=document.querySelector(".reveal .progress"),Ot.progressbar=document.querySelector(".reveal .progress span"),Ct.controls&&(Ot.controls=document.querySelector(".reveal .controls"),Ot.controlsLeft=d(document.querySelectorAll(".navigate-left")),Ot.controlsRight=d(document.querySelectorAll(".navigate-right")),Ot.controlsUp=d(document.querySelectorAll(".navigate-up")),Ot.controlsDown=d(document.querySelectorAll(".navigate-down")),Ot.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Ot.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),Ot.background.innerHTML="",Ot.background.classList.add("no-transition"),d(document.querySelectorAll(Mt)).forEach(function(t){var n;n=v()?e(t,t):e(t,Ot.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Ct.dependencies.length;o>r;r++){var i=Ct.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),K(),setTimeout(function(){m("ready",{indexh:St,indexv:At,currentSlide:xt})},1)}function i(e){if(Ot.wrapper.classList.remove(Ct.transition),"object"==typeof e&&l(Ct,e),Yt===!1&&(Ct.transition="linear"),Ot.wrapper.classList.add(Ct.transition),Ot.wrapper.setAttribute("data-transition-speed",Ct.transitionSpeed),Ot.wrapper.setAttribute("data-background-transition",Ct.backgroundTransition),Ot.controls&&(Ot.controls.style.display=Ct.controls&&Ot.controls?"block":"none"),Ot.progress&&(Ot.progress.style.display=Ct.progress&&Ot.progress?"block":"none"),Ct.rtl?Ot.wrapper.classList.add("rtl"):Ot.wrapper.classList.remove("rtl"),Ct.center?Ot.wrapper.classList.add("center"):Ot.wrapper.classList.remove("center"),Ct.mouseWheel?(document.addEventListener("DOMMouseScroll",ft,!1),document.addEventListener("mousewheel",ft,!1)):(document.removeEventListener("DOMMouseScroll",ft,!1),document.removeEventListener("mousewheel",ft,!1)),Ct.rollingLinks?g():h(),Ct.previewLinks?y():(b(),y("[data-preview-link]")),Ct.theme&&Ot.theme){var t=Ot.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ct.theme!==r&&(t=t.replace(n,Ct.theme),Ot.theme.setAttribute("href",t))}Y()}function s(){Ft=!0,window.addEventListener("hashchange",wt,!1),window.addEventListener("resize",Lt,!1),Ct.touch&&(Ot.wrapper.addEventListener("touchstart",it,!1),Ot.wrapper.addEventListener("touchmove",st,!1),Ot.wrapper.addEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.addEventListener("MSPointerDown",lt,!1),Ot.wrapper.addEventListener("MSPointerMove",dt,!1),Ot.wrapper.addEventListener("MSPointerUp",ut,!1))),Ct.keyboard&&document.addEventListener("keydown",at,!1),Ct.progress&&Ot.progress&&Ot.progress.addEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.addEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.addEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.addEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.addEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.addEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.addEventListener(e,bt,!1)})})}function c(){Ft=!1,document.removeEventListener("keydown",at,!1),window.removeEventListener("hashchange",wt,!1),window.removeEventListener("resize",Lt,!1),Ot.wrapper.removeEventListener("touchstart",it,!1),Ot.wrapper.removeEventListener("touchmove",st,!1),Ot.wrapper.removeEventListener("touchend",ct,!1),window.navigator.msPointerEnabled&&(Ot.wrapper.removeEventListener("MSPointerDown",lt,!1),Ot.wrapper.removeEventListener("MSPointerMove",dt,!1),Ot.wrapper.removeEventListener("MSPointerUp",ut,!1)),Ct.progress&&Ot.progress&&Ot.progress.removeEventListener("click",vt,!1),Ct.controls&&Ot.controls&&["touchstart","click"].forEach(function(e){Ot.controlsLeft.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ot.controlsRight.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ot.controlsUp.forEach(function(t){t.removeEventListener(e,gt,!1)}),Ot.controlsDown.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ot.controlsPrev.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ot.controlsNext.forEach(function(t){t.removeEventListener(e,bt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Ot.wrapper.dispatchEvent(n)}function g(){if(Yt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Tt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Tt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",kt,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",kt,!1)})}function w(e){L(),Ot.preview=document.createElement("div"),Ot.preview.classList.add("preview-link-overlay"),Ot.wrapper.appendChild(Ot.preview),Ot.preview.innerHTML=["",'','','',"
"].join(""),Ot.preview.querySelector("iframe").addEventListener("load",function(){Ot.preview.classList.add("loaded")},!1),Ot.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),Ot.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){Ot.preview.classList.add("visible")},1)}function L(){Ot.preview&&(Ot.preview.setAttribute("src",""),Ot.preview.parentNode.removeChild(Ot.preview),Ot.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(Ot.wrapper&&!v()){var e=Ot.wrapper.offsetWidth,t=Ot.wrapper.offsetHeight;e-=t*Ct.margin,t-=t*Ct.margin;var n=Ct.width,r=Ct.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ot.slides.style.width=n+"px",Ot.slides.style.height=r+"px",It=Math.min(e/n,t/r),It=Math.max(It,Ct.minScale),It=Math.min(It,Ct.maxScale),void 0===Ot.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+It+") translate(50%, 50%)";Ot.slides.style.WebkitTransform=o,Ot.slides.style.MozTransform=o,Ot.slides.style.msTransform=o,Ot.slides.style.OTransform=o,Ot.slides.style.transform=o}else Ot.slides.style.zoom=It;for(var a=d(document.querySelectorAll(Tt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ct.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}H()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Ct.overview){G();var e=Ot.wrapper.classList.contains("overview");Ot.wrapper.classList.add("overview"),Ot.wrapper.classList.remove("exit-overview"),clearTimeout(Ut),clearTimeout(jt),Ut=setTimeout(function(){for(var t=document.querySelectorAll(Mt),n=0,r=t.length;r>n;n++){var o=t[n],a=Ct.rtl?-105:105,i="translateZ(-2500px) translate("+(n-St)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===St?At:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",Et,!0)}else o.addEventListener("click",Et,!0)}k(),e||m("overviewshown",{indexh:St,indexv:At,currentSlide:xt})},10)}}function x(){if(Ct.overview){clearTimeout(Ut),clearTimeout(jt),Ot.wrapper.classList.remove("overview"),Ot.wrapper.classList.add("exit-overview"),jt=setTimeout(function(){Ot.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Tt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",Et,!0)}O(St,At),B(),m("overviewhidden",{indexh:St,indexv:At,currentSlide:xt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return Ot.wrapper.classList.contains("overview")}function P(e){return e=e?e:xt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Ot.wrapper.classList.contains("paused");G(),Ot.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=Ot.wrapper.classList.contains("paused");Ot.wrapper.classList.remove("paused"),B(),e&&m("resumed")}function R(){I()?D():C()}function I(){return Ot.wrapper.classList.contains("paused")}function O(e,t,n,r){qt=xt;var o=document.querySelectorAll(Mt);void 0===t&&(t=A(o[e])),qt&&qt.parentNode&&qt.parentNode.classList.contains("stack")&&S(qt.parentNode,At);var a=Rt.concat();Rt.length=0;var i=St,s=At;St=z(Mt,void 0===e?St:e),At=z(Pt,void 0===t?At:t),k();e:for(var c=0,l=Rt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Rt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Rt[c]),m(Rt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[St],v=f.querySelectorAll("section");if(xt=v[At]||f,n!==void 0){var p=E(xt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=St!==i||At!==s;g?m("slidechanged",{indexh:St,indexv:At,previousSlide:qt,currentSlide:xt,origin:r}):qt=null,qt&&(qt.classList.remove("present"),document.querySelector(Nt).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Mt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(_(qt),F(xt)),X(),H(),W(),$()}function Y(){c(),s(),k(),Dt=Ct.autoSlide,B(),n(),X(),H(),W()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Ct.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(M()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=Ct.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(s?"future":"past");else if(o>t){a.classList.add(s?"past":"future");for(var c=d(a.querySelectorAll(".fragment.visible"));c.length;)c.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var l=n[t].getAttribute("data-state");l&&(Rt=Rt.concat(l.split(" ")));var u=n[t].getAttribute("data-autoslide");Dt=u?parseInt(u,10):Ct.autoSlide,B()}else t=0;return t}function H(){if(Ct.progress&&Ot.progress){var e=d(document.querySelectorAll(Mt)),t=document.querySelectorAll(Tt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ot.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function X(){if(Ct.controls&&Ot.controls){var e=U(),t=j();Ot.controlsLeft.concat(Ot.controlsRight).concat(Ot.controlsUp).concat(Ot.controlsDown).concat(Ot.controlsPrev).concat(Ot.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ot.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ot.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ot.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ot.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ot.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ot.controlsNext.forEach(function(e){e.classList.add("enabled")}),xt&&(t.prev&&Ot.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(xt)?(t.prev&&Ot.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ot.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ot.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function W(){d(Ot.background.childNodes).forEach(function(e,t){var n=Ct.rtl?"future":"past",r=Ct.rtl?"past":"future";e.className="slide-background "+(St>t?n:t>St?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(At>t?"past":t>At?"future":"present")})}),setTimeout(function(){Ot.background.classList.remove("no-transition")},1)}function U(){var e=document.querySelectorAll(Mt),t=document.querySelectorAll(Pt),n={left:St>0||Ct.loop,right:e.length-1>St||Ct.loop,up:At>0,down:t.length-1>At};if(Ct.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function j(){if(xt&&Ct.fragments){var e=xt.querySelectorAll(".fragment"),t=xt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function F(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function K(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(St,At)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==St||i!==At)&&O(a,i)}}function $(e){if(Ct.history)if(clearTimeout(Wt),"number"==typeof e)Wt=setTimeout($,e);else{var t="/";xt&&"string"==typeof xt.getAttribute("id")?t="/"+xt.getAttribute("id"):((St>0||At>0)&&(t+=St),At>0&&(t+="/"+At)),window.location.hash=t}}function V(e){var t,n=St,r=At;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Mt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&xt){var s=xt.querySelectorAll(".fragment").length>0;if(s){var c=xt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function Z(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),X(),!0}}return!1}function Q(){if(xt&&Ct.fragments){var e=E(xt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=xt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),X(),!0}}return!1}function B(){clearTimeout(Xt),!Dt||I()||M()||(Xt=setTimeout(ot,Dt))}function G(){clearTimeout(Xt)}function J(){Ct.rtl?(M()||Z()===!1)&&U().left&&O(St+1):(M()||Q()===!1)&&U().left&&O(St-1)}function et(){Ct.rtl?(M()||Q()===!1)&&U().right&&O(St-1):(M()||Z()===!1)&&U().right&&O(St+1)}function tt(){(M()||Q()===!1)&&U().up&&O(St,At-1)}function nt(){(M()||Z()===!1)&&U().down&&O(St,At+1)}function rt(){if(Q()===!1)if(U().up)tt();else{var e=document.querySelector(Mt+".past:nth-child("+St+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=St-1;O(n,t)}}}function ot(){Z()===!1&&(U().down?nt():et()),B()}function at(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ct.keyboard)for(var r in Ct.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ct.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:rt();break;case 78:case 34:ot();break;case 72:case 37:J();break;case 76:case 39:et();break;case 75:case 38:tt();break;case 74:case 40:nt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?rt():ot();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Yt||(T(),e.preventDefault()),B()}}function it(e){_t.startX=e.touches[0].clientX,_t.startY=e.touches[0].clientY,_t.startCount=e.touches.length,2===e.touches.length&&Ct.overview&&(_t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY}))}function st(e){if(_t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===_t.startCount&&Ct.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:_t.startX,y:_t.startY});Math.abs(_t.startSpan-r)>_t.threshold&&(_t.handled=!0,_t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==_t.startCount){var o=t-_t.startX,a=n-_t.startY;o>_t.threshold&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,J()):-_t.threshold>o&&Math.abs(o)>Math.abs(a)?(_t.handled=!0,et()):a>_t.threshold?(_t.handled=!0,tt()):-_t.threshold>a&&(_t.handled=!0,nt()),e.preventDefault()}}}function ct(){_t.handled=!1}function lt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],it(e))}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){if(Date.now()-Ht>600){Ht=Date.now();var t=e.detail||-e.wheelDelta;t>0?ot():rt()}}function vt(e){e.preventDefault();var t=d(document.querySelectorAll(Mt)).length,n=Math.floor(e.clientX/Ot.wrapper.offsetWidth*t);O(n)}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(){K()}function Lt(){k()}function Et(e){if(Ft&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function kt(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var St,At,qt,xt,Tt=".reveal .slides section",Mt=".reveal .slides>section",Pt=".reveal .slides>section.present>section",Nt=".reveal .slides>section:first-child",Ct={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},Dt=0,Rt=[],It=1,Ot={},Yt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,zt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=0,Xt=0,Wt=0,Ut=0,jt=0,Ft=!1,_t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:J,right:et,up:tt,down:nt,prev:rt,next:ot,prevFragment:Q,nextFragment:Z,navigateTo:O,navigateLeft:J,navigateRight:et,navigateUp:tt,navigateDown:nt,navigatePrev:rt,navigateNext:ot,layout:k,availableRoutes:U,availableFragments:j,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:V,getSlide:function(e,t){var n=document.querySelectorAll(Mt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return qt},getCurrentSlide:function(){return xt},getScale:function(){return It},getConfig:function(){return Ct},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Tt+".past")?!0:!1},isLastSlide:function(){return xt&&xt.classList.contains(".stack")?null==xt.querySelector(Tt+".future")?!0:!1:null==document.querySelector(Tt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ot.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return Xt||Ht?(window.addEventListener("load",k,!1),l(Rt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(zt.theme=document.querySelector("#theme"),zt.wrapper=document.querySelector(".reveal"),zt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(zt.background=document.createElement("div"),zt.background.classList.add("backgrounds"),zt.wrapper.appendChild(zt.background)),!zt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",zt.wrapper.appendChild(e)}if(!zt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',zt.wrapper.appendChild(t)}if(!zt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),zt.wrapper.appendChild(n)}if(!zt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),zt.wrapper.appendChild(r)}zt.progress=document.querySelector(".reveal .progress"),zt.progressbar=document.querySelector(".reveal .progress span"),Rt.controls&&(zt.controls=document.querySelector(".reveal .controls"),zt.controlsLeft=d(document.querySelectorAll(".navigate-left")),zt.controlsRight=d(document.querySelectorAll(".navigate-right")),zt.controlsUp=d(document.querySelectorAll(".navigate-up")),zt.controlsDown=d(document.querySelectorAll(".navigate-down")),zt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),zt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),zt.background.innerHTML="",zt.background.classList.add("no-transition"),d(document.querySelectorAll(Pt)).forEach(function(t){var n;n=v()?e(t,t):e(t,zt.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Rt.dependencies.length;o>r;r++){var i=Rt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),$(),setTimeout(function(){m("ready",{indexh:At,indexv:qt,currentSlide:Tt})},1)}function i(e){if(zt.wrapper.classList.remove(Rt.transition),"object"==typeof e&&l(Rt,e),Ht===!1&&(Rt.transition="linear"),zt.wrapper.classList.add(Rt.transition),zt.wrapper.setAttribute("data-transition-speed",Rt.transitionSpeed),zt.wrapper.setAttribute("data-background-transition",Rt.backgroundTransition),zt.controls&&(zt.controls.style.display=Rt.controls&&zt.controls?"block":"none"),zt.progress&&(zt.progress.style.display=Rt.progress&&zt.progress?"block":"none"),Rt.rtl?zt.wrapper.classList.add("rtl"):zt.wrapper.classList.remove("rtl"),Rt.center?zt.wrapper.classList.add("center"):zt.wrapper.classList.remove("center"),Rt.mouseWheel?(document.addEventListener("DOMMouseScroll",vt,!1),document.addEventListener("mousewheel",vt,!1)):(document.removeEventListener("DOMMouseScroll",vt,!1),document.removeEventListener("mousewheel",vt,!1)),Rt.rollingLinks?g():h(),Rt.previewLinks?y():(b(),y("[data-preview-link]")),Rt.theme&&zt.theme){var t=zt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Rt.theme!==r&&(t=t.replace(n,Rt.theme),zt.theme.setAttribute("href",t))}Y()}function s(){Kt=!0,window.addEventListener("hashchange",Lt,!1),window.addEventListener("resize",Et,!1),Rt.touch&&(zt.wrapper.addEventListener("touchstart",st,!1),zt.wrapper.addEventListener("touchmove",ct,!1),zt.wrapper.addEventListener("touchend",lt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.addEventListener("MSPointerDown",dt,!1),zt.wrapper.addEventListener("MSPointerMove",ut,!1),zt.wrapper.addEventListener("MSPointerUp",ft,!1))),Rt.keyboard&&document.addEventListener("keydown",it,!1),Rt.progress&&zt.progress&&zt.progress.addEventListener("click",pt,!1),Rt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.addEventListener(e,mt,!1)}),zt.controlsRight.forEach(function(t){t.addEventListener(e,gt,!1)}),zt.controlsUp.forEach(function(t){t.addEventListener(e,ht,!1)}),zt.controlsDown.forEach(function(t){t.addEventListener(e,yt,!1)}),zt.controlsPrev.forEach(function(t){t.addEventListener(e,bt,!1)}),zt.controlsNext.forEach(function(t){t.addEventListener(e,wt,!1)})})}function c(){Kt=!1,document.removeEventListener("keydown",it,!1),window.removeEventListener("hashchange",Lt,!1),window.removeEventListener("resize",Et,!1),zt.wrapper.removeEventListener("touchstart",st,!1),zt.wrapper.removeEventListener("touchmove",ct,!1),zt.wrapper.removeEventListener("touchend",lt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.removeEventListener("MSPointerDown",dt,!1),zt.wrapper.removeEventListener("MSPointerMove",ut,!1),zt.wrapper.removeEventListener("MSPointerUp",ft,!1)),Rt.progress&&zt.progress&&zt.progress.removeEventListener("click",pt,!1),Rt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.removeEventListener(e,mt,!1)}),zt.controlsRight.forEach(function(t){t.removeEventListener(e,gt,!1)}),zt.controlsUp.forEach(function(t){t.removeEventListener(e,ht,!1)}),zt.controlsDown.forEach(function(t){t.removeEventListener(e,yt,!1)}),zt.controlsPrev.forEach(function(t){t.removeEventListener(e,bt,!1)}),zt.controlsNext.forEach(function(t){t.removeEventListener(e,wt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),zt.wrapper.dispatchEvent(n)}function g(){if(Ht&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Mt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Mt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",St,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",St,!1)})}function w(e){L(),zt.preview=document.createElement("div"),zt.preview.classList.add("preview-link-overlay"),zt.wrapper.appendChild(zt.preview),zt.preview.innerHTML=["",'','','',"
"].join(""),zt.preview.querySelector("iframe").addEventListener("load",function(){zt.preview.classList.add("loaded")},!1),zt.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),zt.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){zt.preview.classList.add("visible")},1)}function L(){zt.preview&&(zt.preview.setAttribute("src",""),zt.preview.parentNode.removeChild(zt.preview),zt.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(zt.wrapper&&!v()){var e=zt.wrapper.offsetWidth,t=zt.wrapper.offsetHeight;e-=t*Rt.margin,t-=t*Rt.margin;var n=Rt.width,r=Rt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),zt.slides.style.width=n+"px",zt.slides.style.height=r+"px",Yt=Math.min(e/n,t/r),Yt=Math.max(Yt,Rt.minScale),Yt=Math.min(Yt,Rt.maxScale),void 0===zt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Yt+") translate(50%, 50%)";zt.slides.style.WebkitTransform=o,zt.slides.style.MozTransform=o,zt.slides.style.msTransform=o,zt.slides.style.OTransform=o,zt.slides.style.transform=o}else zt.slides.style.zoom=Yt;for(var a=d(document.querySelectorAll(Mt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Rt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}X()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Rt.overview){J();var e=zt.wrapper.classList.contains("overview");zt.wrapper.classList.add("overview"),zt.wrapper.classList.remove("exit-overview"),clearTimeout(Ft),clearTimeout(_t),Ft=setTimeout(function(){for(var t=document.querySelectorAll(Pt),n=0,r=t.length;r>n;n++){var o=t[n],a=Rt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-At)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===At?qt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",kt,!0)}else o.addEventListener("click",kt,!0)}H(),k(),e||m("overviewshown",{indexh:At,indexv:qt,currentSlide:Tt})},10)}}function x(){if(Rt.overview){clearTimeout(Ft),clearTimeout(_t),zt.wrapper.classList.remove("overview"),zt.wrapper.classList.add("exit-overview"),_t=setTimeout(function(){zt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Mt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",kt,!0)}O(At,qt),G(),m("overviewhidden",{indexh:At,indexv:qt,currentSlide:Tt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return zt.wrapper.classList.contains("overview")}function P(e){return e=e?e:Tt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=zt.wrapper.classList.contains("paused");J(),zt.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=zt.wrapper.classList.contains("paused");zt.wrapper.classList.remove("paused"),G(),e&&m("resumed")}function R(){I()?D():C()}function I(){return zt.wrapper.classList.contains("paused")}function O(e,t,n,r){xt=Tt;var o=document.querySelectorAll(Pt);void 0===t&&(t=A(o[e])),xt&&xt.parentNode&&xt.parentNode.classList.contains("stack")&&S(xt.parentNode,qt);var a=Ot.concat();Ot.length=0;var i=At,s=qt;At=z(Pt,void 0===e?At:e),qt=z(Nt,void 0===t?qt:t),H(),k();e:for(var c=0,l=Ot.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ot[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ot[c]),m(Ot[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[At],v=f.querySelectorAll("section");if(Tt=v[qt]||f,n!==void 0){var p=E(Tt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=At!==i||qt!==s;g?m("slidechanged",{indexh:At,indexv:qt,previousSlide:xt,currentSlide:Tt,origin:r}):xt=null,xt&&(xt.classList.remove("present"),document.querySelector(Ct).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Pt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(K(xt),_(Tt)),W(),X(),U(),V()}function Y(){c(),s(),k(),It=Rt.autoSlide,G(),n(),W(),X(),U()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Rt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Rt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=d(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ot=Ot.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");It=l?parseInt(l,10):Rt.autoSlide,G()}else t=0;return t}function H(){var e,t=d(document.querySelectorAll(Pt)),n=t.length;if(n){var r=3;Dt&&(r=1),M()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=d(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],u=o-At,f=c-qt;e=Math.sqrt(u*u+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((At-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function X(){if(Rt.progress&&zt.progress){var e=d(document.querySelectorAll(Pt)),t=document.querySelectorAll(Mt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}zt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function W(){if(Rt.controls&&zt.controls){var e=j(),t=F();zt.controlsLeft.concat(zt.controlsRight).concat(zt.controlsUp).concat(zt.controlsDown).concat(zt.controlsPrev).concat(zt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&zt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&zt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&zt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&zt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&zt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&zt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Tt&&(t.prev&&zt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(Tt)?(t.prev&&zt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&zt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function U(){d(zt.background.childNodes).forEach(function(e,t){var n=Rt.rtl?"future":"past",r=Rt.rtl?"past":"future";e.className="slide-background "+(At>t?n:t>At?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(qt>t?"past":t>qt?"future":"present")})}),setTimeout(function(){zt.background.classList.remove("no-transition")},1)}function j(){var e=document.querySelectorAll(Pt),t=document.querySelectorAll(Nt),n={left:At>0||Rt.loop,right:e.length-1>At||Rt.loop,up:qt>0,down:t.length-1>qt};if(Rt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function F(){if(Tt&&Rt.fragments){var e=Tt.querySelectorAll(".fragment"),t=Tt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function K(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function $(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(At,qt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==At||i!==qt)&&O(a,i)}}function V(e){if(Rt.history)if(clearTimeout(jt),"number"==typeof e)jt=setTimeout(V,e);else{var t="/";Tt&&"string"==typeof Tt.getAttribute("id")?t="/"+Tt.getAttribute("id"):((At>0||qt>0)&&(t+=At),qt>0&&(t+="/"+qt)),window.location.hash=t}}function Z(e){var t,n=At,r=qt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Pt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Tt){var s=Tt.querySelectorAll(".fragment").length>0;if(s){var c=Tt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function Q(){if(Tt&&Rt.fragments){var e=E(Tt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Tt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),W(),!0}}return!1}function B(){if(Tt&&Rt.fragments){var e=E(Tt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Tt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),W(),!0}}return!1}function G(){clearTimeout(Ut),!It||I()||M()||(Ut=setTimeout(at,It))}function J(){clearTimeout(Ut)}function et(){Rt.rtl?(M()||Q()===!1)&&j().left&&O(At+1):(M()||B()===!1)&&j().left&&O(At-1)}function tt(){Rt.rtl?(M()||B()===!1)&&j().right&&O(At-1):(M()||Q()===!1)&&j().right&&O(At+1)}function nt(){(M()||B()===!1)&&j().up&&O(At,qt-1)}function rt(){(M()||Q()===!1)&&j().down&&O(At,qt+1)}function ot(){if(B()===!1)if(j().up)nt();else{var e=document.querySelector(Pt+".past:nth-child("+At+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=At-1;O(n,t)}}}function at(){Q()===!1&&(j().down?rt():tt()),G()}function it(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Rt.keyboard)for(var r in Rt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Rt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ot();break;case 78:case 34:at();break;case 72:case 37:et();break;case 76:case 39:tt();break;case 75:case 38:nt();break;case 74:case 40:rt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?ot():at();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ht||(T(),e.preventDefault()),G()}}function st(e){$t.startX=e.touches[0].clientX,$t.startY=e.touches[0].clientY,$t.startCount=e.touches.length,2===e.touches.length&&Rt.overview&&($t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY}))}function ct(e){if($t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===$t.startCount&&Rt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY});Math.abs($t.startSpan-r)>$t.threshold&&($t.handled=!0,$t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==$t.startCount){var o=t-$t.startX,a=n-$t.startY;o>$t.threshold&&Math.abs(o)>Math.abs(a)?($t.handled=!0,et()):-$t.threshold>o&&Math.abs(o)>Math.abs(a)?($t.handled=!0,tt()):a>$t.threshold?($t.handled=!0,nt()):-$t.threshold>a&&($t.handled=!0,rt()),e.preventDefault()}}}function lt(){$t.handled=!1}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){if(Date.now()-Wt>600){Wt=Date.now();var t=e.detail||-e.wheelDelta;t>0?at():ot()}}function pt(e){e.preventDefault();var t=d(document.querySelectorAll(Pt)).length,n=Math.floor(e.clientX/zt.wrapper.offsetWidth*t);O(n)}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(){$()}function Et(){k()}function kt(e){if(Kt&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function St(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var At,qt,xt,Tt,Mt=".reveal .slides section",Pt=".reveal .slides>section",Nt=".reveal .slides>section.present>section",Ct=".reveal .slides>section:first-child",Dt=navigator.userAgent.match(/(iphone|ipod|android)/gi),Rt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},It=0,Ot=[],Yt=1,zt={},Ht="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Xt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Wt=0,Ut=0,jt=0,Ft=0,_t=0,Kt=!1,$t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:et,right:tt,up:nt,down:rt,prev:ot,next:at,prevFragment:B,nextFragment:Q,navigateTo:O,navigateLeft:et,navigateRight:tt,navigateUp:nt,navigateDown:rt,navigatePrev:ot,navigateNext:at,layout:k,availableRoutes:j,availableFragments:F,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:Z,getSlide:function(e,t){var n=document.querySelectorAll(Pt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return xt},getCurrentSlide:function(){return Tt},getScale:function(){return Yt},getConfig:function(){return Rt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Mt+".past")?!0:!1},isLastSlide:function(){return Tt&&Tt.classList.contains(".stack")?null==Tt.querySelector(Mt+".future")?!0:!1:null==document.querySelector(Mt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8ad81aa1a5fc99f6f70d30e1a7396492e4ff3335 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 13:10:48 -0400
Subject: delay client capability test until initialization phase
---
js/reveal.js | 47 ++++++++++++++++++++++++++++++++---------------
js/reveal.min.js | 4 ++--
2 files changed, 34 insertions(+), 17 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index d86c22c..1503c06 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -14,8 +14,6 @@ var Reveal = (function(){
VERTICAL_SLIDES_SELECTOR = '.reveal .slides>section.present>section',
HOME_SLIDE_SELECTOR = '.reveal .slides>section:first-child',
- IS_MOBILE = navigator.userAgent.match( /(iphone|ipod|android)/gi ),
-
// Configurations defaults, can be overridden at initialization time
config = {
@@ -113,19 +111,14 @@ var Reveal = (function(){
// Cached references to DOM elements
dom = {},
- // Detect support for CSS 3D transforms
- supports3DTransforms = 'WebkitPerspective' in document.body.style ||
- 'MozPerspective' in document.body.style ||
- 'msPerspective' in document.body.style ||
- 'OPerspective' in document.body.style ||
- 'perspective' in document.body.style,
+ // Client support for CSS 3D transforms, see #checkCapabilities()
+ supports3DTransforms,
- // Detect support for CSS 2D transforms
- supports2DTransforms = 'WebkitTransform' in document.body.style ||
- 'MozTransform' in document.body.style ||
- 'msTransform' in document.body.style ||
- 'OTransform' in document.body.style ||
- 'transform' in document.body.style,
+ // Client support for CSS 2D transforms, see #checkCapabilities()
+ supports2DTransforms,
+
+ // Client is a mobile device, see #checkCapabilities()
+ isMobileDevice,
// Throttles mouse wheel navigation
lastMouseWheelStep = 0,
@@ -160,6 +153,8 @@ var Reveal = (function(){
*/
function initialize( options ) {
+ checkCapabilities();
+
if( !supports2DTransforms && !supports3DTransforms ) {
document.body.setAttribute( 'class', 'no-transforms' );
@@ -182,6 +177,28 @@ var Reveal = (function(){
}
+ /**
+ * Inspect the client to see what it's capable of, this
+ * should only happens once per runtime.
+ */
+ function checkCapabilities() {
+
+ supports3DTransforms = 'WebkitPerspective' in document.body.style ||
+ 'MozPerspective' in document.body.style ||
+ 'msPerspective' in document.body.style ||
+ 'OPerspective' in document.body.style ||
+ 'perspective' in document.body.style;
+
+ supports2DTransforms = 'WebkitTransform' in document.body.style ||
+ 'MozTransform' in document.body.style ||
+ 'msTransform' in document.body.style ||
+ 'OTransform' in document.body.style ||
+ 'transform' in document.body.style;
+
+ isMobileDevice = navigator.userAgent.match( /(iphone|ipod|android)/gi );
+
+ }
+
/**
* Finds and stores references to DOM elements which are
* required by the presentation. If a required element is
@@ -1569,7 +1586,7 @@ var Reveal = (function(){
var threshold = 3;
// Heavily limited on weaker devices
- if( IS_MOBILE ) {
+ if( isMobileDevice ) {
threshold = 1;
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 8752c35..4b3956b 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 12:49)
+ * reveal.js 2.5.0 (2013-08-10, 13:10)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return Xt||Ht?(window.addEventListener("load",k,!1),l(Rt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(zt.theme=document.querySelector("#theme"),zt.wrapper=document.querySelector(".reveal"),zt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(zt.background=document.createElement("div"),zt.background.classList.add("backgrounds"),zt.wrapper.appendChild(zt.background)),!zt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",zt.wrapper.appendChild(e)}if(!zt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',zt.wrapper.appendChild(t)}if(!zt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),zt.wrapper.appendChild(n)}if(!zt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),zt.wrapper.appendChild(r)}zt.progress=document.querySelector(".reveal .progress"),zt.progressbar=document.querySelector(".reveal .progress span"),Rt.controls&&(zt.controls=document.querySelector(".reveal .controls"),zt.controlsLeft=d(document.querySelectorAll(".navigate-left")),zt.controlsRight=d(document.querySelectorAll(".navigate-right")),zt.controlsUp=d(document.querySelectorAll(".navigate-up")),zt.controlsDown=d(document.querySelectorAll(".navigate-down")),zt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),zt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}v()&&document.body.classList.add("print-pdf"),zt.background.innerHTML="",zt.background.classList.add("no-transition"),d(document.querySelectorAll(Pt)).forEach(function(t){var n;n=v()?e(t,t):e(t,zt.background),d(t.querySelectorAll("section")).forEach(function(t){v()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",p,!1),window.addEventListener("orientationchange",p,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=Rt.dependencies.length;o>r;r++){var i=Rt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),i(),$(),setTimeout(function(){m("ready",{indexh:At,indexv:qt,currentSlide:Tt})},1)}function i(e){if(zt.wrapper.classList.remove(Rt.transition),"object"==typeof e&&l(Rt,e),Ht===!1&&(Rt.transition="linear"),zt.wrapper.classList.add(Rt.transition),zt.wrapper.setAttribute("data-transition-speed",Rt.transitionSpeed),zt.wrapper.setAttribute("data-background-transition",Rt.backgroundTransition),zt.controls&&(zt.controls.style.display=Rt.controls&&zt.controls?"block":"none"),zt.progress&&(zt.progress.style.display=Rt.progress&&zt.progress?"block":"none"),Rt.rtl?zt.wrapper.classList.add("rtl"):zt.wrapper.classList.remove("rtl"),Rt.center?zt.wrapper.classList.add("center"):zt.wrapper.classList.remove("center"),Rt.mouseWheel?(document.addEventListener("DOMMouseScroll",vt,!1),document.addEventListener("mousewheel",vt,!1)):(document.removeEventListener("DOMMouseScroll",vt,!1),document.removeEventListener("mousewheel",vt,!1)),Rt.rollingLinks?g():h(),Rt.previewLinks?y():(b(),y("[data-preview-link]")),Rt.theme&&zt.theme){var t=zt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Rt.theme!==r&&(t=t.replace(n,Rt.theme),zt.theme.setAttribute("href",t))}Y()}function s(){Kt=!0,window.addEventListener("hashchange",Lt,!1),window.addEventListener("resize",Et,!1),Rt.touch&&(zt.wrapper.addEventListener("touchstart",st,!1),zt.wrapper.addEventListener("touchmove",ct,!1),zt.wrapper.addEventListener("touchend",lt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.addEventListener("MSPointerDown",dt,!1),zt.wrapper.addEventListener("MSPointerMove",ut,!1),zt.wrapper.addEventListener("MSPointerUp",ft,!1))),Rt.keyboard&&document.addEventListener("keydown",it,!1),Rt.progress&&zt.progress&&zt.progress.addEventListener("click",pt,!1),Rt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.addEventListener(e,mt,!1)}),zt.controlsRight.forEach(function(t){t.addEventListener(e,gt,!1)}),zt.controlsUp.forEach(function(t){t.addEventListener(e,ht,!1)}),zt.controlsDown.forEach(function(t){t.addEventListener(e,yt,!1)}),zt.controlsPrev.forEach(function(t){t.addEventListener(e,bt,!1)}),zt.controlsNext.forEach(function(t){t.addEventListener(e,wt,!1)})})}function c(){Kt=!1,document.removeEventListener("keydown",it,!1),window.removeEventListener("hashchange",Lt,!1),window.removeEventListener("resize",Et,!1),zt.wrapper.removeEventListener("touchstart",st,!1),zt.wrapper.removeEventListener("touchmove",ct,!1),zt.wrapper.removeEventListener("touchend",lt,!1),window.navigator.msPointerEnabled&&(zt.wrapper.removeEventListener("MSPointerDown",dt,!1),zt.wrapper.removeEventListener("MSPointerMove",ut,!1),zt.wrapper.removeEventListener("MSPointerUp",ft,!1)),Rt.progress&&zt.progress&&zt.progress.removeEventListener("click",pt,!1),Rt.controls&&zt.controls&&["touchstart","click"].forEach(function(e){zt.controlsLeft.forEach(function(t){t.removeEventListener(e,mt,!1)}),zt.controlsRight.forEach(function(t){t.removeEventListener(e,gt,!1)}),zt.controlsUp.forEach(function(t){t.removeEventListener(e,ht,!1)}),zt.controlsDown.forEach(function(t){t.removeEventListener(e,yt,!1)}),zt.controlsPrev.forEach(function(t){t.removeEventListener(e,bt,!1)}),zt.controlsNext.forEach(function(t){t.removeEventListener(e,wt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(e){var t=0;if(e){var n=0;d(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function v(){return/print-pdf/gi.test(window.location.search)}function p(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function m(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),zt.wrapper.dispatchEvent(n)}function g(){if(Ht&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Mt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(Mt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function y(e){var t=d(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",St,!1)})}function b(){var e=d(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",St,!1)})}function w(e){L(),zt.preview=document.createElement("div"),zt.preview.classList.add("preview-link-overlay"),zt.wrapper.appendChild(zt.preview),zt.preview.innerHTML=["",'','','',"
"].join(""),zt.preview.querySelector("iframe").addEventListener("load",function(){zt.preview.classList.add("loaded")},!1),zt.preview.querySelector(".close").addEventListener("click",function(e){L(),e.preventDefault()},!1),zt.preview.querySelector(".external").addEventListener("click",function(){L()},!1),setTimeout(function(){zt.preview.classList.add("visible")},1)}function L(){zt.preview&&(zt.preview.setAttribute("src",""),zt.preview.parentNode.removeChild(zt.preview),zt.preview=null)}function E(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function k(){if(zt.wrapper&&!v()){var e=zt.wrapper.offsetWidth,t=zt.wrapper.offsetHeight;e-=t*Rt.margin,t-=t*Rt.margin;var n=Rt.width,r=Rt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),zt.slides.style.width=n+"px",zt.slides.style.height=r+"px",Yt=Math.min(e/n,t/r),Yt=Math.max(Yt,Rt.minScale),Yt=Math.min(Yt,Rt.maxScale),void 0===zt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Yt+") translate(50%, 50%)";zt.slides.style.WebkitTransform=o,zt.slides.style.MozTransform=o,zt.slides.style.msTransform=o,zt.slides.style.OTransform=o,zt.slides.style.transform=o}else zt.slides.style.zoom=Yt;for(var a=d(document.querySelectorAll(Mt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Rt.center?c.classList.contains("stack")?0:Math.max(-(f(c)/2)-20,-r/2)+"px":"")}X()}}function S(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function A(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function q(){if(Rt.overview){J();var e=zt.wrapper.classList.contains("overview");zt.wrapper.classList.add("overview"),zt.wrapper.classList.remove("exit-overview"),clearTimeout(Ft),clearTimeout(_t),Ft=setTimeout(function(){for(var t=document.querySelectorAll(Pt),n=0,r=t.length;r>n;n++){var o=t[n],a=Rt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-At)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===At?qt:A(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",kt,!0)}else o.addEventListener("click",kt,!0)}H(),k(),e||m("overviewshown",{indexh:At,indexv:qt,currentSlide:Tt})},10)}}function x(){if(Rt.overview){clearTimeout(Ft),clearTimeout(_t),zt.wrapper.classList.remove("overview"),zt.wrapper.classList.add("exit-overview"),_t=setTimeout(function(){zt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(Mt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",kt,!0)}O(At,qt),G(),m("overviewhidden",{indexh:At,indexv:qt,currentSlide:Tt})}}function T(e){"boolean"==typeof e?e?q():x():M()?x():q()}function M(){return zt.wrapper.classList.contains("overview")}function P(e){return e=e?e:Tt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=zt.wrapper.classList.contains("paused");J(),zt.wrapper.classList.add("paused"),e===!1&&m("paused")}function D(){var e=zt.wrapper.classList.contains("paused");zt.wrapper.classList.remove("paused"),G(),e&&m("resumed")}function R(){I()?D():C()}function I(){return zt.wrapper.classList.contains("paused")}function O(e,t,n,r){xt=Tt;var o=document.querySelectorAll(Pt);void 0===t&&(t=A(o[e])),xt&&xt.parentNode&&xt.parentNode.classList.contains("stack")&&S(xt.parentNode,qt);var a=Ot.concat();Ot.length=0;var i=At,s=qt;At=z(Pt,void 0===e?At:e),qt=z(Nt,void 0===t?qt:t),H(),k();e:for(var c=0,l=Ot.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ot[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ot[c]),m(Ot[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());M()&&q();var f=o[At],v=f.querySelectorAll("section");if(Tt=v[qt]||f,n!==void 0){var p=E(Tt.querySelectorAll(".fragment"));d(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=At!==i||qt!==s;g?m("slidechanged",{indexh:At,indexv:qt,previousSlide:xt,currentSlide:Tt,origin:r}):xt=null,xt&&(xt.classList.remove("present"),document.querySelector(Ct).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Pt+".stack"));for(e in t)t[e]&&S(t[e],0)},0)),g&&(K(xt),_(Tt)),W(),X(),U(),V()}function Y(){c(),s(),k(),It=Rt.autoSlide,G(),n(),W(),X(),U()}function z(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){Rt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Rt.rtl&&!P(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=d(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ot=Ot.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");It=l?parseInt(l,10):Rt.autoSlide,G()}else t=0;return t}function H(){var e,t=d(document.querySelectorAll(Pt)),n=t.length;if(n){var r=3;Dt&&(r=1),M()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=d(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],u=o-At,f=c-qt;e=Math.sqrt(u*u+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((At-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function X(){if(Rt.progress&&zt.progress){var e=d(document.querySelectorAll(Pt)),t=document.querySelectorAll(Mt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}zt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function W(){if(Rt.controls&&zt.controls){var e=j(),t=F();zt.controlsLeft.concat(zt.controlsRight).concat(zt.controlsUp).concat(zt.controlsDown).concat(zt.controlsPrev).concat(zt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&zt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&zt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&zt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&zt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&zt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&zt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Tt&&(t.prev&&zt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),P(Tt)?(t.prev&&zt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&zt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&zt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function U(){d(zt.background.childNodes).forEach(function(e,t){var n=Rt.rtl?"future":"past",r=Rt.rtl?"past":"future";e.className="slide-background "+(At>t?n:t>At?r:"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(qt>t?"past":t>qt?"future":"present")})}),setTimeout(function(){zt.background.classList.remove("no-transition")},1)}function j(){var e=document.querySelectorAll(Pt),t=document.querySelectorAll(Nt),n={left:At>0||Rt.loop,right:e.length-1>At||Rt.loop,up:qt>0,down:t.length-1>qt};if(Rt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function F(){if(Tt&&Rt.fragments){var e=Tt.querySelectorAll(".fragment"),t=Tt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function _(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function K(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function $(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(At,qt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==At||i!==qt)&&O(a,i)}}function V(e){if(Rt.history)if(clearTimeout(jt),"number"==typeof e)jt=setTimeout(V,e);else{var t="/";Tt&&"string"==typeof Tt.getAttribute("id")?t="/"+Tt.getAttribute("id"):((At>0||qt>0)&&(t+=At),qt>0&&(t+="/"+qt)),window.location.hash=t}}function Z(e){var t,n=At,r=qt;if(e){var o=P(e),a=o?e.parentNode:e,i=d(document.querySelectorAll(Pt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Tt){var s=Tt.querySelectorAll(".fragment").length>0;if(s){var c=Tt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function Q(){if(Tt&&Rt.fragments){var e=E(Tt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Tt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible")}),m("fragmentshown",{fragment:e[0],fragments:e}),W(),!0}}return!1}function B(){if(Tt&&Rt.fragments){var e=E(Tt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Tt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible")}),m("fragmenthidden",{fragment:e[0],fragments:e}),W(),!0}}return!1}function G(){clearTimeout(Ut),!It||I()||M()||(Ut=setTimeout(at,It))}function J(){clearTimeout(Ut)}function et(){Rt.rtl?(M()||Q()===!1)&&j().left&&O(At+1):(M()||B()===!1)&&j().left&&O(At-1)}function tt(){Rt.rtl?(M()||B()===!1)&&j().right&&O(At-1):(M()||Q()===!1)&&j().right&&O(At+1)}function nt(){(M()||B()===!1)&&j().up&&O(At,qt-1)}function rt(){(M()||Q()===!1)&&j().down&&O(At,qt+1)}function ot(){if(B()===!1)if(j().up)nt();else{var e=document.querySelector(Pt+".past:nth-child("+At+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=At-1;O(n,t)}}}function at(){Q()===!1&&(j().down?rt():tt()),G()}function it(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(I()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Rt.keyboard)for(var r in Rt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Rt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ot();break;case 78:case 34:at();break;case 72:case 37:et();break;case 76:case 39:tt();break;case 75:case 38:nt();break;case 74:case 40:rt();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:M()?x():e.shiftKey?ot():at();break;case 13:M()?x():n=!1;break;case 66:case 190:case 191:R();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ht||(T(),e.preventDefault()),G()}}function st(e){$t.startX=e.touches[0].clientX,$t.startY=e.touches[0].clientY,$t.startCount=e.touches.length,2===e.touches.length&&Rt.overview&&($t.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY}))}function ct(e){if($t.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===$t.startCount&&Rt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:$t.startX,y:$t.startY});Math.abs($t.startSpan-r)>$t.threshold&&($t.handled=!0,$t.startSpan>r?q():x()),e.preventDefault()}else if(1===e.touches.length&&2!==$t.startCount){var o=t-$t.startX,a=n-$t.startY;o>$t.threshold&&Math.abs(o)>Math.abs(a)?($t.handled=!0,et()):-$t.threshold>o&&Math.abs(o)>Math.abs(a)?($t.handled=!0,tt()):a>$t.threshold?($t.handled=!0,nt()):-$t.threshold>a&&($t.handled=!0,rt()),e.preventDefault()}}}function lt(){$t.handled=!1}function dt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],st(e))}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){if(Date.now()-Wt>600){Wt=Date.now();var t=e.detail||-e.wheelDelta;t>0?at():ot()}}function pt(e){e.preventDefault();var t=d(document.querySelectorAll(Pt)).length,n=Math.floor(e.clientX/zt.wrapper.offsetWidth*t);O(n)}function mt(e){e.preventDefault(),et()}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(){$()}function Et(){k()}function kt(e){if(Kt&&M()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(x(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function St(e){var t=e.target.getAttribute("href");t&&(w(t),e.preventDefault())}var At,qt,xt,Tt,Mt=".reveal .slides section",Pt=".reveal .slides>section",Nt=".reveal .slides>section.present>section",Ct=".reveal .slides>section:first-child",Dt=navigator.userAgent.match(/(iphone|ipod|android)/gi),Rt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},It=0,Ot=[],Yt=1,zt={},Ht="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Xt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Wt=0,Ut=0,jt=0,Ft=0,_t=0,Kt=!1,$t={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:i,sync:Y,slide:O,left:et,right:tt,up:nt,down:rt,prev:ot,next:at,prevFragment:B,nextFragment:Q,navigateTo:O,navigateLeft:et,navigateRight:tt,navigateUp:nt,navigateDown:rt,navigatePrev:ot,navigateNext:at,layout:k,availableRoutes:j,availableFragments:F,toggleOverview:T,togglePause:R,isOverview:M,isPaused:I,addEventListeners:s,removeEventListeners:c,getIndices:Z,getSlide:function(e,t){var n=document.querySelectorAll(Pt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return xt},getCurrentSlide:function(){return Tt},getScale:function(){return Yt},getConfig:function(){return Rt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Mt+".past")?!0:!1},isLastSlide:function(){return Tt&&Tt.classList.contains(".stack")?null==Tt.querySelector(Mt+".future")?!0:!1:null==document.querySelector(Mt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(zt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Nt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Nt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ct=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Dt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Dt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Dt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview");Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var t=document.querySelectorAll(Rt),n=0,r=t.length;r>n;n++){var o=t[n],a=Yt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-qt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===qt?xt:q(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",St,!0)}else o.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Dt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function N(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():D()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!N(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=3;Ct&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Dt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),N(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=N(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:C();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Nt,Ct,Dt=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Dt+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Dt+".future")?!0:!1:null==document.querySelector(Dt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8e01c038249a56732579423b4126c149f07607a8 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 13:16:45 -0400
Subject: make view distance configurable #527
---
js/reveal.js | 15 +++++++++------
js/reveal.min.js | 4 ++--
2 files changed, 11 insertions(+), 8 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 1503c06..f2c0e02 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -85,6 +85,9 @@ var Reveal = (function(){
// Transition style for full page slide backgrounds
backgroundTransition: 'default', // default/linear/none
+ // Number of slides away from the current that are visible
+ viewDistance: 3,
+
// Script dependencies to load
dependencies: []
},
@@ -1583,15 +1586,15 @@ var Reveal = (function(){
// The number of steps away from the present slide that will
// be visible
- var threshold = 3;
+ var viewDistance = config.viewDistance;
// Heavily limited on weaker devices
if( isMobileDevice ) {
- threshold = 1;
+ viewDistance = 1;
}
if( isOverview() ) {
- threshold = 6;
+ viewDistance = 6;
}
for( var x = 0; x < horizontalSlidesLength; x++ ) {
@@ -1614,16 +1617,16 @@ var Reveal = (function(){
distance = Math.sqrt( dx*dx + dy*dy );
- verticalSlide.style.display = distance > threshold ? 'none' : 'block';
+ verticalSlide.style.display = distance > viewDistance ? 'none' : 'block';
}
}
else {
// Loops so that it measures 1 between the first and last slides
- distance = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - threshold ) ) || 0;
+ distance = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
- horizontalSlide.style.display = distance > threshold ? 'none' : 'block';
+ horizontalSlide.style.display = distance > viewDistance ? 'none' : 'block';
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 4b3956b..414638d 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 13:10)
+ * reveal.js 2.5.0 (2013-08-10, 13:15)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Nt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Nt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ct=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Dt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Dt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Dt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview");Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var t=document.querySelectorAll(Rt),n=0,r=t.length;r>n;n++){var o=t[n],a=Yt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-qt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===qt?xt:q(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",St,!0)}else o.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Dt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function N(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function D(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():D()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!N(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=3;Ct&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Dt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),N(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=N(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:C();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Nt,Ct,Dt=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Dt+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Dt+".future")?!0:!1:null==document.querySelector(Dt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview");Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var t=document.querySelectorAll(Rt),n=0,r=t.length;r>n;n++){var o=t[n],a=Yt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-qt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===qt?xt:q(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",St,!0)}else o.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 73b69eb13dc15734fd4ce0ad9aabe0a9c5f053b9 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 13:32:19 -0400
Subject: reduce overview depth on small screens
---
js/reveal.js | 8 +++++++-
js/reveal.min.js | 4 ++--
2 files changed, 9 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index f2c0e02..19b77e5 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1032,6 +1032,12 @@ var Reveal = (function(){
var wasActive = dom.wrapper.classList.contains( 'overview' );
+ var depth = 2500;
+
+ if( window.innerWidth < 400 ) {
+ depth = 1000;
+ }
+
dom.wrapper.classList.add( 'overview' );
dom.wrapper.classList.remove( 'exit-overview' );
@@ -1048,7 +1054,7 @@ var Reveal = (function(){
for( var i = 0, len1 = horizontalSlides.length; i < len1; i++ ) {
var hslide = horizontalSlides[i],
hoffset = config.rtl ? -105 : 105,
- htransform = 'translateZ(-2500px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)';
+ htransform = 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)';
hslide.setAttribute( 'data-index-h', i );
hslide.style.WebkitTransform = htransform;
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 414638d..f75d2a1 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 13:15)
+ * reveal.js 2.5.0 (2013-08-10, 13:29)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview");Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var t=document.querySelectorAll(Rt),n=0,r=t.length;r>n;n++){var o=t[n],a=Yt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-qt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===qt?xt:q(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",St,!0)}else o.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=2500;400>window.innerWidth&&(t=1e3),Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 8222795c8701295e76c1be1297cbb76c47617537 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 13:40:22 -0400
Subject: code formatting
---
js/reveal.js | 7 ++-----
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 7 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 19b77e5..56a000f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1032,11 +1032,8 @@ var Reveal = (function(){
var wasActive = dom.wrapper.classList.contains( 'overview' );
- var depth = 2500;
-
- if( window.innerWidth < 400 ) {
- depth = 1000;
- }
+ // Vary the depth of the overview based on screen size
+ var depth = window.innerWidth < 400 ? 1000 : 2500;
dom.wrapper.classList.add( 'overview' );
dom.wrapper.classList.remove( 'exit-overview' );
diff --git a/js/reveal.min.js b/js/reveal.min.js
index f75d2a1..2cbe23d 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 13:29)
+ * reveal.js 2.5.0 (2013-08-10, 13:40)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=2500;400>window.innerWidth&&(t=1e3),Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From b800d147b1622b607f0aee2ed989bc5e045e17b9 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 13:42:53 -0400
Subject: reduce touch event threshold to make it more sensitive
---
js/reveal.js | 2 +-
js/reveal.min.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 56a000f..4bdb806 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -148,7 +148,7 @@ var Reveal = (function(){
startSpan: 0,
startCount: 0,
handled: false,
- threshold: 80
+ threshold: 40
};
/**
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 2cbe23d..e6e4f05 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 13:40)
+ * reveal.js 2.5.0 (2013-08-10, 13:42)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 0add83e9ed2dfe1299e38b7654f8928909d92e69 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 14:09:23 -0400
Subject: renamed handled flag to captured
---
js/reveal.js | 18 +++++++++---------
js/reveal.min.js | 4 ++--
2 files changed, 11 insertions(+), 11 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 4bdb806..8f7eb70 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -147,7 +147,7 @@ var Reveal = (function(){
startY: 0,
startSpan: 0,
startCount: 0,
- handled: false,
+ captured: false,
threshold: 40
};
@@ -2315,11 +2315,11 @@ var Reveal = (function(){
function onTouchMove( event ) {
// Each touch should only trigger one action
- if( !touch.handled ) {
+ if( !touch.captured ) {
var currentX = event.touches[0].clientX;
var currentY = event.touches[0].clientY;
- // If the touch started off with two points and still has
+ // If the touch started with two points and still has
// two active touches; test for the pinch gesture
if( event.touches.length === 2 && touch.startCount === 2 && config.overview ) {
@@ -2335,7 +2335,7 @@ var Reveal = (function(){
// If the span is larger than the desire amount we've got
// ourselves a pinch
if( Math.abs( touch.startSpan - currentSpan ) > touch.threshold ) {
- touch.handled = true;
+ touch.captured = true;
if( currentSpan < touch.startSpan ) {
activateOverview();
@@ -2355,19 +2355,19 @@ var Reveal = (function(){
deltaY = currentY - touch.startY;
if( deltaX > touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
- touch.handled = true;
+ touch.captured = true;
navigateLeft();
}
else if( deltaX < -touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
- touch.handled = true;
+ touch.captured = true;
navigateRight();
}
else if( deltaY > touch.threshold ) {
- touch.handled = true;
+ touch.captured = true;
navigateUp();
}
else if( deltaY < -touch.threshold ) {
- touch.handled = true;
+ touch.captured = true;
navigateDown();
}
@@ -2388,7 +2388,7 @@ var Reveal = (function(){
*/
function onTouchEnd( event ) {
- touch.handled = false;
+ touch.captured = false;
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index e6e4f05..d74ace2 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 13:42)
+ * reveal.js 2.5.0 (2013-08-10, 14:09)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.handled=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.handled=!0,nt()):a>Vt.threshold?(Vt.handled=!0,rt()):-Vt.threshold>a&&(Vt.handled=!0,ot()),e.preventDefault()}}}function dt(){Vt.handled=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 785bee596b7bc444169f11bd36a4eb12af0c21eb Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 14:30:24 -0400
Subject: add embed option
---
js/reveal.js | 17 ++++++++++++++++-
js/reveal.min.js | 4 ++--
2 files changed, 18 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 8f7eb70..12b033d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -59,6 +59,10 @@ var Reveal = (function(){
// Turns fragments on and off globally
fragments: true,
+ // Flags if the presentation is running in an embedded mode,
+ // i.e. contained within a limited portion of the screen
+ embed: false,
+
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
@@ -2371,7 +2375,18 @@ var Reveal = (function(){
navigateDown();
}
- event.preventDefault();
+ // If we're embedded, only block touch events if they have
+ // triggered an action
+ if( config.embed ) {
+ if( touch.captured || isVerticalSlide( currentSlide ) ) {
+ event.preventDefault();
+ }
+ }
+ // Not embedded? Block them all to avoid needless tossing
+ // around of the viewport in iOS
+ else {
+ event.preventDefault();
+ }
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index d74ace2..0622c0c 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 14:09)
+ * reveal.js 2.5.0 (2013-08-10, 14:11)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embed?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embed:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 81f762080b289a877806f6d5e6580ef90b638e08 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 10 Aug 2013 14:38:42 -0400
Subject: rename embed > embedded to signal that it's a state and not an action
---
js/reveal.js | 4 ++--
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 12b033d..11f5c43 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -61,7 +61,7 @@ var Reveal = (function(){
// Flags if the presentation is running in an embedded mode,
// i.e. contained within a limited portion of the screen
- embed: false,
+ embedded: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
@@ -2377,7 +2377,7 @@ var Reveal = (function(){
// If we're embedded, only block touch events if they have
// triggered an action
- if( config.embed ) {
+ if( config.embedded ) {
if( touch.captured || isVerticalSlide( currentSlide ) ) {
event.preventDefault();
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 0622c0c..d2cad57 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 14:11)
+ * reveal.js 2.5.0 (2013-08-10, 14:38)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embed?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embed:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From e18ffa8779a0161f067a171b230a06b8952758db Mon Sep 17 00:00:00 2001
From: Guillaume Turri
Date: Sun, 11 Aug 2013 16:25:43 +0200
Subject: Use more explicit name
---
js/reveal.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 4666642..d5461e8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -193,24 +193,24 @@ var Reveal = (function(){
dom.slides = document.querySelector( '.reveal .slides' );
// Background element
- dom.background = initializeNode(dom.wrapper, 'div', 'backgrounds', null);
+ dom.background = createSingletonNode(dom.wrapper, 'div', 'backgrounds', null);
// Progress bar
- dom.progress = initializeNode(dom.wrapper, 'div', 'progress', '');
+ dom.progress = createSingletonNode(dom.wrapper, 'div', 'progress', '');
dom.progressbar = dom.progress.querySelector('span');
// Arrow controls
- initializeNode(dom.wrapper, 'aside', 'controls',
+ createSingletonNode(dom.wrapper, 'aside', 'controls',
'' +
'' +
'' +
'');
// State background element [DEPRECATED]
- initializeNode(dom.wrapper, 'div', 'state-background', null);
+ createSingletonNode(dom.wrapper, 'div', 'state-background', null);
// Overlay graphic which is displayed during the paused mode
- initializeNode(dom.wrapper, 'div', 'pause-overlay', null);
+ createSingletonNode(dom.wrapper, 'div', 'pause-overlay', null);
// Cache references to elements
if ( config.controls ) {
@@ -227,7 +227,7 @@ var Reveal = (function(){
}
- function initializeNode(container, tagname, classname, innerHTML){
+ function createSingletonNode(container, tagname, classname, innerHTML){
var node = container.querySelector('.' + classname);
if( !node ){
node = buildNode(tagname, classname, innerHTML);
--
cgit v1.2.3
From 644ae56f4f86d5c3247764f17de6541cb7eb168f Mon Sep 17 00:00:00 2001
From: Guillaume Turri
Date: Sun, 11 Aug 2013 16:30:08 +0200
Subject: inlined method used only once
---
js/reveal.js | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index d5461e8..5baacfb 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -230,21 +230,16 @@ var Reveal = (function(){
function createSingletonNode(container, tagname, classname, innerHTML){
var node = container.querySelector('.' + classname);
if( !node ){
- node = buildNode(tagname, classname, innerHTML);
+ node = document.createElement(tagname);
+ node.classList.add(classname);
+ if(innerHTML !== null){
+ node.innerHTML = innerHTML;
+ }
container.appendChild(node);
}
return node;
}
- function buildNode(tagname, classname, innerHTML){
- var node = document.createElement(tagname);
- node.classList.add(classname);
- if(innerHTML !== null){
- node.innerHTML = innerHTML;
- }
- return node;
- }
-
/**
* Creates the slide background elements and appends them
* to the background container. One element is created per
--
cgit v1.2.3
From 48f5ba936703a731392ead9ed910a6c7b21d898c Mon Sep 17 00:00:00 2001
From: Guillaume Turri
Date: Sun, 11 Aug 2013 16:34:04 +0200
Subject: Formatting
---
js/reveal.js | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 5baacfb..b6210b1 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -193,24 +193,24 @@ var Reveal = (function(){
dom.slides = document.querySelector( '.reveal .slides' );
// Background element
- dom.background = createSingletonNode(dom.wrapper, 'div', 'backgrounds', null);
+ dom.background = createSingletonNode( dom.wrapper, 'div', 'backgrounds', null );
// Progress bar
- dom.progress = createSingletonNode(dom.wrapper, 'div', 'progress', '');
- dom.progressbar = dom.progress.querySelector('span');
+ dom.progress = createSingletonNode( dom.wrapper, 'div', 'progress', '' );
+ dom.progressbar = dom.progress.querySelector( 'span' );
// Arrow controls
- createSingletonNode(dom.wrapper, 'aside', 'controls',
+ createSingletonNode( dom.wrapper, 'aside', 'controls',
'' +
'' +
'' +
- '');
+ '' );
// State background element [DEPRECATED]
- createSingletonNode(dom.wrapper, 'div', 'state-background', null);
+ createSingletonNode( dom.wrapper, 'div', 'state-background', null );
// Overlay graphic which is displayed during the paused mode
- createSingletonNode(dom.wrapper, 'div', 'pause-overlay', null);
+ createSingletonNode( dom.wrapper, 'div', 'pause-overlay', null );
// Cache references to elements
if ( config.controls ) {
@@ -227,17 +227,19 @@ var Reveal = (function(){
}
- function createSingletonNode(container, tagname, classname, innerHTML){
- var node = container.querySelector('.' + classname);
+ function createSingletonNode( container, tagname, classname, innerHTML ){
+
+ var node = container.querySelector( '.' + classname );
if( !node ){
- node = document.createElement(tagname);
- node.classList.add(classname);
- if(innerHTML !== null){
+ node = document.createElement( tagname );
+ node.classList.add( classname );
+ if( innerHTML !== null ){
node.innerHTML = innerHTML;
}
- container.appendChild(node);
+ container.appendChild( node );
}
return node;
+
}
/**
--
cgit v1.2.3
From ffd3ea410bf4f2efc85b816f054466ce9e7fa839 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 11 Aug 2013 13:42:50 -0400
Subject: display more slides in overview
---
js/reveal.js | 10 +++-------
js/reveal.min.js | 4 ++--
2 files changed, 5 insertions(+), 9 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 11f5c43..3e91984 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1593,15 +1593,11 @@ var Reveal = (function(){
// The number of steps away from the present slide that will
// be visible
- var viewDistance = config.viewDistance;
+ var viewDistance = isOverview() ? 20 : config.viewDistance;
- // Heavily limited on weaker devices
+ // Limit view distance on weaker devices
if( isMobileDevice ) {
- viewDistance = 1;
- }
-
- if( isOverview() ) {
- viewDistance = 6;
+ viewDistance = isOverview() ? 6 : 1;
}
for( var x = 0; x < horizontalSlidesLength; x++ ) {
diff --git a/js/reveal.min.js b/js/reveal.min.js
index d2cad57..e78c91f 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-10, 14:38)
+ * reveal.js 2.5.0 (2013-08-11, 13:41)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=Yt.viewDistance;Nt&&(r=1),P()&&(r=6);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=P()?20:Yt.viewDistance;Nt&&(r=P()?6:1);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 93f516d30d8b81516384c6ec1064226bfeb07461 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 11 Aug 2013 13:44:03 -0400
Subject: fix bug that caused slideshow to break if an unexisting named link
was used
---
js/reveal.js | 2 +-
js/reveal.min.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 3e91984..7657ec7 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1894,7 +1894,7 @@ var Reveal = (function(){
}
// If the slide doesn't exist, navigate to the current slide
else {
- slide( indexh, indexv );
+ slide( indexh || 0, indexv || 0 );
}
}
else {
diff --git a/js/reveal.min.js b/js/reveal.min.js
index e78c91f..bc1a2d6 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-11, 13:41)
+ * reveal.js 2.5.0 (2013-08-11, 13:43)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=P()?20:Yt.viewDistance;Nt&&(r=P()?6:1);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt,xt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=P()?20:Yt.viewDistance;Nt&&(r=P()?6:1);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt||0,xt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From cc41aa91153eba78d60b04bba86d7e3ead1ff6ca Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 11 Aug 2013 16:27:52 -0400
Subject: correction to view distance calculation for vertical slides
---
js/reveal.js | 22 +++++++++++-----------
js/reveal.min.js | 4 ++--
2 files changed, 13 insertions(+), 13 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 7657ec7..feb2a10 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1587,13 +1587,14 @@ var Reveal = (function(){
// an array
var horizontalSlides = toArray( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ),
horizontalSlidesLength = horizontalSlides.length,
- distance;
+ distanceX,
+ distanceY;
if( horizontalSlidesLength ) {
// The number of steps away from the present slide that will
// be visible
- var viewDistance = isOverview() ? 20 : config.viewDistance;
+ var viewDistance = isOverview() ? 10 : config.viewDistance;
// Limit view distance on weaker devices
if( isMobileDevice ) {
@@ -1606,30 +1607,29 @@ var Reveal = (function(){
var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) ),
verticalSlidesLength = verticalSlides.length;
+ // Loops so that it measures 1 between the first and last slides
+ distanceX = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
+
if( verticalSlidesLength ) {
// Always show the vertical stack itself, even if its child
// slides are invisible
horizontalSlide.style.display = 'block';
+ var oy = getPreviousVerticalIndex( horizontalSlide );
+
for( var y = 0; y < verticalSlidesLength; y++ ) {
var verticalSlide = verticalSlides[y];
- var dx = x - indexh,
- dy = y - indexv;
+ distanceY = x === indexh ? Math.abs( indexv - y ) : Math.abs( y - oy );
- distance = Math.sqrt( dx*dx + dy*dy );
-
- verticalSlide.style.display = distance > viewDistance ? 'none' : 'block';
+ verticalSlide.style.display = ( distanceX + distanceY ) > viewDistance ? 'none' : 'block';
}
}
else {
- // Loops so that it measures 1 between the first and last slides
- distance = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
-
- horizontalSlide.style.display = distance > viewDistance ? 'none' : 'block';
+ horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index bc1a2d6..1e0cbcb 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-11, 13:43)
+ * reveal.js 2.5.0 (2013-08-11, 16:27)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t=u(document.querySelectorAll(Rt)),n=t.length;if(n){var r=P()?20:Yt.viewDistance;Nt&&(r=P()?6:1);for(var o=0;n>o;o++){var a=t[o],i=u(a.querySelectorAll("section")),s=i.length;if(s){a.style.display="block";for(var c=0;s>c;c++){var l=i[c],d=o-qt,f=c-xt;e=Math.sqrt(d*d+f*f),l.style.display=e>r?"none":"block"}}else e=Math.abs((qt-o)%(n-r))||0,a.style.display=e>r?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt||0,xt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t,n=u(document.querySelectorAll(Rt)),r=n.length;if(r){var o=P()?10:Yt.viewDistance;Nt&&(o=P()?6:1);for(var a=0;r>a;a++){var i=n[a],s=u(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((qt-a)%(r-o))||0,c){i.style.display="block";for(var l=q(i),d=0;c>d;d++){var f=s[d];t=a===qt?Math.abs(xt-d):Math.abs(d-l),f.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt||0,xt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 49298e199189ceddece6b9e62e7d811df0f904ff Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 11 Aug 2013 16:32:15 -0400
Subject: disable transitions while presentation loads
---
js/reveal.js | 6 ++++++
js/reveal.min.js | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index feb2a10..08fd474 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -218,6 +218,9 @@ var Reveal = (function(){
dom.wrapper = document.querySelector( '.reveal' );
dom.slides = document.querySelector( '.reveal .slides' );
+ // Prevent transitions while we're loading
+ dom.slides.classList.add( 'no-transition' );
+
// Background element
if( !document.querySelector( '.reveal .backgrounds' ) ) {
dom.background = document.createElement( 'div' );
@@ -444,6 +447,9 @@ var Reveal = (function(){
// Notify listeners that the presentation is ready but use a 1ms
// timeout to ensure it's not fired synchronously after #initialize()
setTimeout( function() {
+ // Enable transitions now that we're loaded
+ dom.slides.classList.remove( 'no-transition' );
+
dispatchEvent( 'ready', {
'indexh': indexh,
'indexv': indexv,
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 1e0cbcb..f51c783 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-11, 16:27)
+ * reveal.js 2.5.0 (2013-08-11, 16:31)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t,n=u(document.querySelectorAll(Rt)),r=n.length;if(r){var o=P()?10:Yt.viewDistance;Nt&&(o=P()?6:1);for(var a=0;r>a;a++){var i=n[a],s=u(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((qt-a)%(r-o))||0,c){i.style.display="block";for(var l=q(i),d=0;c>d;d++){var f=s[d];t=a===qt?Math.abs(xt-d):Math.abs(d-l),f.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt||0,xt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Dt||Pt?(window.addEventListener("load",S,!1),d(Yt,e),o(),a(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Pt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Dt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Nt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){if(Wt.theme=document.querySelector("#theme"),Wt.wrapper=document.querySelector(".reveal"),Wt.slides=document.querySelector(".reveal .slides"),Wt.slides.classList.add("no-transition"),document.querySelector(".reveal .backgrounds")||(Wt.background=document.createElement("div"),Wt.background.classList.add("backgrounds"),Wt.wrapper.appendChild(Wt.background)),!Wt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Wt.wrapper.appendChild(e)}if(!Wt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Wt.wrapper.appendChild(t)}if(!Wt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Wt.wrapper.appendChild(n)}if(!Wt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Wt.wrapper.appendChild(r)}Wt.progress=document.querySelector(".reveal .progress"),Wt.progressbar=document.querySelector(".reveal .progress span"),Yt.controls&&(Wt.controls=document.querySelector(".reveal .controls"),Wt.controlsLeft=u(document.querySelectorAll(".navigate-left")),Wt.controlsRight=u(document.querySelectorAll(".navigate-right")),Wt.controlsUp=u(document.querySelectorAll(".navigate-up")),Wt.controlsDown=u(document.querySelectorAll(".navigate-down")),Wt.controlsPrev=u(document.querySelectorAll(".navigate-prev")),Wt.controlsNext=u(document.querySelectorAll(".navigate-next")))}function r(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}p()&&document.body.classList.add("print-pdf"),Wt.background.innerHTML="",Wt.background.classList.add("no-transition"),u(document.querySelectorAll(Rt)).forEach(function(t){var n;n=p()?e(t,t):e(t,Wt.background),u(t.querySelectorAll("section")).forEach(function(t){p()?e(t,t):e(t,n)})})}function o(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",m,!1),window.addEventListener("orientationchange",m,!1))}function a(){function e(){n.length&&head.js.apply(null,n),i()}for(var t=[],n=[],r=0,o=Yt.dependencies.length;o>r;r++){var a=Yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function i(){n(),s(),V(),setTimeout(function(){Wt.slides.classList.remove("no-transition"),g("ready",{indexh:qt,indexv:xt,currentSlide:Mt})},1)}function s(e){if(Wt.wrapper.classList.remove(Yt.transition),"object"==typeof e&&d(Yt,e),Pt===!1&&(Yt.transition="linear"),Wt.wrapper.classList.add(Yt.transition),Wt.wrapper.setAttribute("data-transition-speed",Yt.transitionSpeed),Wt.wrapper.setAttribute("data-background-transition",Yt.backgroundTransition),Wt.controls&&(Wt.controls.style.display=Yt.controls&&Wt.controls?"block":"none"),Wt.progress&&(Wt.progress.style.display=Yt.progress&&Wt.progress?"block":"none"),Yt.rtl?Wt.wrapper.classList.add("rtl"):Wt.wrapper.classList.remove("rtl"),Yt.center?Wt.wrapper.classList.add("center"):Wt.wrapper.classList.remove("center"),Yt.mouseWheel?(document.addEventListener("DOMMouseScroll",pt,!1),document.addEventListener("mousewheel",pt,!1)):(document.removeEventListener("DOMMouseScroll",pt,!1),document.removeEventListener("mousewheel",pt,!1)),Yt.rollingLinks?h():y(),Yt.previewLinks?b():(w(),b("[data-preview-link]")),Yt.theme&&Wt.theme){var t=Wt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Yt.theme!==r&&(t=t.replace(n,Yt.theme),Wt.theme.setAttribute("href",t))}z()}function c(){$t=!0,window.addEventListener("hashchange",Et,!1),window.addEventListener("resize",kt,!1),Yt.touch&&(Wt.wrapper.addEventListener("touchstart",ct,!1),Wt.wrapper.addEventListener("touchmove",lt,!1),Wt.wrapper.addEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.addEventListener("MSPointerDown",ut,!1),Wt.wrapper.addEventListener("MSPointerMove",ft,!1),Wt.wrapper.addEventListener("MSPointerUp",vt,!1))),Yt.keyboard&&document.addEventListener("keydown",st,!1),Yt.progress&&Wt.progress&&Wt.progress.addEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.addEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.addEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.addEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.addEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.addEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.addEventListener(e,Lt,!1)})})}function l(){$t=!1,document.removeEventListener("keydown",st,!1),window.removeEventListener("hashchange",Et,!1),window.removeEventListener("resize",kt,!1),Wt.wrapper.removeEventListener("touchstart",ct,!1),Wt.wrapper.removeEventListener("touchmove",lt,!1),Wt.wrapper.removeEventListener("touchend",dt,!1),window.navigator.msPointerEnabled&&(Wt.wrapper.removeEventListener("MSPointerDown",ut,!1),Wt.wrapper.removeEventListener("MSPointerMove",ft,!1),Wt.wrapper.removeEventListener("MSPointerUp",vt,!1)),Yt.progress&&Wt.progress&&Wt.progress.removeEventListener("click",mt,!1),Yt.controls&&Wt.controls&&["touchstart","click"].forEach(function(e){Wt.controlsLeft.forEach(function(t){t.removeEventListener(e,gt,!1)}),Wt.controlsRight.forEach(function(t){t.removeEventListener(e,ht,!1)}),Wt.controlsUp.forEach(function(t){t.removeEventListener(e,yt,!1)}),Wt.controlsDown.forEach(function(t){t.removeEventListener(e,bt,!1)}),Wt.controlsPrev.forEach(function(t){t.removeEventListener(e,wt,!1)}),Wt.controlsNext.forEach(function(t){t.removeEventListener(e,Lt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function u(e){return Array.prototype.slice.call(e)}function f(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function v(e){var t=0;if(e){var n=0;u(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function p(){return/print-pdf/gi.test(window.location.search)}function m(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function g(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Wt.wrapper.dispatchEvent(n)}function h(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Ct+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function y(){for(var e=document.querySelectorAll(Ct+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function b(e){var t=u(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",At,!1)})}function w(){var e=u(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",At,!1)})}function L(e){E(),Wt.preview=document.createElement("div"),Wt.preview.classList.add("preview-link-overlay"),Wt.wrapper.appendChild(Wt.preview),Wt.preview.innerHTML=["",'','','',"
"].join(""),Wt.preview.querySelector("iframe").addEventListener("load",function(){Wt.preview.classList.add("loaded")},!1),Wt.preview.querySelector(".close").addEventListener("click",function(e){E(),e.preventDefault()},!1),Wt.preview.querySelector(".external").addEventListener("click",function(){E()},!1),setTimeout(function(){Wt.preview.classList.add("visible")},1)}function E(){Wt.preview&&(Wt.preview.setAttribute("src",""),Wt.preview.parentNode.removeChild(Wt.preview),Wt.preview=null)}function k(e){var t=u(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function S(){if(Wt.wrapper&&!p()){var e=Wt.wrapper.offsetWidth,t=Wt.wrapper.offsetHeight;e-=t*Yt.margin,t-=t*Yt.margin;var n=Yt.width,r=Yt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Wt.slides.style.width=n+"px",Wt.slides.style.height=r+"px",Xt=Math.min(e/n,t/r),Xt=Math.max(Xt,Yt.minScale),Xt=Math.min(Xt,Yt.maxScale),void 0===Wt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Xt+") translate(50%, 50%)";Wt.slides.style.WebkitTransform=o,Wt.slides.style.MozTransform=o,Wt.slides.style.msTransform=o,Wt.slides.style.OTransform=o,Wt.slides.style.transform=o}else Wt.slides.style.zoom=Xt;for(var a=u(document.querySelectorAll(Ct)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Yt.center?c.classList.contains("stack")?0:Math.max(-(v(c)/2)-20,-r/2)+"px":"")}W()}}function A(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function q(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function x(){if(Yt.overview){et();var e=Wt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Wt.wrapper.classList.add("overview"),Wt.wrapper.classList.remove("exit-overview"),clearTimeout(_t),clearTimeout(Kt),_t=setTimeout(function(){for(var n=document.querySelectorAll(Rt),r=0,o=n.length;o>r;r++){var a=n[r],i=Yt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-qt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===qt?xt:q(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",St,!0)}else a.addEventListener("click",St,!0)}X(),S(),e||g("overviewshown",{indexh:qt,indexv:xt,currentSlide:Mt})},10)}}function T(){if(Yt.overview){clearTimeout(_t),clearTimeout(Kt),Wt.wrapper.classList.remove("overview"),Wt.wrapper.classList.add("exit-overview"),Kt=setTimeout(function(){Wt.wrapper.classList.remove("exit-overview")},10);for(var e=u(document.querySelectorAll(Ct)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",St,!0)}Y(qt,xt),J(),g("overviewhidden",{indexh:qt,indexv:xt,currentSlide:Mt})}}function M(e){"boolean"==typeof e?e?x():T():P()?T():x()}function P(){return Wt.wrapper.classList.contains("overview")}function D(e){return e=e?e:Mt,e&&!!e.parentNode.nodeName.match(/section/i)}function N(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function C(){var e=Wt.wrapper.classList.contains("paused");et(),Wt.wrapper.classList.add("paused"),e===!1&&g("paused")}function R(){var e=Wt.wrapper.classList.contains("paused");Wt.wrapper.classList.remove("paused"),J(),e&&g("resumed")}function I(){O()?R():C()}function O(){return Wt.wrapper.classList.contains("paused")}function Y(e,t,n,r){Tt=Mt;var o=document.querySelectorAll(Rt);void 0===t&&(t=q(o[e])),Tt&&Tt.parentNode&&Tt.parentNode.classList.contains("stack")&&A(Tt.parentNode,xt);var a=Ht.concat();Ht.length=0;var i=qt,s=xt;qt=H(Rt,void 0===e?qt:e),xt=H(It,void 0===t?xt:t),X(),S();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),g(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());P()&&x();var f=o[qt],v=f.querySelectorAll("section");if(Mt=v[xt]||f,n!==void 0){var p=k(Mt.querySelectorAll(".fragment"));u(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=qt!==i||xt!==s;m?g("slidechanged",{indexh:qt,indexv:xt,previousSlide:Tt,currentSlide:Mt,origin:r}):Tt=null,Tt&&(Tt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=u(document.querySelectorAll(Rt+".stack"));for(e in t)t[e]&&A(t[e],0)},0)),m&&($(Tt),K(Mt)),U(),W(),j(),Z()}function z(){l(),c(),S(),zt=Yt.autoSlide,J(),r(),U(),W(),j()}function H(e,t){var n=u(document.querySelectorAll(e)),r=n.length;if(r){Yt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Yt.rtl&&!D(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=u(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");zt=l?parseInt(l,10):Yt.autoSlide,J()}else t=0;return t}function X(){var e,t,n=u(document.querySelectorAll(Rt)),r=n.length;if(r){var o=P()?10:Yt.viewDistance;Nt&&(o=P()?6:1);for(var a=0;r>a;a++){var i=n[a],s=u(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((qt-a)%(r-o))||0,c){i.style.display="block";for(var l=q(i),d=0;c>d;d++){var f=s[d];t=a===qt?Math.abs(xt-d):Math.abs(d-l),f.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function W(){if(Yt.progress&&Wt.progress){var e=u(document.querySelectorAll(Rt)),t=document.querySelectorAll(Ct+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=u(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Wt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function U(){if(Yt.controls&&Wt.controls){var e=F(),t=_();Wt.controlsLeft.concat(Wt.controlsRight).concat(Wt.controlsUp).concat(Wt.controlsDown).concat(Wt.controlsPrev).concat(Wt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Wt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Wt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Wt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Wt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Wt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Wt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Mt&&(t.prev&&Wt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),D(Mt)?(t.prev&&Wt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Wt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Wt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function j(){u(Wt.background.childNodes).forEach(function(e,t){var n=Yt.rtl?"future":"past",r=Yt.rtl?"past":"future";e.className="slide-background "+(qt>t?n:t>qt?r:"present"),u(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Wt.background.classList.remove("no-transition")},1)}function F(){var e=document.querySelectorAll(Rt),t=document.querySelectorAll(It),n={left:qt>0||Yt.loop,right:e.length-1>qt||Yt.loop,up:xt>0,down:t.length-1>xt};if(Yt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function _(){if(Mt&&Yt.fragments){var e=Mt.querySelectorAll(".fragment"),t=Mt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function K(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function $(e){e&&(u(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),u(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function V(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);Y(o.h,o.v)}else Y(qt||0,xt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==qt||i!==xt)&&Y(a,i)}}function Z(e){if(Yt.history)if(clearTimeout(Ft),"number"==typeof e)Ft=setTimeout(Z,e);else{var t="/";Mt&&"string"==typeof Mt.getAttribute("id")?t="/"+Mt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function Q(e){var t,n=qt,r=xt;if(e){var o=D(e),a=o?e.parentNode:e,i=u(document.querySelectorAll(Rt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(u(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Mt){var s=Mt.querySelectorAll(".fragment").length>0;if(s){var c=Mt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function B(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.add("visible")}),g("fragmentshown",{fragment:e[0],fragments:e}),U(),!0}}return!1}function G(){if(Mt&&Yt.fragments){var e=k(Mt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Mt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),u(e).forEach(function(e){e.classList.remove("visible")}),g("fragmenthidden",{fragment:e[0],fragments:e}),U(),!0}}return!1}function J(){clearTimeout(jt),!zt||O()||P()||(jt=setTimeout(it,zt))}function et(){clearTimeout(jt)}function tt(){Yt.rtl?(P()||B()===!1)&&F().left&&Y(qt+1):(P()||G()===!1)&&F().left&&Y(qt-1)}function nt(){Yt.rtl?(P()||G()===!1)&&F().right&&Y(qt-1):(P()||B()===!1)&&F().right&&Y(qt+1)}function rt(){(P()||G()===!1)&&F().up&&Y(qt,xt-1)}function ot(){(P()||B()===!1)&&F().down&&Y(qt,xt+1)}function at(){if(G()===!1)if(F().up)rt();else{var e=document.querySelector(Rt+".past:nth-child("+qt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=qt-1;Y(n,t)}}}function it(){B()===!1&&(F().down?ot():nt()),J()}function st(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Yt.keyboard)for(var r in Yt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Yt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:at();break;case 78:case 34:it();break;case 72:case 37:tt();break;case 76:case 39:nt();break;case 75:case 38:rt();break;case 74:case 40:ot();break;case 36:Y(0);break;case 35:Y(Number.MAX_VALUE);break;case 32:P()?T():e.shiftKey?at():it();break;case 13:P()?T():n=!1;break;case 66:case 190:case 191:I();break;case 70:N();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Pt||(M(),e.preventDefault()),J()}}function ct(e){Vt.startX=e.touches[0].clientX,Vt.startY=e.touches[0].clientY,Vt.startCount=e.touches.length,2===e.touches.length&&Yt.overview&&(Vt.startSpan=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY}))}function lt(e){if(Vt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Vt.startCount&&Yt.overview){var r=f({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Vt.startX,y:Vt.startY});Math.abs(Vt.startSpan-r)>Vt.threshold&&(Vt.captured=!0,Vt.startSpan>r?x():T()),e.preventDefault()}else if(1===e.touches.length&&2!==Vt.startCount){var o=t-Vt.startX,a=n-Vt.startY;o>Vt.threshold&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,tt()):-Vt.threshold>o&&Math.abs(o)>Math.abs(a)?(Vt.captured=!0,nt()):a>Vt.threshold?(Vt.captured=!0,rt()):-Vt.threshold>a&&(Vt.captured=!0,ot()),Yt.embedded?(Vt.captured||D(Mt))&&e.preventDefault():e.preventDefault()}}}function dt(){Vt.captured=!1}function ut(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ct(e))}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){if(Date.now()-Ut>600){Ut=Date.now();var t=e.detail||-e.wheelDelta;t>0?it():at()}}function mt(e){e.preventDefault();var t=u(document.querySelectorAll(Rt)).length,n=Math.floor(e.clientX/Wt.wrapper.offsetWidth*t);Y(n)}function gt(e){e.preventDefault(),tt()}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(){V()}function kt(){S()}function St(e){if($t&&P()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(T(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);Y(n,r)}}}function At(e){var t=e.target.getAttribute("href");t&&(L(t),e.preventDefault())}var qt,xt,Tt,Mt,Pt,Dt,Nt,Ct=".reveal .slides section",Rt=".reveal .slides>section",It=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",Yt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=0,Ht=[],Xt=1,Wt={},Ut=0,jt=0,Ft=0,_t=0,Kt=0,$t=!1,Vt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:s,sync:z,slide:Y,left:tt,right:nt,up:rt,down:ot,prev:at,next:it,prevFragment:G,nextFragment:B,navigateTo:Y,navigateLeft:tt,navigateRight:nt,navigateUp:rt,navigateDown:ot,navigatePrev:at,navigateNext:it,layout:S,availableRoutes:F,availableFragments:_,toggleOverview:M,togglePause:I,isOverview:P,isPaused:O,addEventListeners:c,removeEventListeners:l,getIndices:Q,getSlide:function(e,t){var n=document.querySelectorAll(Rt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Tt},getCurrentSlide:function(){return Mt},getScale:function(){return Xt},getConfig:function(){return Yt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Ct+".past")?!0:!1},isLastSlide:function(){return Mt&&Mt.classList.contains(".stack")?null==Mt.querySelector(Ct+".future")?!0:!1:null==document.querySelector(Ct+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Wt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 71218583f7002c29bf8f3cc2fce37cb1e2823802 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Tue, 13 Aug 2013 08:41:16 -0400
Subject: add isReady method to check reveal.js loaded state
---
js/reveal.js | 10 ++++++++++
js/reveal.min.js | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index fd281cb..f0cb6bd 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -96,6 +96,9 @@ var Reveal = (function(){
dependencies: []
},
+ // Flags if reveal.js is loaded (has dispatched the 'ready' event)
+ loaded = false,
+
// The current auto-slide duration
autoSlide = 0,
@@ -447,6 +450,8 @@ var Reveal = (function(){
// Enable transitions now that we're loaded
dom.slides.classList.remove( 'no-transition' );
+ loaded = true;
+
dispatchEvent( 'ready', {
'indexh': indexh,
'indexv': indexv,
@@ -2670,6 +2675,11 @@ var Reveal = (function(){
}
},
+ // Checks if reveal.js has been loaded and is ready for use
+ isReady: function() {
+ return loaded;
+ },
+
// Forward event binding to the reveal DOM element
addEventListener: function( type, listener, useCapture ) {
if( 'addEventListener' in window ) {
diff --git a/js/reveal.min.js b/js/reveal.min.js
index ad0c80c..388b589 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-11, 16:46)
+ * reveal.js 2.5.0 (2013-08-13, 08:39)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Nt||Dt?(window.addEventListener("load",A,!1),u(zt,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Dt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Nt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ct=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){Ut.theme=document.querySelector("#theme"),Ut.wrapper=document.querySelector(".reveal"),Ut.slides=document.querySelector(".reveal .slides"),Ut.slides.classList.add("no-transition"),Ut.background=r(Ut.wrapper,"div","backgrounds",null),Ut.progress=r(Ut.wrapper,"div","progress",""),Ut.progressbar=Ut.progress.querySelector("span"),r(Ut.wrapper,"aside","controls",''),r(Ut.wrapper,"div","state-background",null),r(Ut.wrapper,"div","pause-overlay",null),zt.controls&&(Ut.controls=document.querySelector(".reveal .controls"),Ut.controlsLeft=f(document.querySelectorAll(".navigate-left")),Ut.controlsRight=f(document.querySelectorAll(".navigate-right")),Ut.controlsUp=f(document.querySelectorAll(".navigate-up")),Ut.controlsDown=f(document.querySelectorAll(".navigate-down")),Ut.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Ut.controlsNext=f(document.querySelectorAll(".navigate-next")))}function r(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),Ut.background.innerHTML="",Ut.background.classList.add("no-transition"),f(document.querySelectorAll(It)).forEach(function(t){var n;n=m()?e(t,t):e(t,Ut.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",g,!1),window.addEventListener("orientationchange",g,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=zt.dependencies.length;o>r;r++){var a=zt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){n(),c(),Z(),setTimeout(function(){Ut.slides.classList.remove("no-transition"),h("ready",{indexh:xt,indexv:Tt,currentSlide:Pt})},1)}function c(e){if(Ut.wrapper.classList.remove(zt.transition),"object"==typeof e&&u(zt,e),Dt===!1&&(zt.transition="linear"),Ut.wrapper.classList.add(zt.transition),Ut.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),Ut.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),Ut.controls&&(Ut.controls.style.display=zt.controls&&Ut.controls?"block":"none"),Ut.progress&&(Ut.progress.style.display=zt.progress&&Ut.progress?"block":"none"),zt.rtl?Ut.wrapper.classList.add("rtl"):Ut.wrapper.classList.remove("rtl"),zt.center?Ut.wrapper.classList.add("center"):Ut.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",mt,!1),document.addEventListener("mousewheel",mt,!1)):(document.removeEventListener("DOMMouseScroll",mt,!1),document.removeEventListener("mousewheel",mt,!1)),zt.rollingLinks?y():b(),zt.previewLinks?w():(L(),w("[data-preview-link]")),zt.theme&&Ut.theme){var t=Ut.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),Ut.theme.setAttribute("href",t))}X()}function l(){Vt=!0,window.addEventListener("hashchange",kt,!1),window.addEventListener("resize",St,!1),zt.touch&&(Ut.wrapper.addEventListener("touchstart",lt,!1),Ut.wrapper.addEventListener("touchmove",dt,!1),Ut.wrapper.addEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(Ut.wrapper.addEventListener("MSPointerDown",ft,!1),Ut.wrapper.addEventListener("MSPointerMove",vt,!1),Ut.wrapper.addEventListener("MSPointerUp",pt,!1))),zt.keyboard&&document.addEventListener("keydown",ct,!1),zt.progress&&Ut.progress&&Ut.progress.addEventListener("click",gt,!1),zt.controls&&Ut.controls&&["touchstart","click"].forEach(function(e){Ut.controlsLeft.forEach(function(t){t.addEventListener(e,ht,!1)}),Ut.controlsRight.forEach(function(t){t.addEventListener(e,yt,!1)}),Ut.controlsUp.forEach(function(t){t.addEventListener(e,bt,!1)}),Ut.controlsDown.forEach(function(t){t.addEventListener(e,wt,!1)}),Ut.controlsPrev.forEach(function(t){t.addEventListener(e,Lt,!1)}),Ut.controlsNext.forEach(function(t){t.addEventListener(e,Et,!1)})})}function d(){Vt=!1,document.removeEventListener("keydown",ct,!1),window.removeEventListener("hashchange",kt,!1),window.removeEventListener("resize",St,!1),Ut.wrapper.removeEventListener("touchstart",lt,!1),Ut.wrapper.removeEventListener("touchmove",dt,!1),Ut.wrapper.removeEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(Ut.wrapper.removeEventListener("MSPointerDown",ft,!1),Ut.wrapper.removeEventListener("MSPointerMove",vt,!1),Ut.wrapper.removeEventListener("MSPointerUp",pt,!1)),zt.progress&&Ut.progress&&Ut.progress.removeEventListener("click",gt,!1),zt.controls&&Ut.controls&&["touchstart","click"].forEach(function(e){Ut.controlsLeft.forEach(function(t){t.removeEventListener(e,ht,!1)}),Ut.controlsRight.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ut.controlsUp.forEach(function(t){t.removeEventListener(e,bt,!1)}),Ut.controlsDown.forEach(function(t){t.removeEventListener(e,wt,!1)}),Ut.controlsPrev.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Ut.controlsNext.forEach(function(t){t.removeEventListener(e,Et,!1)})})}function u(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function g(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function h(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),u(n,t),Ut.wrapper.dispatchEvent(n)}function y(){if(Dt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Rt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function b(){for(var e=document.querySelectorAll(Rt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function w(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",qt,!1)})}function L(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",qt,!1)})}function E(e){k(),Ut.preview=document.createElement("div"),Ut.preview.classList.add("preview-link-overlay"),Ut.wrapper.appendChild(Ut.preview),Ut.preview.innerHTML=["",'','','',"
"].join(""),Ut.preview.querySelector("iframe").addEventListener("load",function(){Ut.preview.classList.add("loaded")},!1),Ut.preview.querySelector(".close").addEventListener("click",function(e){k(),e.preventDefault()},!1),Ut.preview.querySelector(".external").addEventListener("click",function(){k()},!1),setTimeout(function(){Ut.preview.classList.add("visible")},1)}function k(){Ut.preview&&(Ut.preview.setAttribute("src",""),Ut.preview.parentNode.removeChild(Ut.preview),Ut.preview=null)}function S(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function A(){if(Ut.wrapper&&!m()){var e=Ut.wrapper.offsetWidth,t=Ut.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ut.slides.style.width=n+"px",Ut.slides.style.height=r+"px",Wt=Math.min(e/n,t/r),Wt=Math.max(Wt,zt.minScale),Wt=Math.min(Wt,zt.maxScale),void 0===Ut.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Wt+") translate(50%, 50%)";Ut.slides.style.WebkitTransform=o,Ut.slides.style.MozTransform=o,Ut.slides.style.msTransform=o,Ut.slides.style.OTransform=o,Ut.slides.style.transform=o}else Ut.slides.style.zoom=Wt;for(var a=f(document.querySelectorAll(Rt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=zt.center?c.classList.contains("stack")?0:Math.max(-(p(c)/2)-20,-r/2)+"px":"")}U()}}function q(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function x(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function T(){if(zt.overview){tt();var e=Ut.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Ut.wrapper.classList.add("overview"),Ut.wrapper.classList.remove("exit-overview"),clearTimeout(Kt),clearTimeout($t),Kt=setTimeout(function(){for(var n=document.querySelectorAll(It),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-xt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===xt?Tt:x(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",At,!0)}else a.addEventListener("click",At,!0)}W(),A(),e||h("overviewshown",{indexh:xt,indexv:Tt,currentSlide:Pt})},10)}}function M(){if(zt.overview){clearTimeout(Kt),clearTimeout($t),Ut.wrapper.classList.remove("overview"),Ut.wrapper.classList.add("exit-overview"),$t=setTimeout(function(){Ut.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Rt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",At,!0)}z(xt,Tt),et(),h("overviewhidden",{indexh:xt,indexv:Tt,currentSlide:Pt})}}function P(e){"boolean"==typeof e?e?T():M():D()?M():T()}function D(){return Ut.wrapper.classList.contains("overview")}function N(e){return e=e?e:Pt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function R(){var e=Ut.wrapper.classList.contains("paused");tt(),Ut.wrapper.classList.add("paused"),e===!1&&h("paused")}function I(){var e=Ut.wrapper.classList.contains("paused");Ut.wrapper.classList.remove("paused"),et(),e&&h("resumed")}function O(){Y()?I():R()}function Y(){return Ut.wrapper.classList.contains("paused")}function z(e,t,n,r){Mt=Pt;var o=document.querySelectorAll(It);void 0===t&&(t=x(o[e])),Mt&&Mt.parentNode&&Mt.parentNode.classList.contains("stack")&&q(Mt.parentNode,Tt);var a=Ht.concat();Ht.length=0;var i=xt,s=Tt;xt=H(It,void 0===e?xt:e),Tt=H(Ot,void 0===t?Tt:t),W(),A();e:for(var c=0,l=Ht.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Ht[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Ht[c]),h(Ht[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());D()&&T();var u=o[xt],v=u.querySelectorAll("section");if(Pt=v[Tt]||u,n!==void 0){var p=S(Pt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=xt!==i||Tt!==s;m?h("slidechanged",{indexh:xt,indexv:Tt,previousSlide:Mt,currentSlide:Pt,origin:r}):Mt=null,Mt&&(Mt.classList.remove("present"),document.querySelector(Yt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(It+".stack"));for(e in t)t[e]&&q(t[e],0)},0)),m&&(V(Mt),$(Pt)),j(),U(),F(),Q()}function X(){d(),l(),A(),Xt=zt.autoSlide,et(),o(),j(),U(),F()}function H(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!N(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ht=Ht.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Xt=l?parseInt(l,10):zt.autoSlide,et()}else t=0;return t}function W(){var e,t,n=f(document.querySelectorAll(It)),r=n.length;if(r){var o=D()?10:zt.viewDistance;Ct&&(o=D()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((xt-a)%(r-o))||0,c){i.style.display="block";for(var l=x(i),d=0;c>d;d++){var u=s[d];t=a===xt?Math.abs(Tt-d):Math.abs(d-l),u.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function U(){if(zt.progress&&Ut.progress){var e=f(document.querySelectorAll(It)),t=document.querySelectorAll(Rt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ut.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function j(){if(zt.controls&&Ut.controls){var e=_(),t=K();Ut.controlsLeft.concat(Ut.controlsRight).concat(Ut.controlsUp).concat(Ut.controlsDown).concat(Ut.controlsPrev).concat(Ut.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ut.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ut.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ut.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ut.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ut.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ut.controlsNext.forEach(function(e){e.classList.add("enabled")}),Pt&&(t.prev&&Ut.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ut.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),N(Pt)?(t.prev&&Ut.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ut.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ut.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ut.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function F(){f(Ut.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(xt>t?n:t>xt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Tt>t?"past":t>Tt?"future":"present")})}),setTimeout(function(){Ut.background.classList.remove("no-transition")},1)}function _(){var e=document.querySelectorAll(It),t=document.querySelectorAll(Ot),n={left:xt>0||zt.loop,right:e.length-1>xt||zt.loop,up:Tt>0,down:t.length-1>Tt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function K(){if(Pt&&zt.fragments){var e=Pt.querySelectorAll(".fragment"),t=Pt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function $(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function V(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Z(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(xt||0,Tt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==xt||i!==Tt)&&z(a,i)}}function Q(e){if(zt.history)if(clearTimeout(_t),"number"==typeof e)_t=setTimeout(Q,e);else{var t="/";Pt&&"string"==typeof Pt.getAttribute("id")?t="/"+Pt.getAttribute("id"):((xt>0||Tt>0)&&(t+=xt),Tt>0&&(t+="/"+Tt)),window.location.hash=t}}function B(e){var t,n=xt,r=Tt;if(e){var o=N(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(It));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Pt){var s=Pt.querySelectorAll(".fragment").length>0;if(s){var c=Pt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function G(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),h("fragmentshown",{fragment:e[0],fragments:e}),j(),!0}}return!1}function J(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),h("fragmenthidden",{fragment:e[0],fragments:e}),j(),!0}}return!1}function et(){clearTimeout(Ft),!Xt||Y()||D()||(Ft=setTimeout(st,Xt))}function tt(){clearTimeout(Ft)}function nt(){zt.rtl?(D()||G()===!1)&&_().left&&z(xt+1):(D()||J()===!1)&&_().left&&z(xt-1)}function rt(){zt.rtl?(D()||J()===!1)&&_().right&&z(xt-1):(D()||G()===!1)&&_().right&&z(xt+1)}function ot(){(D()||J()===!1)&&_().up&&z(xt,Tt-1)}function at(){(D()||G()===!1)&&_().down&&z(xt,Tt+1)}function it(){if(J()===!1)if(_().up)ot();else{var e=document.querySelector(It+".past:nth-child("+xt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=xt-1;z(n,t)}}}function st(){G()===!1&&(_().down?at():rt()),et()}function ct(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(Y()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:it();break;case 78:case 34:st();break;case 72:case 37:nt();break;case 76:case 39:rt();break;case 75:case 38:ot();break;case 74:case 40:at();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:D()?M():e.shiftKey?it():st();break;case 13:D()?M():n=!1;break;case 66:case 190:case 191:O();break;case 70:C();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Dt||(P(),e.preventDefault()),et()}}function lt(e){Zt.startX=e.touches[0].clientX,Zt.startY=e.touches[0].clientY,Zt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Zt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Zt.startX,y:Zt.startY}))}function dt(e){if(Zt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Zt.startCount&&zt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Zt.startX,y:Zt.startY});Math.abs(Zt.startSpan-r)>Zt.threshold&&(Zt.captured=!0,Zt.startSpan>r?T():M()),e.preventDefault()}else if(1===e.touches.length&&2!==Zt.startCount){var o=t-Zt.startX,a=n-Zt.startY;o>Zt.threshold&&Math.abs(o)>Math.abs(a)?(Zt.captured=!0,nt()):-Zt.threshold>o&&Math.abs(o)>Math.abs(a)?(Zt.captured=!0,rt()):a>Zt.threshold?(Zt.captured=!0,ot()):-Zt.threshold>a&&(Zt.captured=!0,at()),zt.embedded?(Zt.captured||N(Pt))&&e.preventDefault():e.preventDefault()}}}function ut(){Zt.captured=!1}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ut(e))}function mt(e){if(Date.now()-jt>600){jt=Date.now();var t=e.detail||-e.wheelDelta;t>0?st():it()}}function gt(e){e.preventDefault();var t=f(document.querySelectorAll(It)).length,n=Math.floor(e.clientX/Ut.wrapper.offsetWidth*t);z(n)}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(){Z()}function St(){A()}function At(e){if(Vt&&D()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(M(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function qt(e){var t=e.target.getAttribute("href");t&&(E(t),e.preventDefault())}var xt,Tt,Mt,Pt,Dt,Nt,Ct,Rt=".reveal .slides section",It=".reveal .slides>section",Ot=".reveal .slides>section.present>section",Yt=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Xt=0,Ht=[],Wt=1,Ut={},jt=0,Ft=0,_t=0,Kt=0,$t=0,Vt=!1,Zt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:X,slide:z,left:nt,right:rt,up:ot,down:at,prev:it,next:st,prevFragment:J,nextFragment:G,navigateTo:z,navigateLeft:nt,navigateRight:rt,navigateUp:ot,navigateDown:at,navigatePrev:it,navigateNext:st,layout:A,availableRoutes:_,availableFragments:K,toggleOverview:P,togglePause:O,isOverview:D,isPaused:Y,addEventListeners:l,removeEventListeners:d,getIndices:B,getSlide:function(e,t){var n=document.querySelectorAll(It)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Mt},getCurrentSlide:function(){return Pt},getScale:function(){return Wt},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Rt+".past")?!0:!1},isLastSlide:function(){return Pt&&Pt.classList.contains(".stack")?null==Pt.querySelector(Rt+".future")?!0:!1:null==document.querySelector(Rt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ut.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ut.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Nt||Dt?(window.addEventListener("load",A,!1),u(zt,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Dt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Nt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ct=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){jt.theme=document.querySelector("#theme"),jt.wrapper=document.querySelector(".reveal"),jt.slides=document.querySelector(".reveal .slides"),jt.slides.classList.add("no-transition"),jt.background=r(jt.wrapper,"div","backgrounds",null),jt.progress=r(jt.wrapper,"div","progress",""),jt.progressbar=jt.progress.querySelector("span"),r(jt.wrapper,"aside","controls",''),r(jt.wrapper,"div","state-background",null),r(jt.wrapper,"div","pause-overlay",null),zt.controls&&(jt.controls=document.querySelector(".reveal .controls"),jt.controlsLeft=f(document.querySelectorAll(".navigate-left")),jt.controlsRight=f(document.querySelectorAll(".navigate-right")),jt.controlsUp=f(document.querySelectorAll(".navigate-up")),jt.controlsDown=f(document.querySelectorAll(".navigate-down")),jt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),jt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function r(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),jt.background.innerHTML="",jt.background.classList.add("no-transition"),f(document.querySelectorAll(It)).forEach(function(t){var n;n=m()?e(t,t):e(t,jt.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",g,!1),window.addEventListener("orientationchange",g,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=zt.dependencies.length;o>r;r++){var a=zt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){n(),c(),Z(),setTimeout(function(){jt.slides.classList.remove("no-transition"),Xt=!0,h("ready",{indexh:xt,indexv:Tt,currentSlide:Pt})},1)}function c(e){if(jt.wrapper.classList.remove(zt.transition),"object"==typeof e&&u(zt,e),Dt===!1&&(zt.transition="linear"),jt.wrapper.classList.add(zt.transition),jt.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),jt.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),jt.controls&&(jt.controls.style.display=zt.controls&&jt.controls?"block":"none"),jt.progress&&(jt.progress.style.display=zt.progress&&jt.progress?"block":"none"),zt.rtl?jt.wrapper.classList.add("rtl"):jt.wrapper.classList.remove("rtl"),zt.center?jt.wrapper.classList.add("center"):jt.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",mt,!1),document.addEventListener("mousewheel",mt,!1)):(document.removeEventListener("DOMMouseScroll",mt,!1),document.removeEventListener("mousewheel",mt,!1)),zt.rollingLinks?y():b(),zt.previewLinks?w():(L(),w("[data-preview-link]")),zt.theme&&jt.theme){var t=jt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),jt.theme.setAttribute("href",t))}X()}function l(){Zt=!0,window.addEventListener("hashchange",kt,!1),window.addEventListener("resize",St,!1),zt.touch&&(jt.wrapper.addEventListener("touchstart",lt,!1),jt.wrapper.addEventListener("touchmove",dt,!1),jt.wrapper.addEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(jt.wrapper.addEventListener("MSPointerDown",ft,!1),jt.wrapper.addEventListener("MSPointerMove",vt,!1),jt.wrapper.addEventListener("MSPointerUp",pt,!1))),zt.keyboard&&document.addEventListener("keydown",ct,!1),zt.progress&&jt.progress&&jt.progress.addEventListener("click",gt,!1),zt.controls&&jt.controls&&["touchstart","click"].forEach(function(e){jt.controlsLeft.forEach(function(t){t.addEventListener(e,ht,!1)}),jt.controlsRight.forEach(function(t){t.addEventListener(e,yt,!1)}),jt.controlsUp.forEach(function(t){t.addEventListener(e,bt,!1)}),jt.controlsDown.forEach(function(t){t.addEventListener(e,wt,!1)}),jt.controlsPrev.forEach(function(t){t.addEventListener(e,Lt,!1)}),jt.controlsNext.forEach(function(t){t.addEventListener(e,Et,!1)})})}function d(){Zt=!1,document.removeEventListener("keydown",ct,!1),window.removeEventListener("hashchange",kt,!1),window.removeEventListener("resize",St,!1),jt.wrapper.removeEventListener("touchstart",lt,!1),jt.wrapper.removeEventListener("touchmove",dt,!1),jt.wrapper.removeEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(jt.wrapper.removeEventListener("MSPointerDown",ft,!1),jt.wrapper.removeEventListener("MSPointerMove",vt,!1),jt.wrapper.removeEventListener("MSPointerUp",pt,!1)),zt.progress&&jt.progress&&jt.progress.removeEventListener("click",gt,!1),zt.controls&&jt.controls&&["touchstart","click"].forEach(function(e){jt.controlsLeft.forEach(function(t){t.removeEventListener(e,ht,!1)}),jt.controlsRight.forEach(function(t){t.removeEventListener(e,yt,!1)}),jt.controlsUp.forEach(function(t){t.removeEventListener(e,bt,!1)}),jt.controlsDown.forEach(function(t){t.removeEventListener(e,wt,!1)}),jt.controlsPrev.forEach(function(t){t.removeEventListener(e,Lt,!1)}),jt.controlsNext.forEach(function(t){t.removeEventListener(e,Et,!1)})})}function u(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function g(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function h(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),u(n,t),jt.wrapper.dispatchEvent(n)}function y(){if(Dt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Rt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function b(){for(var e=document.querySelectorAll(Rt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function w(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",qt,!1)})}function L(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",qt,!1)})}function E(e){k(),jt.preview=document.createElement("div"),jt.preview.classList.add("preview-link-overlay"),jt.wrapper.appendChild(jt.preview),jt.preview.innerHTML=["",'','','',"
"].join(""),jt.preview.querySelector("iframe").addEventListener("load",function(){jt.preview.classList.add("loaded")},!1),jt.preview.querySelector(".close").addEventListener("click",function(e){k(),e.preventDefault()},!1),jt.preview.querySelector(".external").addEventListener("click",function(){k()},!1),setTimeout(function(){jt.preview.classList.add("visible")},1)}function k(){jt.preview&&(jt.preview.setAttribute("src",""),jt.preview.parentNode.removeChild(jt.preview),jt.preview=null)}function S(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function A(){if(jt.wrapper&&!m()){var e=jt.wrapper.offsetWidth,t=jt.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),jt.slides.style.width=n+"px",jt.slides.style.height=r+"px",Ut=Math.min(e/n,t/r),Ut=Math.max(Ut,zt.minScale),Ut=Math.min(Ut,zt.maxScale),void 0===jt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Ut+") translate(50%, 50%)";jt.slides.style.WebkitTransform=o,jt.slides.style.MozTransform=o,jt.slides.style.msTransform=o,jt.slides.style.OTransform=o,jt.slides.style.transform=o}else jt.slides.style.zoom=Ut;for(var a=f(document.querySelectorAll(Rt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=zt.center?c.classList.contains("stack")?0:Math.max(-(p(c)/2)-20,-r/2)+"px":"")}U()}}function q(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function x(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function T(){if(zt.overview){tt();var e=jt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;jt.wrapper.classList.add("overview"),jt.wrapper.classList.remove("exit-overview"),clearTimeout($t),clearTimeout(Vt),$t=setTimeout(function(){for(var n=document.querySelectorAll(It),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-xt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===xt?Tt:x(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",At,!0)}else a.addEventListener("click",At,!0)}W(),A(),e||h("overviewshown",{indexh:xt,indexv:Tt,currentSlide:Pt})},10)}}function M(){if(zt.overview){clearTimeout($t),clearTimeout(Vt),jt.wrapper.classList.remove("overview"),jt.wrapper.classList.add("exit-overview"),Vt=setTimeout(function(){jt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Rt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",At,!0)}z(xt,Tt),et(),h("overviewhidden",{indexh:xt,indexv:Tt,currentSlide:Pt})}}function P(e){"boolean"==typeof e?e?T():M():D()?M():T()}function D(){return jt.wrapper.classList.contains("overview")}function N(e){return e=e?e:Pt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function R(){var e=jt.wrapper.classList.contains("paused");tt(),jt.wrapper.classList.add("paused"),e===!1&&h("paused")}function I(){var e=jt.wrapper.classList.contains("paused");jt.wrapper.classList.remove("paused"),et(),e&&h("resumed")}function O(){Y()?I():R()}function Y(){return jt.wrapper.classList.contains("paused")}function z(e,t,n,r){Mt=Pt;var o=document.querySelectorAll(It);void 0===t&&(t=x(o[e])),Mt&&Mt.parentNode&&Mt.parentNode.classList.contains("stack")&&q(Mt.parentNode,Tt);var a=Wt.concat();Wt.length=0;var i=xt,s=Tt;xt=H(It,void 0===e?xt:e),Tt=H(Ot,void 0===t?Tt:t),W(),A();e:for(var c=0,l=Wt.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Wt[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Wt[c]),h(Wt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());D()&&T();var u=o[xt],v=u.querySelectorAll("section");if(Pt=v[Tt]||u,n!==void 0){var p=S(Pt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=xt!==i||Tt!==s;m?h("slidechanged",{indexh:xt,indexv:Tt,previousSlide:Mt,currentSlide:Pt,origin:r}):Mt=null,Mt&&(Mt.classList.remove("present"),document.querySelector(Yt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(It+".stack"));for(e in t)t[e]&&q(t[e],0)},0)),m&&(V(Mt),$(Pt)),j(),U(),F(),Q()}function X(){d(),l(),A(),Ht=zt.autoSlide,et(),o(),j(),U(),F()}function H(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!N(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Wt=Wt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ht=l?parseInt(l,10):zt.autoSlide,et()}else t=0;return t}function W(){var e,t,n=f(document.querySelectorAll(It)),r=n.length;if(r){var o=D()?10:zt.viewDistance;Ct&&(o=D()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((xt-a)%(r-o))||0,c){i.style.display="block";for(var l=x(i),d=0;c>d;d++){var u=s[d];t=a===xt?Math.abs(Tt-d):Math.abs(d-l),u.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function U(){if(zt.progress&&jt.progress){var e=f(document.querySelectorAll(It)),t=document.querySelectorAll(Rt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}jt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function j(){if(zt.controls&&jt.controls){var e=_(),t=K();jt.controlsLeft.concat(jt.controlsRight).concat(jt.controlsUp).concat(jt.controlsDown).concat(jt.controlsPrev).concat(jt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&jt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&jt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&jt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&jt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&jt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&jt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Pt&&(t.prev&&jt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),N(Pt)?(t.prev&&jt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&jt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function F(){f(jt.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(xt>t?n:t>xt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Tt>t?"past":t>Tt?"future":"present")})}),setTimeout(function(){jt.background.classList.remove("no-transition")},1)}function _(){var e=document.querySelectorAll(It),t=document.querySelectorAll(Ot),n={left:xt>0||zt.loop,right:e.length-1>xt||zt.loop,up:Tt>0,down:t.length-1>Tt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function K(){if(Pt&&zt.fragments){var e=Pt.querySelectorAll(".fragment"),t=Pt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function $(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function V(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Z(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(xt||0,Tt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==xt||i!==Tt)&&z(a,i)}}function Q(e){if(zt.history)if(clearTimeout(Kt),"number"==typeof e)Kt=setTimeout(Q,e);else{var t="/";Pt&&"string"==typeof Pt.getAttribute("id")?t="/"+Pt.getAttribute("id"):((xt>0||Tt>0)&&(t+=xt),Tt>0&&(t+="/"+Tt)),window.location.hash=t}}function B(e){var t,n=xt,r=Tt;if(e){var o=N(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(It));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Pt){var s=Pt.querySelectorAll(".fragment").length>0;if(s){var c=Pt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function G(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),h("fragmentshown",{fragment:e[0],fragments:e}),j(),!0}}return!1}function J(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),h("fragmenthidden",{fragment:e[0],fragments:e}),j(),!0}}return!1}function et(){clearTimeout(_t),!Ht||Y()||D()||(_t=setTimeout(st,Ht))}function tt(){clearTimeout(_t)}function nt(){zt.rtl?(D()||G()===!1)&&_().left&&z(xt+1):(D()||J()===!1)&&_().left&&z(xt-1)}function rt(){zt.rtl?(D()||J()===!1)&&_().right&&z(xt-1):(D()||G()===!1)&&_().right&&z(xt+1)}function ot(){(D()||J()===!1)&&_().up&&z(xt,Tt-1)}function at(){(D()||G()===!1)&&_().down&&z(xt,Tt+1)}function it(){if(J()===!1)if(_().up)ot();else{var e=document.querySelector(It+".past:nth-child("+xt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=xt-1;z(n,t)}}}function st(){G()===!1&&(_().down?at():rt()),et()}function ct(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(Y()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:it();break;case 78:case 34:st();break;case 72:case 37:nt();break;case 76:case 39:rt();break;case 75:case 38:ot();break;case 74:case 40:at();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:D()?M():e.shiftKey?it():st();break;case 13:D()?M():n=!1;break;case 66:case 190:case 191:O();break;case 70:C();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Dt||(P(),e.preventDefault()),et()}}function lt(e){Qt.startX=e.touches[0].clientX,Qt.startY=e.touches[0].clientY,Qt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Qt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Qt.startX,y:Qt.startY}))}function dt(e){if(Qt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Qt.startCount&&zt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Qt.startX,y:Qt.startY});Math.abs(Qt.startSpan-r)>Qt.threshold&&(Qt.captured=!0,Qt.startSpan>r?T():M()),e.preventDefault()}else if(1===e.touches.length&&2!==Qt.startCount){var o=t-Qt.startX,a=n-Qt.startY;o>Qt.threshold&&Math.abs(o)>Math.abs(a)?(Qt.captured=!0,nt()):-Qt.threshold>o&&Math.abs(o)>Math.abs(a)?(Qt.captured=!0,rt()):a>Qt.threshold?(Qt.captured=!0,ot()):-Qt.threshold>a&&(Qt.captured=!0,at()),zt.embedded?(Qt.captured||N(Pt))&&e.preventDefault():e.preventDefault()}}}function ut(){Qt.captured=!1}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ut(e))}function mt(e){if(Date.now()-Ft>600){Ft=Date.now();var t=e.detail||-e.wheelDelta;t>0?st():it()}}function gt(e){e.preventDefault();var t=f(document.querySelectorAll(It)).length,n=Math.floor(e.clientX/jt.wrapper.offsetWidth*t);z(n)}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(){Z()}function St(){A()}function At(e){if(Zt&&D()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(M(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function qt(e){var t=e.target.getAttribute("href");t&&(E(t),e.preventDefault())}var xt,Tt,Mt,Pt,Dt,Nt,Ct,Rt=".reveal .slides section",It=".reveal .slides>section",Ot=".reveal .slides>section.present>section",Yt=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Xt=!1,Ht=0,Wt=[],Ut=1,jt={},Ft=0,_t=0,Kt=0,$t=0,Vt=0,Zt=!1,Qt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:X,slide:z,left:nt,right:rt,up:ot,down:at,prev:it,next:st,prevFragment:J,nextFragment:G,navigateTo:z,navigateLeft:nt,navigateRight:rt,navigateUp:ot,navigateDown:at,navigatePrev:it,navigateNext:st,layout:A,availableRoutes:_,availableFragments:K,toggleOverview:P,togglePause:O,isOverview:D,isPaused:Y,addEventListeners:l,removeEventListeners:d,getIndices:B,getSlide:function(e,t){var n=document.querySelectorAll(It)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Mt},getCurrentSlide:function(){return Pt},getScale:function(){return Ut},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Rt+".past")?!0:!1},isLastSlide:function(){return Pt&&Pt.classList.contains(".stack")?null==Pt.querySelector(Rt+".future")?!0:!1:null==document.querySelector(Rt+".future")?!0:!1},isReady:function(){return Xt},addEventListener:function(e,t,n){"addEventListener"in window&&(jt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(jt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 6c0dc635a15edc6b4b09bb3aecdfd90399ae8ceb Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Tue, 13 Aug 2013 09:27:19 -0400
Subject: add util method for applying css transforms
---
js/reveal.js | 49 +++++++++++++++++++++++--------------------------
js/reveal.min.js | 4 ++--
2 files changed, 25 insertions(+), 28 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index f0cb6bd..00097a1 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -664,6 +664,19 @@ var Reveal = (function(){
}
+ /**
+ * Applies a CSS transform to the target element.
+ */
+ function transformElement( element, transform ) {
+
+ element.style.WebkitTransform = transform;
+ element.style.MozTransform = transform;
+ element.style.msTransform = transform;
+ element.style.OTransform = transform;
+ element.style.transform = transform;
+
+ }
+
/**
* Retrieves the height of the given element by looking
* at the position and height of its immediate children.
@@ -949,13 +962,7 @@ var Reveal = (function(){
}
// Apply scale transform as a fallback
else {
- var transform = 'translate(-50%, -50%) scale('+ scale +') translate(50%, 50%)';
-
- dom.slides.style.WebkitTransform = transform;
- dom.slides.style.MozTransform = transform;
- dom.slides.style.msTransform = transform;
- dom.slides.style.OTransform = transform;
- dom.slides.style.transform = transform;
+ transformElement( dom.slides, 'translate(-50%, -50%) scale('+ scale +') translate(50%, 50%)' );
}
// Select all slides, vertical and horizontal
@@ -1062,15 +1069,12 @@ var Reveal = (function(){
for( var i = 0, len1 = horizontalSlides.length; i < len1; i++ ) {
var hslide = horizontalSlides[i],
- hoffset = config.rtl ? -105 : 105,
- htransform = 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)';
+ hoffset = config.rtl ? -105 : 105;
hslide.setAttribute( 'data-index-h', i );
- hslide.style.WebkitTransform = htransform;
- hslide.style.MozTransform = htransform;
- hslide.style.msTransform = htransform;
- hslide.style.OTransform = htransform;
- hslide.style.transform = htransform;
+
+ // Apply CSS transform
+ transformElement( hslide, 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)' );
if( hslide.classList.contains( 'stack' ) ) {
@@ -1079,16 +1083,13 @@ var Reveal = (function(){
for( var j = 0, len2 = verticalSlides.length; j < len2; j++ ) {
var verticalIndex = i === indexh ? indexv : getPreviousVerticalIndex( hslide );
- var vslide = verticalSlides[j],
- vtransform = 'translate(0%, ' + ( ( j - verticalIndex ) * 105 ) + '%)';
+ var vslide = verticalSlides[j];
vslide.setAttribute( 'data-index-h', i );
vslide.setAttribute( 'data-index-v', j );
- vslide.style.WebkitTransform = vtransform;
- vslide.style.MozTransform = vtransform;
- vslide.style.msTransform = vtransform;
- vslide.style.OTransform = vtransform;
- vslide.style.transform = vtransform;
+
+ // Apply CSS transform
+ transformElement( vslide, 'translate(0%, ' + ( ( j - verticalIndex ) * 105 ) + '%)' );
// Navigate to this slide on click
vslide.addEventListener( 'click', onOverviewSlideClicked, true );
@@ -1154,11 +1155,7 @@ var Reveal = (function(){
element.style.display = '';
// Resets all transforms to use the external styles
- element.style.WebkitTransform = '';
- element.style.MozTransform = '';
- element.style.msTransform = '';
- element.style.OTransform = '';
- element.style.transform = '';
+ transformElement( element, '' );
element.removeEventListener( 'click', onOverviewSlideClicked, true );
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 388b589..5c2127b 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-13, 08:39)
+ * reveal.js 2.5.0 (2013-08-13, 09:26)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Nt||Dt?(window.addEventListener("load",A,!1),u(zt,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Dt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Nt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ct=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){jt.theme=document.querySelector("#theme"),jt.wrapper=document.querySelector(".reveal"),jt.slides=document.querySelector(".reveal .slides"),jt.slides.classList.add("no-transition"),jt.background=r(jt.wrapper,"div","backgrounds",null),jt.progress=r(jt.wrapper,"div","progress",""),jt.progressbar=jt.progress.querySelector("span"),r(jt.wrapper,"aside","controls",''),r(jt.wrapper,"div","state-background",null),r(jt.wrapper,"div","pause-overlay",null),zt.controls&&(jt.controls=document.querySelector(".reveal .controls"),jt.controlsLeft=f(document.querySelectorAll(".navigate-left")),jt.controlsRight=f(document.querySelectorAll(".navigate-right")),jt.controlsUp=f(document.querySelectorAll(".navigate-up")),jt.controlsDown=f(document.querySelectorAll(".navigate-down")),jt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),jt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function r(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),jt.background.innerHTML="",jt.background.classList.add("no-transition"),f(document.querySelectorAll(It)).forEach(function(t){var n;n=m()?e(t,t):e(t,jt.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",g,!1),window.addEventListener("orientationchange",g,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=zt.dependencies.length;o>r;r++){var a=zt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){n(),c(),Z(),setTimeout(function(){jt.slides.classList.remove("no-transition"),Xt=!0,h("ready",{indexh:xt,indexv:Tt,currentSlide:Pt})},1)}function c(e){if(jt.wrapper.classList.remove(zt.transition),"object"==typeof e&&u(zt,e),Dt===!1&&(zt.transition="linear"),jt.wrapper.classList.add(zt.transition),jt.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),jt.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),jt.controls&&(jt.controls.style.display=zt.controls&&jt.controls?"block":"none"),jt.progress&&(jt.progress.style.display=zt.progress&&jt.progress?"block":"none"),zt.rtl?jt.wrapper.classList.add("rtl"):jt.wrapper.classList.remove("rtl"),zt.center?jt.wrapper.classList.add("center"):jt.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",mt,!1),document.addEventListener("mousewheel",mt,!1)):(document.removeEventListener("DOMMouseScroll",mt,!1),document.removeEventListener("mousewheel",mt,!1)),zt.rollingLinks?y():b(),zt.previewLinks?w():(L(),w("[data-preview-link]")),zt.theme&&jt.theme){var t=jt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),jt.theme.setAttribute("href",t))}X()}function l(){Zt=!0,window.addEventListener("hashchange",kt,!1),window.addEventListener("resize",St,!1),zt.touch&&(jt.wrapper.addEventListener("touchstart",lt,!1),jt.wrapper.addEventListener("touchmove",dt,!1),jt.wrapper.addEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(jt.wrapper.addEventListener("MSPointerDown",ft,!1),jt.wrapper.addEventListener("MSPointerMove",vt,!1),jt.wrapper.addEventListener("MSPointerUp",pt,!1))),zt.keyboard&&document.addEventListener("keydown",ct,!1),zt.progress&&jt.progress&&jt.progress.addEventListener("click",gt,!1),zt.controls&&jt.controls&&["touchstart","click"].forEach(function(e){jt.controlsLeft.forEach(function(t){t.addEventListener(e,ht,!1)}),jt.controlsRight.forEach(function(t){t.addEventListener(e,yt,!1)}),jt.controlsUp.forEach(function(t){t.addEventListener(e,bt,!1)}),jt.controlsDown.forEach(function(t){t.addEventListener(e,wt,!1)}),jt.controlsPrev.forEach(function(t){t.addEventListener(e,Lt,!1)}),jt.controlsNext.forEach(function(t){t.addEventListener(e,Et,!1)})})}function d(){Zt=!1,document.removeEventListener("keydown",ct,!1),window.removeEventListener("hashchange",kt,!1),window.removeEventListener("resize",St,!1),jt.wrapper.removeEventListener("touchstart",lt,!1),jt.wrapper.removeEventListener("touchmove",dt,!1),jt.wrapper.removeEventListener("touchend",ut,!1),window.navigator.msPointerEnabled&&(jt.wrapper.removeEventListener("MSPointerDown",ft,!1),jt.wrapper.removeEventListener("MSPointerMove",vt,!1),jt.wrapper.removeEventListener("MSPointerUp",pt,!1)),zt.progress&&jt.progress&&jt.progress.removeEventListener("click",gt,!1),zt.controls&&jt.controls&&["touchstart","click"].forEach(function(e){jt.controlsLeft.forEach(function(t){t.removeEventListener(e,ht,!1)}),jt.controlsRight.forEach(function(t){t.removeEventListener(e,yt,!1)}),jt.controlsUp.forEach(function(t){t.removeEventListener(e,bt,!1)}),jt.controlsDown.forEach(function(t){t.removeEventListener(e,wt,!1)}),jt.controlsPrev.forEach(function(t){t.removeEventListener(e,Lt,!1)}),jt.controlsNext.forEach(function(t){t.removeEventListener(e,Et,!1)})})}function u(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function g(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function h(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),u(n,t),jt.wrapper.dispatchEvent(n)}function y(){if(Dt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Rt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function b(){for(var e=document.querySelectorAll(Rt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function w(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",qt,!1)})}function L(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",qt,!1)})}function E(e){k(),jt.preview=document.createElement("div"),jt.preview.classList.add("preview-link-overlay"),jt.wrapper.appendChild(jt.preview),jt.preview.innerHTML=["",'','','',"
"].join(""),jt.preview.querySelector("iframe").addEventListener("load",function(){jt.preview.classList.add("loaded")},!1),jt.preview.querySelector(".close").addEventListener("click",function(e){k(),e.preventDefault()},!1),jt.preview.querySelector(".external").addEventListener("click",function(){k()},!1),setTimeout(function(){jt.preview.classList.add("visible")},1)}function k(){jt.preview&&(jt.preview.setAttribute("src",""),jt.preview.parentNode.removeChild(jt.preview),jt.preview=null)}function S(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function A(){if(jt.wrapper&&!m()){var e=jt.wrapper.offsetWidth,t=jt.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),jt.slides.style.width=n+"px",jt.slides.style.height=r+"px",Ut=Math.min(e/n,t/r),Ut=Math.max(Ut,zt.minScale),Ut=Math.min(Ut,zt.maxScale),void 0===jt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Ut+") translate(50%, 50%)";jt.slides.style.WebkitTransform=o,jt.slides.style.MozTransform=o,jt.slides.style.msTransform=o,jt.slides.style.OTransform=o,jt.slides.style.transform=o}else jt.slides.style.zoom=Ut;for(var a=f(document.querySelectorAll(Rt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=zt.center?c.classList.contains("stack")?0:Math.max(-(p(c)/2)-20,-r/2)+"px":"")}U()}}function q(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function x(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function T(){if(zt.overview){tt();var e=jt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;jt.wrapper.classList.add("overview"),jt.wrapper.classList.remove("exit-overview"),clearTimeout($t),clearTimeout(Vt),$t=setTimeout(function(){for(var n=document.querySelectorAll(It),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105,s="translateZ(-"+t+"px) translate("+(r-xt)*i+"%, 0%)";if(a.setAttribute("data-index-h",r),a.style.WebkitTransform=s,a.style.MozTransform=s,a.style.msTransform=s,a.style.OTransform=s,a.style.transform=s,a.classList.contains("stack"))for(var c=a.querySelectorAll("section"),l=0,d=c.length;d>l;l++){var u=r===xt?Tt:x(a),f=c[l],v="translate(0%, "+105*(l-u)+"%)";f.setAttribute("data-index-h",r),f.setAttribute("data-index-v",l),f.style.WebkitTransform=v,f.style.MozTransform=v,f.style.msTransform=v,f.style.OTransform=v,f.style.transform=v,f.addEventListener("click",At,!0)}else a.addEventListener("click",At,!0)}W(),A(),e||h("overviewshown",{indexh:xt,indexv:Tt,currentSlide:Pt})},10)}}function M(){if(zt.overview){clearTimeout($t),clearTimeout(Vt),jt.wrapper.classList.remove("overview"),jt.wrapper.classList.add("exit-overview"),Vt=setTimeout(function(){jt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Rt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",At,!0)}z(xt,Tt),et(),h("overviewhidden",{indexh:xt,indexv:Tt,currentSlide:Pt})}}function P(e){"boolean"==typeof e?e?T():M():D()?M():T()}function D(){return jt.wrapper.classList.contains("overview")}function N(e){return e=e?e:Pt,e&&!!e.parentNode.nodeName.match(/section/i)}function C(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function R(){var e=jt.wrapper.classList.contains("paused");tt(),jt.wrapper.classList.add("paused"),e===!1&&h("paused")}function I(){var e=jt.wrapper.classList.contains("paused");jt.wrapper.classList.remove("paused"),et(),e&&h("resumed")}function O(){Y()?I():R()}function Y(){return jt.wrapper.classList.contains("paused")}function z(e,t,n,r){Mt=Pt;var o=document.querySelectorAll(It);void 0===t&&(t=x(o[e])),Mt&&Mt.parentNode&&Mt.parentNode.classList.contains("stack")&&q(Mt.parentNode,Tt);var a=Wt.concat();Wt.length=0;var i=xt,s=Tt;xt=H(It,void 0===e?xt:e),Tt=H(Ot,void 0===t?Tt:t),W(),A();e:for(var c=0,l=Wt.length;l>c;c++){for(var d=0;a.length>d;d++)if(a[d]===Wt[c]){a.splice(d,1);continue e}document.documentElement.classList.add(Wt[c]),h(Wt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());D()&&T();var u=o[xt],v=u.querySelectorAll("section");if(Pt=v[Tt]||u,n!==void 0){var p=S(Pt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var m=xt!==i||Tt!==s;m?h("slidechanged",{indexh:xt,indexv:Tt,previousSlide:Mt,currentSlide:Pt,origin:r}):Mt=null,Mt&&(Mt.classList.remove("present"),document.querySelector(Yt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(It+".stack"));for(e in t)t[e]&&q(t[e],0)},0)),m&&(V(Mt),$(Pt)),j(),U(),F(),Q()}function X(){d(),l(),A(),Ht=zt.autoSlide,et(),o(),j(),U(),F()}function H(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!N(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Wt=Wt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ht=l?parseInt(l,10):zt.autoSlide,et()}else t=0;return t}function W(){var e,t,n=f(document.querySelectorAll(It)),r=n.length;if(r){var o=D()?10:zt.viewDistance;Ct&&(o=D()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((xt-a)%(r-o))||0,c){i.style.display="block";for(var l=x(i),d=0;c>d;d++){var u=s[d];t=a===xt?Math.abs(Tt-d):Math.abs(d-l),u.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function U(){if(zt.progress&&jt.progress){var e=f(document.querySelectorAll(It)),t=document.querySelectorAll(Rt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}jt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function j(){if(zt.controls&&jt.controls){var e=_(),t=K();jt.controlsLeft.concat(jt.controlsRight).concat(jt.controlsUp).concat(jt.controlsDown).concat(jt.controlsPrev).concat(jt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&jt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&jt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&jt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&jt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&jt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&jt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Pt&&(t.prev&&jt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),N(Pt)?(t.prev&&jt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&jt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&jt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function F(){f(jt.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(xt>t?n:t>xt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Tt>t?"past":t>Tt?"future":"present")})}),setTimeout(function(){jt.background.classList.remove("no-transition")},1)}function _(){var e=document.querySelectorAll(It),t=document.querySelectorAll(Ot),n={left:xt>0||zt.loop,right:e.length-1>xt||zt.loop,up:Tt>0,down:t.length-1>Tt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function K(){if(Pt&&zt.fragments){var e=Pt.querySelectorAll(".fragment"),t=Pt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function $(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function V(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Z(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(xt||0,Tt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==xt||i!==Tt)&&z(a,i)}}function Q(e){if(zt.history)if(clearTimeout(Kt),"number"==typeof e)Kt=setTimeout(Q,e);else{var t="/";Pt&&"string"==typeof Pt.getAttribute("id")?t="/"+Pt.getAttribute("id"):((xt>0||Tt>0)&&(t+=xt),Tt>0&&(t+="/"+Tt)),window.location.hash=t}}function B(e){var t,n=xt,r=Tt;if(e){var o=N(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(It));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Pt){var s=Pt.querySelectorAll(".fragment").length>0;if(s){var c=Pt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function G(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),h("fragmentshown",{fragment:e[0],fragments:e}),j(),!0}}return!1}function J(){if(Pt&&zt.fragments){var e=S(Pt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Pt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),h("fragmenthidden",{fragment:e[0],fragments:e}),j(),!0}}return!1}function et(){clearTimeout(_t),!Ht||Y()||D()||(_t=setTimeout(st,Ht))}function tt(){clearTimeout(_t)}function nt(){zt.rtl?(D()||G()===!1)&&_().left&&z(xt+1):(D()||J()===!1)&&_().left&&z(xt-1)}function rt(){zt.rtl?(D()||J()===!1)&&_().right&&z(xt-1):(D()||G()===!1)&&_().right&&z(xt+1)}function ot(){(D()||J()===!1)&&_().up&&z(xt,Tt-1)}function at(){(D()||G()===!1)&&_().down&&z(xt,Tt+1)}function it(){if(J()===!1)if(_().up)ot();else{var e=document.querySelector(It+".past:nth-child("+xt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=xt-1;z(n,t)}}}function st(){G()===!1&&(_().down?at():rt()),et()}function ct(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(Y()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:it();break;case 78:case 34:st();break;case 72:case 37:nt();break;case 76:case 39:rt();break;case 75:case 38:ot();break;case 74:case 40:at();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:D()?M():e.shiftKey?it():st();break;case 13:D()?M():n=!1;break;case 66:case 190:case 191:O();break;case 70:C();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Dt||(P(),e.preventDefault()),et()}}function lt(e){Qt.startX=e.touches[0].clientX,Qt.startY=e.touches[0].clientY,Qt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Qt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Qt.startX,y:Qt.startY}))}function dt(e){if(Qt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Qt.startCount&&zt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Qt.startX,y:Qt.startY});Math.abs(Qt.startSpan-r)>Qt.threshold&&(Qt.captured=!0,Qt.startSpan>r?T():M()),e.preventDefault()}else if(1===e.touches.length&&2!==Qt.startCount){var o=t-Qt.startX,a=n-Qt.startY;o>Qt.threshold&&Math.abs(o)>Math.abs(a)?(Qt.captured=!0,nt()):-Qt.threshold>o&&Math.abs(o)>Math.abs(a)?(Qt.captured=!0,rt()):a>Qt.threshold?(Qt.captured=!0,ot()):-Qt.threshold>a&&(Qt.captured=!0,at()),zt.embedded?(Qt.captured||N(Pt))&&e.preventDefault():e.preventDefault()}}}function ut(){Qt.captured=!1}function ft(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],lt(e))}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ut(e))}function mt(e){if(Date.now()-Ft>600){Ft=Date.now();var t=e.detail||-e.wheelDelta;t>0?st():it()}}function gt(e){e.preventDefault();var t=f(document.querySelectorAll(It)).length,n=Math.floor(e.clientX/jt.wrapper.offsetWidth*t);z(n)}function ht(e){e.preventDefault(),nt()}function yt(e){e.preventDefault(),rt()}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(){Z()}function St(){A()}function At(e){if(Zt&&D()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(M(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function qt(e){var t=e.target.getAttribute("href");t&&(E(t),e.preventDefault())}var xt,Tt,Mt,Pt,Dt,Nt,Ct,Rt=".reveal .slides section",It=".reveal .slides>section",Ot=".reveal .slides>section.present>section",Yt=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Xt=!1,Ht=0,Wt=[],Ut=1,jt={},Ft=0,_t=0,Kt=0,$t=0,Vt=0,Zt=!1,Qt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:X,slide:z,left:nt,right:rt,up:ot,down:at,prev:it,next:st,prevFragment:J,nextFragment:G,navigateTo:z,navigateLeft:nt,navigateRight:rt,navigateUp:ot,navigateDown:at,navigatePrev:it,navigateNext:st,layout:A,availableRoutes:_,availableFragments:K,toggleOverview:P,togglePause:O,isOverview:D,isPaused:Y,addEventListeners:l,removeEventListeners:d,getIndices:B,getSlide:function(e,t){var n=document.querySelectorAll(It)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Mt},getCurrentSlide:function(){return Pt},getScale:function(){return Ut},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Rt+".past")?!0:!1},isLastSlide:function(){return Pt&&Pt.classList.contains(".stack")?null==Pt.querySelector(Rt+".future")?!0:!1:null==document.querySelector(Rt+".future")?!0:!1},isReady:function(){return Xt},addEventListener:function(e,t,n){"addEventListener"in window&&(jt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(jt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Ct||Nt?(window.addEventListener("load",q,!1),d(Ot,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Nt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ct="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Rt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){Ft.theme=document.querySelector("#theme"),Ft.wrapper=document.querySelector(".reveal"),Ft.slides=document.querySelector(".reveal .slides"),Ft.slides.classList.add("no-transition"),Ft.background=r(Ft.wrapper,"div","backgrounds",null),Ft.progress=r(Ft.wrapper,"div","progress",""),Ft.progressbar=Ft.progress.querySelector("span"),r(Ft.wrapper,"aside","controls",''),r(Ft.wrapper,"div","state-background",null),r(Ft.wrapper,"div","pause-overlay",null),Ot.controls&&(Ft.controls=document.querySelector(".reveal .controls"),Ft.controlsLeft=f(document.querySelectorAll(".navigate-left")),Ft.controlsRight=f(document.querySelectorAll(".navigate-right")),Ft.controlsUp=f(document.querySelectorAll(".navigate-up")),Ft.controlsDown=f(document.querySelectorAll(".navigate-down")),Ft.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Ft.controlsNext=f(document.querySelectorAll(".navigate-next")))}function r(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),Ft.background.innerHTML="",Ft.background.classList.add("no-transition"),f(document.querySelectorAll(Yt)).forEach(function(t){var n;n=m()?e(t,t):e(t,Ft.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",h,!1),window.addEventListener("orientationchange",h,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=Ot.dependencies.length;o>r;r++){var a=Ot.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){n(),c(),Q(),setTimeout(function(){Ft.slides.classList.remove("no-transition"),zt=!0,b("ready",{indexh:Tt,indexv:Mt,currentSlide:Dt})},1)}function c(e){if(Ft.wrapper.classList.remove(Ot.transition),"object"==typeof e&&d(Ot,e),Nt===!1&&(Ot.transition="linear"),Ft.wrapper.classList.add(Ot.transition),Ft.wrapper.setAttribute("data-transition-speed",Ot.transitionSpeed),Ft.wrapper.setAttribute("data-background-transition",Ot.backgroundTransition),Ft.controls&&(Ft.controls.style.display=Ot.controls&&Ft.controls?"block":"none"),Ft.progress&&(Ft.progress.style.display=Ot.progress&&Ft.progress?"block":"none"),Ot.rtl?Ft.wrapper.classList.add("rtl"):Ft.wrapper.classList.remove("rtl"),Ot.center?Ft.wrapper.classList.add("center"):Ft.wrapper.classList.remove("center"),Ot.mouseWheel?(document.addEventListener("DOMMouseScroll",mt,!1),document.addEventListener("mousewheel",mt,!1)):(document.removeEventListener("DOMMouseScroll",mt,!1),document.removeEventListener("mousewheel",mt,!1)),Ot.rollingLinks?y():w(),Ot.previewLinks?L():(E(),L("[data-preview-link]")),Ot.theme&&Ft.theme){var t=Ft.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ot.theme!==r&&(t=t.replace(n,Ot.theme),Ft.theme.setAttribute("href",t))}z()}function l(){Qt=!0,window.addEventListener("hashchange",St,!1),window.addEventListener("resize",At,!1),Ot.touch&&(Ft.wrapper.addEventListener("touchstart",ut,!1),Ft.wrapper.addEventListener("touchmove",dt,!1),Ft.wrapper.addEventListener("touchend",ft,!1),window.navigator.msPointerEnabled&&(Ft.wrapper.addEventListener("MSPointerDown",vt,!1),Ft.wrapper.addEventListener("MSPointerMove",pt,!1),Ft.wrapper.addEventListener("MSPointerUp",gt,!1))),Ot.keyboard&&document.addEventListener("keydown",lt,!1),Ot.progress&&Ft.progress&&Ft.progress.addEventListener("click",ht,!1),Ot.controls&&Ft.controls&&["touchstart","click"].forEach(function(e){Ft.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),Ft.controlsRight.forEach(function(t){t.addEventListener(e,yt,!1)}),Ft.controlsUp.forEach(function(t){t.addEventListener(e,wt,!1)}),Ft.controlsDown.forEach(function(t){t.addEventListener(e,Lt,!1)}),Ft.controlsPrev.forEach(function(t){t.addEventListener(e,Et,!1)}),Ft.controlsNext.forEach(function(t){t.addEventListener(e,kt,!1)})})}function u(){Qt=!1,document.removeEventListener("keydown",lt,!1),window.removeEventListener("hashchange",St,!1),window.removeEventListener("resize",At,!1),Ft.wrapper.removeEventListener("touchstart",ut,!1),Ft.wrapper.removeEventListener("touchmove",dt,!1),Ft.wrapper.removeEventListener("touchend",ft,!1),window.navigator.msPointerEnabled&&(Ft.wrapper.removeEventListener("MSPointerDown",vt,!1),Ft.wrapper.removeEventListener("MSPointerMove",pt,!1),Ft.wrapper.removeEventListener("MSPointerUp",gt,!1)),Ot.progress&&Ft.progress&&Ft.progress.removeEventListener("click",ht,!1),Ot.controls&&Ft.controls&&["touchstart","click"].forEach(function(e){Ft.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),Ft.controlsRight.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ft.controlsUp.forEach(function(t){t.removeEventListener(e,wt,!1)}),Ft.controlsDown.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Ft.controlsPrev.forEach(function(t){t.removeEventListener(e,Et,!1)}),Ft.controlsNext.forEach(function(t){t.removeEventListener(e,kt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function h(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Ft.wrapper.dispatchEvent(n)}function y(){if(Nt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(It+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function w(){for(var e=document.querySelectorAll(It+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function L(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",xt,!1)})}function E(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",xt,!1)})}function k(e){S(),Ft.preview=document.createElement("div"),Ft.preview.classList.add("preview-link-overlay"),Ft.wrapper.appendChild(Ft.preview),Ft.preview.innerHTML=["",'','','',"
"].join(""),Ft.preview.querySelector("iframe").addEventListener("load",function(){Ft.preview.classList.add("loaded")},!1),Ft.preview.querySelector(".close").addEventListener("click",function(e){S(),e.preventDefault()},!1),Ft.preview.querySelector(".external").addEventListener("click",function(){S()},!1),setTimeout(function(){Ft.preview.classList.add("visible")},1)}function S(){Ft.preview&&(Ft.preview.setAttribute("src",""),Ft.preview.parentNode.removeChild(Ft.preview),Ft.preview=null)}function A(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function q(){if(Ft.wrapper&&!m()){var e=Ft.wrapper.offsetWidth,t=Ft.wrapper.offsetHeight;e-=t*Ot.margin,t-=t*Ot.margin;var n=Ot.width,r=Ot.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ft.slides.style.width=n+"px",Ft.slides.style.height=r+"px",jt=Math.min(e/n,t/r),jt=Math.max(jt,Ot.minScale),jt=Math.min(jt,Ot.maxScale),void 0===Ft.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Ft.slides,"translate(-50%, -50%) scale("+jt+") translate(50%, 50%)"):Ft.slides.style.zoom=jt;for(var o=f(document.querySelectorAll(It)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=Ot.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}j()}}function x(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function T(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function M(){if(Ot.overview){nt();var e=Ft.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Ft.wrapper.classList.add("overview"),Ft.wrapper.classList.remove("exit-overview"),clearTimeout(Vt),clearTimeout(Zt),Vt=setTimeout(function(){for(var n=document.querySelectorAll(Yt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ot.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Tt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Tt?Mt:T(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",qt,!0)}else a.addEventListener("click",qt,!0)}W(),q(),e||b("overviewshown",{indexh:Tt,indexv:Mt,currentSlide:Dt})},10)}}function P(){if(Ot.overview){clearTimeout(Vt),clearTimeout(Zt),Ft.wrapper.classList.remove("overview"),Ft.wrapper.classList.add("exit-overview"),Zt=setTimeout(function(){Ft.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(It)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",qt,!0)}O(Tt,Mt),tt(),b("overviewhidden",{indexh:Tt,indexv:Mt,currentSlide:Dt})}}function D(e){"boolean"==typeof e?e?M():P():N()?P():M()}function N(){return Ft.wrapper.classList.contains("overview")}function C(e){return e=e?e:Dt,e&&!!e.parentNode.nodeName.match(/section/i)}function R(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function I(){var e=Ft.wrapper.classList.contains("paused");nt(),Ft.wrapper.classList.add("paused"),e===!1&&b("paused")}function Y(){var e=Ft.wrapper.classList.contains("paused");Ft.wrapper.classList.remove("paused"),tt(),e&&b("resumed")}function X(){H()?Y():I()}function H(){return Ft.wrapper.classList.contains("paused")}function O(e,t,n,r){Pt=Dt;var o=document.querySelectorAll(Yt);void 0===t&&(t=T(o[e])),Pt&&Pt.parentNode&&Pt.parentNode.classList.contains("stack")&&x(Pt.parentNode,Mt);var a=Wt.concat();Wt.length=0;var i=Tt,s=Mt;Tt=U(Yt,void 0===e?Tt:e),Mt=U(Xt,void 0===t?Mt:t),W(),q();e:for(var c=0,l=Wt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Wt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Wt[c]),b(Wt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());N()&&M();var d=o[Tt],v=d.querySelectorAll("section");if(Dt=v[Mt]||d,n!==void 0){var p=A(Dt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Tt!==i||Mt!==s;g?b("slidechanged",{indexh:Tt,indexv:Mt,previousSlide:Pt,currentSlide:Dt,origin:r}):Pt=null,Pt&&(Pt.classList.remove("present"),document.querySelector(Ht).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Yt+".stack"));for(e in t)t[e]&&x(t[e],0)},0)),g&&(Z(Pt),V(Dt)),F(),j(),_(),B()}function z(){u(),l(),q(),Ut=Ot.autoSlide,tt(),o(),F(),j(),_()}function U(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ot.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ot.rtl&&!C(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Wt=Wt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ut=l?parseInt(l,10):Ot.autoSlide,tt()}else t=0;return t}function W(){var e,t,n=f(document.querySelectorAll(Yt)),r=n.length;if(r){var o=N()?10:Ot.viewDistance;Rt&&(o=N()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Tt-a)%(r-o))||0,c){i.style.display="block";for(var l=T(i),u=0;c>u;u++){var d=s[u];t=a===Tt?Math.abs(Mt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function j(){if(Ot.progress&&Ft.progress){var e=f(document.querySelectorAll(Yt)),t=document.querySelectorAll(It+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ft.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function F(){if(Ot.controls&&Ft.controls){var e=K(),t=$();Ft.controlsLeft.concat(Ft.controlsRight).concat(Ft.controlsUp).concat(Ft.controlsDown).concat(Ft.controlsPrev).concat(Ft.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ft.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ft.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ft.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ft.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ft.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ft.controlsNext.forEach(function(e){e.classList.add("enabled")}),Dt&&(t.prev&&Ft.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),C(Dt)?(t.prev&&Ft.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ft.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function _(){f(Ft.background.childNodes).forEach(function(e,t){var n=Ot.rtl?"future":"past",r=Ot.rtl?"past":"future";e.className="slide-background "+(Tt>t?n:t>Tt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Mt>t?"past":t>Mt?"future":"present")})}),setTimeout(function(){Ft.background.classList.remove("no-transition")},1)}function K(){var e=document.querySelectorAll(Yt),t=document.querySelectorAll(Xt),n={left:Tt>0||Ot.loop,right:e.length-1>Tt||Ot.loop,up:Mt>0,down:t.length-1>Mt};if(Ot.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function $(){if(Dt&&Ot.fragments){var e=Dt.querySelectorAll(".fragment"),t=Dt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function V(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Q(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Tt||0,Mt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Tt||i!==Mt)&&O(a,i)}}function B(e){if(Ot.history)if(clearTimeout($t),"number"==typeof e)$t=setTimeout(B,e);else{var t="/";Dt&&"string"==typeof Dt.getAttribute("id")?t="/"+Dt.getAttribute("id"):((Tt>0||Mt>0)&&(t+=Tt),Mt>0&&(t+="/"+Mt)),window.location.hash=t}}function G(e){var t,n=Tt,r=Mt;if(e){var o=C(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Yt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Dt){var s=Dt.querySelectorAll(".fragment").length>0;if(s){var c=Dt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function J(){if(Dt&&Ot.fragments){var e=A(Dt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Dt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),F(),!0}}return!1}function et(){if(Dt&&Ot.fragments){var e=A(Dt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Dt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),F(),!0}}return!1}function tt(){clearTimeout(Kt),!Ut||H()||N()||(Kt=setTimeout(ct,Ut))}function nt(){clearTimeout(Kt)}function rt(){Ot.rtl?(N()||J()===!1)&&K().left&&O(Tt+1):(N()||et()===!1)&&K().left&&O(Tt-1)}function ot(){Ot.rtl?(N()||et()===!1)&&K().right&&O(Tt-1):(N()||J()===!1)&&K().right&&O(Tt+1)}function at(){(N()||et()===!1)&&K().up&&O(Tt,Mt-1)}function it(){(N()||J()===!1)&&K().down&&O(Tt,Mt+1)}function st(){if(et()===!1)if(K().up)at();else{var e=document.querySelector(Yt+".past:nth-child("+Tt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Tt-1;O(n,t)}}}function ct(){J()===!1&&(K().down?it():ot()),tt()}function lt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(H()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ot.keyboard)for(var r in Ot.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ot.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:st();break;case 78:case 34:ct();break;case 72:case 37:rt();break;case 76:case 39:ot();break;case 75:case 38:at();break;case 74:case 40:it();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:N()?P():e.shiftKey?st():ct();break;case 13:N()?P():n=!1;break;case 66:case 190:case 191:X();break;case 70:R();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Nt||(D(),e.preventDefault()),tt()}}function ut(e){Bt.startX=e.touches[0].clientX,Bt.startY=e.touches[0].clientY,Bt.startCount=e.touches.length,2===e.touches.length&&Ot.overview&&(Bt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Bt.startX,y:Bt.startY}))}function dt(e){if(Bt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Bt.startCount&&Ot.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Bt.startX,y:Bt.startY});Math.abs(Bt.startSpan-r)>Bt.threshold&&(Bt.captured=!0,Bt.startSpan>r?M():P()),e.preventDefault()}else if(1===e.touches.length&&2!==Bt.startCount){var o=t-Bt.startX,a=n-Bt.startY;o>Bt.threshold&&Math.abs(o)>Math.abs(a)?(Bt.captured=!0,rt()):-Bt.threshold>o&&Math.abs(o)>Math.abs(a)?(Bt.captured=!0,ot()):a>Bt.threshold?(Bt.captured=!0,at()):-Bt.threshold>a&&(Bt.captured=!0,it()),Ot.embedded?(Bt.captured||C(Dt))&&e.preventDefault():e.preventDefault()}}}function ft(){Bt.captured=!1}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ut(e))}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){if(Date.now()-_t>600){_t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ct():st()}}function ht(e){e.preventDefault();var t=f(document.querySelectorAll(Yt)).length,n=Math.floor(e.clientX/Ft.wrapper.offsetWidth*t);O(n)}function bt(e){e.preventDefault(),rt()}function yt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(){Q()}function At(){q()}function qt(e){if(Qt&&N()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(P(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function xt(e){var t=e.target.getAttribute("href");t&&(k(t),e.preventDefault())}var Tt,Mt,Pt,Dt,Nt,Ct,Rt,It=".reveal .slides section",Yt=".reveal .slides>section",Xt=".reveal .slides>section.present>section",Ht=".reveal .slides>section:first-child",Ot={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=!1,Ut=0,Wt=[],jt=1,Ft={},_t=0,Kt=0,$t=0,Vt=0,Zt=0,Qt=!1,Bt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:z,slide:O,left:rt,right:ot,up:at,down:it,prev:st,next:ct,prevFragment:et,nextFragment:J,navigateTo:O,navigateLeft:rt,navigateRight:ot,navigateUp:at,navigateDown:it,navigatePrev:st,navigateNext:ct,layout:q,availableRoutes:K,availableFragments:$,toggleOverview:D,togglePause:X,isOverview:N,isPaused:H,addEventListeners:l,removeEventListeners:u,getIndices:G,getSlide:function(e,t){var n=document.querySelectorAll(Yt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Pt},getCurrentSlide:function(){return Dt},getScale:function(){return jt},getConfig:function(){return Ot},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(It+".past")?!0:!1},isLastSlide:function(){return Dt&&Dt.classList.contains(".stack")?null==Dt.querySelector(It+".future")?!0:!1:null==document.querySelector(It+".future")?!0:!1},isReady:function(){return zt},addEventListener:function(e,t,n){"addEventListener"in window&&(Ft.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ft.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From ac3f021a14956b889fa7f243fcf41be793574648 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Thu, 15 Aug 2013 08:51:11 -0400
Subject: add initial slide dom setup pass
---
js/reveal.js | 23 +++++++++++++++++++++++
js/reveal.min.js | 4 ++--
2 files changed, 25 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 00097a1..88e694b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -209,6 +209,26 @@ var Reveal = (function(){
}
+ /**
+ * Iterates through and decorates slides DOM elements with
+ * appropriate classes.
+ */
+ function setupSlides() {
+
+ var horizontalSlides = toArray( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
+ horizontalSlides.forEach( function( horizontalSlide ) {
+
+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) );
+ verticalSlides.forEach( function( verticalSlide, y ) {
+
+ if( y > 0 ) verticalSlide.classList.add( 'future' );
+
+ } );
+
+ } );
+
+ }
+
/**
* Finds and stores references to DOM elements which are
* required by the presentation. If a required element is
@@ -438,6 +458,9 @@ var Reveal = (function(){
// Make sure we've got all the DOM elements we need
setupDOM();
+ // Decorate the slide DOM elements with state classes (past/future)
+ setupSlides();
+
// Updates the presentation to match the current configuration values
configure();
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 5c2127b..f3813b0 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-13, 09:26)
+ * reveal.js 2.5.0 (2013-08-15, 08:50)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Ct||Nt?(window.addEventListener("load",q,!1),d(Ot,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Nt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ct="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Rt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){Ft.theme=document.querySelector("#theme"),Ft.wrapper=document.querySelector(".reveal"),Ft.slides=document.querySelector(".reveal .slides"),Ft.slides.classList.add("no-transition"),Ft.background=r(Ft.wrapper,"div","backgrounds",null),Ft.progress=r(Ft.wrapper,"div","progress",""),Ft.progressbar=Ft.progress.querySelector("span"),r(Ft.wrapper,"aside","controls",''),r(Ft.wrapper,"div","state-background",null),r(Ft.wrapper,"div","pause-overlay",null),Ot.controls&&(Ft.controls=document.querySelector(".reveal .controls"),Ft.controlsLeft=f(document.querySelectorAll(".navigate-left")),Ft.controlsRight=f(document.querySelectorAll(".navigate-right")),Ft.controlsUp=f(document.querySelectorAll(".navigate-up")),Ft.controlsDown=f(document.querySelectorAll(".navigate-down")),Ft.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Ft.controlsNext=f(document.querySelectorAll(".navigate-next")))}function r(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),Ft.background.innerHTML="",Ft.background.classList.add("no-transition"),f(document.querySelectorAll(Yt)).forEach(function(t){var n;n=m()?e(t,t):e(t,Ft.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",h,!1),window.addEventListener("orientationchange",h,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=Ot.dependencies.length;o>r;r++){var a=Ot.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function s(){n(),c(),Q(),setTimeout(function(){Ft.slides.classList.remove("no-transition"),zt=!0,b("ready",{indexh:Tt,indexv:Mt,currentSlide:Dt})},1)}function c(e){if(Ft.wrapper.classList.remove(Ot.transition),"object"==typeof e&&d(Ot,e),Nt===!1&&(Ot.transition="linear"),Ft.wrapper.classList.add(Ot.transition),Ft.wrapper.setAttribute("data-transition-speed",Ot.transitionSpeed),Ft.wrapper.setAttribute("data-background-transition",Ot.backgroundTransition),Ft.controls&&(Ft.controls.style.display=Ot.controls&&Ft.controls?"block":"none"),Ft.progress&&(Ft.progress.style.display=Ot.progress&&Ft.progress?"block":"none"),Ot.rtl?Ft.wrapper.classList.add("rtl"):Ft.wrapper.classList.remove("rtl"),Ot.center?Ft.wrapper.classList.add("center"):Ft.wrapper.classList.remove("center"),Ot.mouseWheel?(document.addEventListener("DOMMouseScroll",mt,!1),document.addEventListener("mousewheel",mt,!1)):(document.removeEventListener("DOMMouseScroll",mt,!1),document.removeEventListener("mousewheel",mt,!1)),Ot.rollingLinks?y():w(),Ot.previewLinks?L():(E(),L("[data-preview-link]")),Ot.theme&&Ft.theme){var t=Ft.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ot.theme!==r&&(t=t.replace(n,Ot.theme),Ft.theme.setAttribute("href",t))}z()}function l(){Qt=!0,window.addEventListener("hashchange",St,!1),window.addEventListener("resize",At,!1),Ot.touch&&(Ft.wrapper.addEventListener("touchstart",ut,!1),Ft.wrapper.addEventListener("touchmove",dt,!1),Ft.wrapper.addEventListener("touchend",ft,!1),window.navigator.msPointerEnabled&&(Ft.wrapper.addEventListener("MSPointerDown",vt,!1),Ft.wrapper.addEventListener("MSPointerMove",pt,!1),Ft.wrapper.addEventListener("MSPointerUp",gt,!1))),Ot.keyboard&&document.addEventListener("keydown",lt,!1),Ot.progress&&Ft.progress&&Ft.progress.addEventListener("click",ht,!1),Ot.controls&&Ft.controls&&["touchstart","click"].forEach(function(e){Ft.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),Ft.controlsRight.forEach(function(t){t.addEventListener(e,yt,!1)}),Ft.controlsUp.forEach(function(t){t.addEventListener(e,wt,!1)}),Ft.controlsDown.forEach(function(t){t.addEventListener(e,Lt,!1)}),Ft.controlsPrev.forEach(function(t){t.addEventListener(e,Et,!1)}),Ft.controlsNext.forEach(function(t){t.addEventListener(e,kt,!1)})})}function u(){Qt=!1,document.removeEventListener("keydown",lt,!1),window.removeEventListener("hashchange",St,!1),window.removeEventListener("resize",At,!1),Ft.wrapper.removeEventListener("touchstart",ut,!1),Ft.wrapper.removeEventListener("touchmove",dt,!1),Ft.wrapper.removeEventListener("touchend",ft,!1),window.navigator.msPointerEnabled&&(Ft.wrapper.removeEventListener("MSPointerDown",vt,!1),Ft.wrapper.removeEventListener("MSPointerMove",pt,!1),Ft.wrapper.removeEventListener("MSPointerUp",gt,!1)),Ot.progress&&Ft.progress&&Ft.progress.removeEventListener("click",ht,!1),Ot.controls&&Ft.controls&&["touchstart","click"].forEach(function(e){Ft.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),Ft.controlsRight.forEach(function(t){t.removeEventListener(e,yt,!1)}),Ft.controlsUp.forEach(function(t){t.removeEventListener(e,wt,!1)}),Ft.controlsDown.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Ft.controlsPrev.forEach(function(t){t.removeEventListener(e,Et,!1)}),Ft.controlsNext.forEach(function(t){t.removeEventListener(e,kt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function h(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Ft.wrapper.dispatchEvent(n)}function y(){if(Nt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(It+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function w(){for(var e=document.querySelectorAll(It+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function L(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",xt,!1)})}function E(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",xt,!1)})}function k(e){S(),Ft.preview=document.createElement("div"),Ft.preview.classList.add("preview-link-overlay"),Ft.wrapper.appendChild(Ft.preview),Ft.preview.innerHTML=["",'','','',"
"].join(""),Ft.preview.querySelector("iframe").addEventListener("load",function(){Ft.preview.classList.add("loaded")},!1),Ft.preview.querySelector(".close").addEventListener("click",function(e){S(),e.preventDefault()},!1),Ft.preview.querySelector(".external").addEventListener("click",function(){S()},!1),setTimeout(function(){Ft.preview.classList.add("visible")},1)}function S(){Ft.preview&&(Ft.preview.setAttribute("src",""),Ft.preview.parentNode.removeChild(Ft.preview),Ft.preview=null)}function A(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function q(){if(Ft.wrapper&&!m()){var e=Ft.wrapper.offsetWidth,t=Ft.wrapper.offsetHeight;e-=t*Ot.margin,t-=t*Ot.margin;var n=Ot.width,r=Ot.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ft.slides.style.width=n+"px",Ft.slides.style.height=r+"px",jt=Math.min(e/n,t/r),jt=Math.max(jt,Ot.minScale),jt=Math.min(jt,Ot.maxScale),void 0===Ft.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Ft.slides,"translate(-50%, -50%) scale("+jt+") translate(50%, 50%)"):Ft.slides.style.zoom=jt;for(var o=f(document.querySelectorAll(It)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=Ot.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}j()}}function x(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function T(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function M(){if(Ot.overview){nt();var e=Ft.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Ft.wrapper.classList.add("overview"),Ft.wrapper.classList.remove("exit-overview"),clearTimeout(Vt),clearTimeout(Zt),Vt=setTimeout(function(){for(var n=document.querySelectorAll(Yt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ot.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Tt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Tt?Mt:T(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",qt,!0)}else a.addEventListener("click",qt,!0)}W(),q(),e||b("overviewshown",{indexh:Tt,indexv:Mt,currentSlide:Dt})},10)}}function P(){if(Ot.overview){clearTimeout(Vt),clearTimeout(Zt),Ft.wrapper.classList.remove("overview"),Ft.wrapper.classList.add("exit-overview"),Zt=setTimeout(function(){Ft.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(It)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",qt,!0)}O(Tt,Mt),tt(),b("overviewhidden",{indexh:Tt,indexv:Mt,currentSlide:Dt})}}function D(e){"boolean"==typeof e?e?M():P():N()?P():M()}function N(){return Ft.wrapper.classList.contains("overview")}function C(e){return e=e?e:Dt,e&&!!e.parentNode.nodeName.match(/section/i)}function R(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function I(){var e=Ft.wrapper.classList.contains("paused");nt(),Ft.wrapper.classList.add("paused"),e===!1&&b("paused")}function Y(){var e=Ft.wrapper.classList.contains("paused");Ft.wrapper.classList.remove("paused"),tt(),e&&b("resumed")}function X(){H()?Y():I()}function H(){return Ft.wrapper.classList.contains("paused")}function O(e,t,n,r){Pt=Dt;var o=document.querySelectorAll(Yt);void 0===t&&(t=T(o[e])),Pt&&Pt.parentNode&&Pt.parentNode.classList.contains("stack")&&x(Pt.parentNode,Mt);var a=Wt.concat();Wt.length=0;var i=Tt,s=Mt;Tt=U(Yt,void 0===e?Tt:e),Mt=U(Xt,void 0===t?Mt:t),W(),q();e:for(var c=0,l=Wt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Wt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Wt[c]),b(Wt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());N()&&M();var d=o[Tt],v=d.querySelectorAll("section");if(Dt=v[Mt]||d,n!==void 0){var p=A(Dt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Tt!==i||Mt!==s;g?b("slidechanged",{indexh:Tt,indexv:Mt,previousSlide:Pt,currentSlide:Dt,origin:r}):Pt=null,Pt&&(Pt.classList.remove("present"),document.querySelector(Ht).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Yt+".stack"));for(e in t)t[e]&&x(t[e],0)},0)),g&&(Z(Pt),V(Dt)),F(),j(),_(),B()}function z(){u(),l(),q(),Ut=Ot.autoSlide,tt(),o(),F(),j(),_()}function U(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ot.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ot.rtl&&!C(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Wt=Wt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ut=l?parseInt(l,10):Ot.autoSlide,tt()}else t=0;return t}function W(){var e,t,n=f(document.querySelectorAll(Yt)),r=n.length;if(r){var o=N()?10:Ot.viewDistance;Rt&&(o=N()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Tt-a)%(r-o))||0,c){i.style.display="block";for(var l=T(i),u=0;c>u;u++){var d=s[u];t=a===Tt?Math.abs(Mt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function j(){if(Ot.progress&&Ft.progress){var e=f(document.querySelectorAll(Yt)),t=document.querySelectorAll(It+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ft.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function F(){if(Ot.controls&&Ft.controls){var e=K(),t=$();Ft.controlsLeft.concat(Ft.controlsRight).concat(Ft.controlsUp).concat(Ft.controlsDown).concat(Ft.controlsPrev).concat(Ft.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ft.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ft.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ft.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ft.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ft.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ft.controlsNext.forEach(function(e){e.classList.add("enabled")}),Dt&&(t.prev&&Ft.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),C(Dt)?(t.prev&&Ft.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ft.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ft.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function _(){f(Ft.background.childNodes).forEach(function(e,t){var n=Ot.rtl?"future":"past",r=Ot.rtl?"past":"future";e.className="slide-background "+(Tt>t?n:t>Tt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Mt>t?"past":t>Mt?"future":"present")})}),setTimeout(function(){Ft.background.classList.remove("no-transition")},1)}function K(){var e=document.querySelectorAll(Yt),t=document.querySelectorAll(Xt),n={left:Tt>0||Ot.loop,right:e.length-1>Tt||Ot.loop,up:Mt>0,down:t.length-1>Mt};if(Ot.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function $(){if(Dt&&Ot.fragments){var e=Dt.querySelectorAll(".fragment"),t=Dt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function V(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Q(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Tt||0,Mt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Tt||i!==Mt)&&O(a,i)}}function B(e){if(Ot.history)if(clearTimeout($t),"number"==typeof e)$t=setTimeout(B,e);else{var t="/";Dt&&"string"==typeof Dt.getAttribute("id")?t="/"+Dt.getAttribute("id"):((Tt>0||Mt>0)&&(t+=Tt),Mt>0&&(t+="/"+Mt)),window.location.hash=t}}function G(e){var t,n=Tt,r=Mt;if(e){var o=C(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Yt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Dt){var s=Dt.querySelectorAll(".fragment").length>0;if(s){var c=Dt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function J(){if(Dt&&Ot.fragments){var e=A(Dt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Dt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),F(),!0}}return!1}function et(){if(Dt&&Ot.fragments){var e=A(Dt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Dt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),F(),!0}}return!1}function tt(){clearTimeout(Kt),!Ut||H()||N()||(Kt=setTimeout(ct,Ut))}function nt(){clearTimeout(Kt)}function rt(){Ot.rtl?(N()||J()===!1)&&K().left&&O(Tt+1):(N()||et()===!1)&&K().left&&O(Tt-1)}function ot(){Ot.rtl?(N()||et()===!1)&&K().right&&O(Tt-1):(N()||J()===!1)&&K().right&&O(Tt+1)}function at(){(N()||et()===!1)&&K().up&&O(Tt,Mt-1)}function it(){(N()||J()===!1)&&K().down&&O(Tt,Mt+1)}function st(){if(et()===!1)if(K().up)at();else{var e=document.querySelector(Yt+".past:nth-child("+Tt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Tt-1;O(n,t)}}}function ct(){J()===!1&&(K().down?it():ot()),tt()}function lt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(H()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ot.keyboard)for(var r in Ot.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ot.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:st();break;case 78:case 34:ct();break;case 72:case 37:rt();break;case 76:case 39:ot();break;case 75:case 38:at();break;case 74:case 40:it();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:N()?P():e.shiftKey?st():ct();break;case 13:N()?P():n=!1;break;case 66:case 190:case 191:X();break;case 70:R();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Nt||(D(),e.preventDefault()),tt()}}function ut(e){Bt.startX=e.touches[0].clientX,Bt.startY=e.touches[0].clientY,Bt.startCount=e.touches.length,2===e.touches.length&&Ot.overview&&(Bt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Bt.startX,y:Bt.startY}))}function dt(e){if(Bt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Bt.startCount&&Ot.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Bt.startX,y:Bt.startY});Math.abs(Bt.startSpan-r)>Bt.threshold&&(Bt.captured=!0,Bt.startSpan>r?M():P()),e.preventDefault()}else if(1===e.touches.length&&2!==Bt.startCount){var o=t-Bt.startX,a=n-Bt.startY;o>Bt.threshold&&Math.abs(o)>Math.abs(a)?(Bt.captured=!0,rt()):-Bt.threshold>o&&Math.abs(o)>Math.abs(a)?(Bt.captured=!0,ot()):a>Bt.threshold?(Bt.captured=!0,at()):-Bt.threshold>a&&(Bt.captured=!0,it()),Ot.embedded?(Bt.captured||C(Dt))&&e.preventDefault():e.preventDefault()}}}function ft(){Bt.captured=!1}function vt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ut(e))}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){if(Date.now()-_t>600){_t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ct():st()}}function ht(e){e.preventDefault();var t=f(document.querySelectorAll(Yt)).length,n=Math.floor(e.clientX/Ft.wrapper.offsetWidth*t);O(n)}function bt(e){e.preventDefault(),rt()}function yt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(){Q()}function At(){q()}function qt(e){if(Qt&&N()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(P(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function xt(e){var t=e.target.getAttribute("href");t&&(k(t),e.preventDefault())}var Tt,Mt,Pt,Dt,Nt,Ct,Rt,It=".reveal .slides section",Yt=".reveal .slides>section",Xt=".reveal .slides>section.present>section",Ht=".reveal .slides>section:first-child",Ot={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},zt=!1,Ut=0,Wt=[],jt=1,Ft={},_t=0,Kt=0,$t=0,Vt=0,Zt=0,Qt=!1,Bt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:z,slide:O,left:rt,right:ot,up:at,down:it,prev:st,next:ct,prevFragment:et,nextFragment:J,navigateTo:O,navigateLeft:rt,navigateRight:ot,navigateUp:at,navigateDown:it,navigatePrev:st,navigateNext:ct,layout:q,availableRoutes:K,availableFragments:$,toggleOverview:D,togglePause:X,isOverview:N,isPaused:H,addEventListeners:l,removeEventListeners:u,getIndices:G,getSlide:function(e,t){var n=document.querySelectorAll(Yt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Pt},getCurrentSlide:function(){return Dt},getScale:function(){return jt},getConfig:function(){return Ot},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(It+".past")?!0:!1},isLastSlide:function(){return Dt&&Dt.classList.contains(".stack")?null==Dt.querySelector(It+".future")?!0:!1:null==document.querySelector(It+".future")?!0:!1},isReady:function(){return zt},addEventListener:function(e,t,n){"addEventListener"in window&&(Ft.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ft.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||Ct?(window.addEventListener("load",x,!1),f(zt,e),i(),s(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Ct="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,It=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){var e=v(document.querySelectorAll(Xt));e.forEach(function(e){var t=v(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function r(){_t.theme=document.querySelector("#theme"),_t.wrapper=document.querySelector(".reveal"),_t.slides=document.querySelector(".reveal .slides"),_t.slides.classList.add("no-transition"),_t.background=o(_t.wrapper,"div","backgrounds",null),_t.progress=o(_t.wrapper,"div","progress",""),_t.progressbar=_t.progress.querySelector("span"),o(_t.wrapper,"aside","controls",''),o(_t.wrapper,"div","state-background",null),o(_t.wrapper,"div","pause-overlay",null),zt.controls&&(_t.controls=document.querySelector(".reveal .controls"),_t.controlsLeft=v(document.querySelectorAll(".navigate-left")),_t.controlsRight=v(document.querySelectorAll(".navigate-right")),_t.controlsUp=v(document.querySelectorAll(".navigate-up")),_t.controlsDown=v(document.querySelectorAll(".navigate-down")),_t.controlsPrev=v(document.querySelectorAll(".navigate-prev")),_t.controlsNext=v(document.querySelectorAll(".navigate-next")))}function o(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function a(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),_t.background.innerHTML="",_t.background.classList.add("no-transition"),v(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,_t.background),v(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function i(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",y,!1),window.addEventListener("orientationchange",y,!1))}function s(){function e(){n.length&&head.js.apply(null,n),c()}for(var t=[],n=[],r=0,o=zt.dependencies.length;o>r;r++){var a=zt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function c(){r(),n(),l(),B(),setTimeout(function(){_t.slides.classList.remove("no-transition"),Ut=!0,b("ready",{indexh:Mt,indexv:Pt,currentSlide:Nt})},1)}function l(e){if(_t.wrapper.classList.remove(zt.transition),"object"==typeof e&&f(zt,e),Ct===!1&&(zt.transition="linear"),_t.wrapper.classList.add(zt.transition),_t.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),_t.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),_t.controls&&(_t.controls.style.display=zt.controls&&_t.controls?"block":"none"),_t.progress&&(_t.progress.style.display=zt.progress&&_t.progress?"block":"none"),zt.rtl?_t.wrapper.classList.add("rtl"):_t.wrapper.classList.remove("rtl"),zt.center?_t.wrapper.classList.add("center"):_t.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",ht,!1),document.addEventListener("mousewheel",ht,!1)):(document.removeEventListener("DOMMouseScroll",ht,!1),document.removeEventListener("mousewheel",ht,!1)),zt.rollingLinks?w():L(),zt.previewLinks?E():(k(),E("[data-preview-link]")),zt.theme&&_t.theme){var t=_t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),_t.theme.setAttribute("href",t))}U()}function u(){Bt=!0,window.addEventListener("hashchange",At,!1),window.addEventListener("resize",qt,!1),zt.touch&&(_t.wrapper.addEventListener("touchstart",dt,!1),_t.wrapper.addEventListener("touchmove",ft,!1),_t.wrapper.addEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.addEventListener("MSPointerDown",pt,!1),_t.wrapper.addEventListener("MSPointerMove",gt,!1),_t.wrapper.addEventListener("MSPointerUp",mt,!1))),zt.keyboard&&document.addEventListener("keydown",ut,!1),zt.progress&&_t.progress&&_t.progress.addEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.addEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.addEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.addEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.addEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.addEventListener(e,St,!1)})})}function d(){Bt=!1,document.removeEventListener("keydown",ut,!1),window.removeEventListener("hashchange",At,!1),window.removeEventListener("resize",qt,!1),_t.wrapper.removeEventListener("touchstart",dt,!1),_t.wrapper.removeEventListener("touchmove",ft,!1),_t.wrapper.removeEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.removeEventListener("MSPointerDown",pt,!1),_t.wrapper.removeEventListener("MSPointerMove",gt,!1),_t.wrapper.removeEventListener("MSPointerUp",mt,!1)),zt.progress&&_t.progress&&_t.progress.removeEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.removeEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.removeEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.removeEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.removeEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.removeEventListener(e,St,!1)})})}function f(e,t){for(var n in t)e[n]=t[n]}function v(e){return Array.prototype.slice.call(e)}function p(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function g(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function m(e){var t=0;if(e){var n=0;v(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),f(n,t),_t.wrapper.dispatchEvent(n)}function w(){if(Ct&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function L(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function E(e){var t=v(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1)})}function k(){var e=v(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1)})}function S(e){A(),_t.preview=document.createElement("div"),_t.preview.classList.add("preview-link-overlay"),_t.wrapper.appendChild(_t.preview),_t.preview.innerHTML=["",'','','',"
"].join(""),_t.preview.querySelector("iframe").addEventListener("load",function(){_t.preview.classList.add("loaded")},!1),_t.preview.querySelector(".close").addEventListener("click",function(e){A(),e.preventDefault()},!1),_t.preview.querySelector(".external").addEventListener("click",function(){A()},!1),setTimeout(function(){_t.preview.classList.add("visible")},1)}function A(){_t.preview&&(_t.preview.setAttribute("src",""),_t.preview.parentNode.removeChild(_t.preview),_t.preview=null)}function q(e){var t=v(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function x(){if(_t.wrapper&&!h()){var e=_t.wrapper.offsetWidth,t=_t.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),_t.slides.style.width=n+"px",_t.slides.style.height=r+"px",Ft=Math.min(e/n,t/r),Ft=Math.max(Ft,zt.minScale),Ft=Math.min(Ft,zt.maxScale),void 0===_t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?g(_t.slides,"translate(-50%, -50%) scale("+Ft+") translate(50%, 50%)"):_t.slides.style.zoom=Ft;for(var o=v(document.querySelectorAll(Yt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=zt.center?s.classList.contains("stack")?0:Math.max(-(m(s)/2)-20,-r/2)+"px":"")}F()}}function T(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function M(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(zt.overview){rt();var e=_t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;_t.wrapper.classList.add("overview"),_t.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105;if(a.setAttribute("data-index-h",r),g(a,"translateZ(-"+t+"px) translate("+(r-Mt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Mt?Pt:M(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),g(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",xt,!0)}else a.addEventListener("click",xt,!0)}j(),x(),e||b("overviewshown",{indexh:Mt,indexv:Pt,currentSlide:Nt})},10)}}function D(){if(zt.overview){clearTimeout(Zt),clearTimeout(Qt),_t.wrapper.classList.remove("overview"),_t.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){_t.wrapper.classList.remove("exit-overview")},10);for(var e=v(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",g(r,""),r.removeEventListener("click",xt,!0)}z(Mt,Pt),nt(),b("overviewhidden",{indexh:Mt,indexv:Pt,currentSlide:Nt})}}function N(e){"boolean"==typeof e?e?P():D():C()?D():P()}function C(){return _t.wrapper.classList.contains("overview")}function R(e){return e=e?e:Nt,e&&!!e.parentNode.nodeName.match(/section/i)}function I(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=_t.wrapper.classList.contains("paused");rt(),_t.wrapper.classList.add("paused"),e===!1&&b("paused")}function X(){var e=_t.wrapper.classList.contains("paused");_t.wrapper.classList.remove("paused"),nt(),e&&b("resumed")}function H(){O()?X():Y()}function O(){return _t.wrapper.classList.contains("paused")}function z(e,t,n,r){Dt=Nt;var o=document.querySelectorAll(Xt);void 0===t&&(t=M(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&T(Dt.parentNode,Pt);var a=jt.concat();jt.length=0;var i=Mt,s=Pt;Mt=W(Xt,void 0===e?Mt:e),Pt=W(Ht,void 0===t?Pt:t),j(),x();e:for(var c=0,l=jt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===jt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(jt[c]),b(jt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());C()&&P();var d=o[Mt],f=d.querySelectorAll("section");if(Nt=f[Pt]||d,n!==void 0){var p=q(Nt.querySelectorAll(".fragment"));v(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Mt!==i||Pt!==s;g?b("slidechanged",{indexh:Mt,indexv:Pt,previousSlide:Dt,currentSlide:Nt,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=v(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&T(t[e],0)},0)),g&&(Q(Dt),Z(Nt)),_(),F(),K(),G()}function U(){d(),u(),x(),Wt=zt.autoSlide,nt(),a(),_(),F(),K()}function W(e,t){var n=v(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=v(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(jt=jt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Wt=l?parseInt(l,10):zt.autoSlide,nt()}else t=0;return t}function j(){var e,t,n=v(document.querySelectorAll(Xt)),r=n.length;if(r){var o=C()?10:zt.viewDistance;It&&(o=C()?6:1);for(var a=0;r>a;a++){var i=n[a],s=v(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Mt-a)%(r-o))||0,c){i.style.display="block";for(var l=M(i),u=0;c>u;u++){var d=s[u];t=a===Mt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function F(){if(zt.progress&&_t.progress){var e=v(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=v(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}_t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function _(){if(zt.controls&&_t.controls){var e=$(),t=V();_t.controlsLeft.concat(_t.controlsRight).concat(_t.controlsUp).concat(_t.controlsDown).concat(_t.controlsPrev).concat(_t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&_t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&_t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&_t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&_t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&_t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&_t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Nt&&(t.prev&&_t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Nt)?(t.prev&&_t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&_t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function K(){v(_t.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(Mt>t?n:t>Mt?r:"present"),v(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){_t.background.classList.remove("no-transition")},1)}function $(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ht),n={left:Mt>0||zt.loop,right:e.length-1>Mt||zt.loop,up:Pt>0,down:t.length-1>Pt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function V(){if(Nt&&zt.fragments){var e=Nt.querySelectorAll(".fragment"),t=Nt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(v(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),v(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(v(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),v(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function B(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(Mt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Mt||i!==Pt)&&z(a,i)}}function G(e){if(zt.history)if(clearTimeout(Vt),"number"==typeof e)Vt=setTimeout(G,e);else{var t="/";Nt&&"string"==typeof Nt.getAttribute("id")?t="/"+Nt.getAttribute("id"):((Mt>0||Pt>0)&&(t+=Mt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function J(e){var t,n=Mt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=v(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(v(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Nt){var s=Nt.querySelectorAll(".fragment").length>0;if(s){var c=Nt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function et(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),v(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),_(),!0}}return!1}function tt(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),v(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),_(),!0}}return!1}function nt(){clearTimeout($t),!Wt||O()||C()||($t=setTimeout(lt,Wt))}function rt(){clearTimeout($t)}function ot(){zt.rtl?(C()||et()===!1)&&$().left&&z(Mt+1):(C()||tt()===!1)&&$().left&&z(Mt-1)}function at(){zt.rtl?(C()||tt()===!1)&&$().right&&z(Mt-1):(C()||et()===!1)&&$().right&&z(Mt+1)}function it(){(C()||tt()===!1)&&$().up&&z(Mt,Pt-1)}function st(){(C()||et()===!1)&&$().down&&z(Mt,Pt+1)}function ct(){if(tt()===!1)if($().up)it();else{var e=document.querySelector(Xt+".past:nth-child("+Mt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Mt-1;z(n,t)}}}function lt(){et()===!1&&($().down?st():at()),nt()}function ut(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ct();break;case 78:case 34:lt();break;case 72:case 37:ot();break;case 76:case 39:at();break;case 75:case 38:it();break;case 74:case 40:st();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:C()?D():e.shiftKey?ct():lt();break;case 13:C()?D():n=!1;break;case 66:case 190:case 191:H();break;case 70:I();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ct||(N(),e.preventDefault()),nt()}}function dt(e){Gt.startX=e.touches[0].clientX,Gt.startY=e.touches[0].clientY,Gt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Gt.startSpan=p({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY}))}function ft(e){if(Gt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Gt.startCount&&zt.overview){var r=p({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY});Math.abs(Gt.startSpan-r)>Gt.threshold&&(Gt.captured=!0,Gt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Gt.startCount){var o=t-Gt.startX,a=n-Gt.startY;o>Gt.threshold&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,ot()):-Gt.threshold>o&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,at()):a>Gt.threshold?(Gt.captured=!0,it()):-Gt.threshold>a&&(Gt.captured=!0,st()),zt.embedded?(Gt.captured||R(Nt))&&e.preventDefault():e.preventDefault()}}}function vt(){Gt.captured=!1}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){if(Date.now()-Kt>600){Kt=Date.now();var t=e.detail||-e.wheelDelta;t>0?lt():ct()}}function yt(e){e.preventDefault();var t=v(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/_t.wrapper.offsetWidth*t);z(n)}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(){B()}function qt(){x()}function xt(e){if(Bt&&C()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function Tt(e){var t=e.target.getAttribute("href");t&&(S(t),e.preventDefault())}var Mt,Pt,Dt,Nt,Ct,Rt,It,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ht=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Ut=!1,Wt=0,jt=[],Ft=1,_t={},Kt=0,$t=0,Vt=0,Zt=0,Qt=0,Bt=!1,Gt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:l,sync:U,slide:z,left:ot,right:at,up:it,down:st,prev:ct,next:lt,prevFragment:tt,nextFragment:et,navigateTo:z,navigateLeft:ot,navigateRight:at,navigateUp:it,navigateDown:st,navigatePrev:ct,navigateNext:lt,layout:x,availableRoutes:$,availableFragments:V,toggleOverview:N,togglePause:H,isOverview:C,isPaused:O,addEventListeners:u,removeEventListeners:d,getIndices:J,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Nt},getScale:function(){return Ft},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Nt&&Nt.classList.contains(".stack")?null==Nt.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Ut},addEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From ead85fd4757f7677a4712ec7140df624888ead80 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Thu, 15 Aug 2013 08:54:17 -0400
Subject: refactor js, more natural order of startup methods
---
js/reveal.js | 202 +++++++++++++++++++++++++++----------------------------
js/reveal.min.js | 4 +-
2 files changed, 103 insertions(+), 103 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 88e694b..85e238a 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -209,6 +209,94 @@ var Reveal = (function(){
}
+ /**
+ * Loads the dependencies of reveal.js. Dependencies are
+ * defined via the configuration option 'dependencies'
+ * and will be loaded prior to starting/binding reveal.js.
+ * Some dependencies may have an 'async' flag, if so they
+ * will load after reveal.js has been started up.
+ */
+ function load() {
+
+ var scripts = [],
+ scriptsAsync = [];
+
+ for( var i = 0, len = config.dependencies.length; i < len; i++ ) {
+ var s = config.dependencies[i];
+
+ // Load if there's no condition or the condition is truthy
+ if( !s.condition || s.condition() ) {
+ if( s.async ) {
+ scriptsAsync.push( s.src );
+ }
+ else {
+ scripts.push( s.src );
+ }
+
+ // Extension may contain callback functions
+ if( typeof s.callback === 'function' ) {
+ head.ready( s.src.match( /([\w\d_\-]*)\.?js$|[^\\\/]*$/i )[0], s.callback );
+ }
+ }
+ }
+
+ // Called once synchronous scripts finish loading
+ function proceed() {
+ if( scriptsAsync.length ) {
+ // Load asynchronous scripts
+ head.js.apply( null, scriptsAsync );
+ }
+
+ start();
+ }
+
+ if( scripts.length ) {
+ head.ready( proceed );
+
+ // Load synchronous scripts
+ head.js.apply( null, scripts );
+ }
+ else {
+ proceed();
+ }
+
+ }
+
+ /**
+ * Starts up reveal.js by binding input events and navigating
+ * to the current URL deeplink if there is one.
+ */
+ function start() {
+
+ // Make sure we've got all the DOM elements we need
+ setupDOM();
+
+ // Decorate the slide DOM elements with state classes (past/future)
+ setupSlides();
+
+ // Updates the presentation to match the current configuration values
+ configure();
+
+ // Read the initial hash
+ readURL();
+
+ // Notify listeners that the presentation is ready but use a 1ms
+ // timeout to ensure it's not fired synchronously after #initialize()
+ setTimeout( function() {
+ // Enable transitions now that we're loaded
+ dom.slides.classList.remove( 'no-transition' );
+
+ loaded = true;
+
+ dispatchEvent( 'ready', {
+ 'indexh': indexh,
+ 'indexv': indexv,
+ 'currentSlide': currentSlide
+ } );
+ }, 1 );
+
+ }
+
/**
* Iterates through and decorates slides DOM elements with
* appropriate classes.
@@ -383,107 +471,6 @@ var Reveal = (function(){
}
- /**
- * Hides the address bar if we're on a mobile device.
- */
- function hideAddressBar() {
-
- if( /iphone|ipod|android/gi.test( navigator.userAgent ) && !/crios/gi.test( navigator.userAgent ) ) {
- // Events that should trigger the address bar to hide
- window.addEventListener( 'load', removeAddressBar, false );
- window.addEventListener( 'orientationchange', removeAddressBar, false );
- }
-
- }
-
- /**
- * Loads the dependencies of reveal.js. Dependencies are
- * defined via the configuration option 'dependencies'
- * and will be loaded prior to starting/binding reveal.js.
- * Some dependencies may have an 'async' flag, if so they
- * will load after reveal.js has been started up.
- */
- function load() {
-
- var scripts = [],
- scriptsAsync = [];
-
- for( var i = 0, len = config.dependencies.length; i < len; i++ ) {
- var s = config.dependencies[i];
-
- // Load if there's no condition or the condition is truthy
- if( !s.condition || s.condition() ) {
- if( s.async ) {
- scriptsAsync.push( s.src );
- }
- else {
- scripts.push( s.src );
- }
-
- // Extension may contain callback functions
- if( typeof s.callback === 'function' ) {
- head.ready( s.src.match( /([\w\d_\-]*)\.?js$|[^\\\/]*$/i )[0], s.callback );
- }
- }
- }
-
- // Called once synchronous scripts finish loading
- function proceed() {
- if( scriptsAsync.length ) {
- // Load asynchronous scripts
- head.js.apply( null, scriptsAsync );
- }
-
- start();
- }
-
- if( scripts.length ) {
- head.ready( proceed );
-
- // Load synchronous scripts
- head.js.apply( null, scripts );
- }
- else {
- proceed();
- }
-
- }
-
- /**
- * Starts up reveal.js by binding input events and navigating
- * to the current URL deeplink if there is one.
- */
- function start() {
-
- // Make sure we've got all the DOM elements we need
- setupDOM();
-
- // Decorate the slide DOM elements with state classes (past/future)
- setupSlides();
-
- // Updates the presentation to match the current configuration values
- configure();
-
- // Read the initial hash
- readURL();
-
- // Notify listeners that the presentation is ready but use a 1ms
- // timeout to ensure it's not fired synchronously after #initialize()
- setTimeout( function() {
- // Enable transitions now that we're loaded
- dom.slides.classList.remove( 'no-transition' );
-
- loaded = true;
-
- dispatchEvent( 'ready', {
- 'indexh': indexh,
- 'indexv': indexv,
- 'currentSlide': currentSlide
- } );
- }, 1 );
-
- }
-
/**
* Applies the configuration settings from the config
* object. May be called multiple times.
@@ -744,6 +731,19 @@ var Reveal = (function(){
}
+ /**
+ * Hides the address bar if we're on a mobile device.
+ */
+ function hideAddressBar() {
+
+ if( /iphone|ipod|android/gi.test( navigator.userAgent ) && !/crios/gi.test( navigator.userAgent ) ) {
+ // Events that should trigger the address bar to hide
+ window.addEventListener( 'load', removeAddressBar, false );
+ window.addEventListener( 'orientationchange', removeAddressBar, false );
+ }
+
+ }
+
/**
* Causes the address bar to hide on mobile devices,
* more vertical space ftw.
diff --git a/js/reveal.min.js b/js/reveal.min.js
index f3813b0..5a83483 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-15, 08:50)
+ * reveal.js 2.5.0 (2013-08-15, 08:53)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||Ct?(window.addEventListener("load",x,!1),f(zt,e),i(),s(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Ct="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,It=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){var e=v(document.querySelectorAll(Xt));e.forEach(function(e){var t=v(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function r(){_t.theme=document.querySelector("#theme"),_t.wrapper=document.querySelector(".reveal"),_t.slides=document.querySelector(".reveal .slides"),_t.slides.classList.add("no-transition"),_t.background=o(_t.wrapper,"div","backgrounds",null),_t.progress=o(_t.wrapper,"div","progress",""),_t.progressbar=_t.progress.querySelector("span"),o(_t.wrapper,"aside","controls",''),o(_t.wrapper,"div","state-background",null),o(_t.wrapper,"div","pause-overlay",null),zt.controls&&(_t.controls=document.querySelector(".reveal .controls"),_t.controlsLeft=v(document.querySelectorAll(".navigate-left")),_t.controlsRight=v(document.querySelectorAll(".navigate-right")),_t.controlsUp=v(document.querySelectorAll(".navigate-up")),_t.controlsDown=v(document.querySelectorAll(".navigate-down")),_t.controlsPrev=v(document.querySelectorAll(".navigate-prev")),_t.controlsNext=v(document.querySelectorAll(".navigate-next")))}function o(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function a(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),_t.background.innerHTML="",_t.background.classList.add("no-transition"),v(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,_t.background),v(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function i(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",y,!1),window.addEventListener("orientationchange",y,!1))}function s(){function e(){n.length&&head.js.apply(null,n),c()}for(var t=[],n=[],r=0,o=zt.dependencies.length;o>r;r++){var a=zt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function c(){r(),n(),l(),B(),setTimeout(function(){_t.slides.classList.remove("no-transition"),Ut=!0,b("ready",{indexh:Mt,indexv:Pt,currentSlide:Nt})},1)}function l(e){if(_t.wrapper.classList.remove(zt.transition),"object"==typeof e&&f(zt,e),Ct===!1&&(zt.transition="linear"),_t.wrapper.classList.add(zt.transition),_t.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),_t.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),_t.controls&&(_t.controls.style.display=zt.controls&&_t.controls?"block":"none"),_t.progress&&(_t.progress.style.display=zt.progress&&_t.progress?"block":"none"),zt.rtl?_t.wrapper.classList.add("rtl"):_t.wrapper.classList.remove("rtl"),zt.center?_t.wrapper.classList.add("center"):_t.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",ht,!1),document.addEventListener("mousewheel",ht,!1)):(document.removeEventListener("DOMMouseScroll",ht,!1),document.removeEventListener("mousewheel",ht,!1)),zt.rollingLinks?w():L(),zt.previewLinks?E():(k(),E("[data-preview-link]")),zt.theme&&_t.theme){var t=_t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),_t.theme.setAttribute("href",t))}U()}function u(){Bt=!0,window.addEventListener("hashchange",At,!1),window.addEventListener("resize",qt,!1),zt.touch&&(_t.wrapper.addEventListener("touchstart",dt,!1),_t.wrapper.addEventListener("touchmove",ft,!1),_t.wrapper.addEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.addEventListener("MSPointerDown",pt,!1),_t.wrapper.addEventListener("MSPointerMove",gt,!1),_t.wrapper.addEventListener("MSPointerUp",mt,!1))),zt.keyboard&&document.addEventListener("keydown",ut,!1),zt.progress&&_t.progress&&_t.progress.addEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.addEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.addEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.addEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.addEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.addEventListener(e,St,!1)})})}function d(){Bt=!1,document.removeEventListener("keydown",ut,!1),window.removeEventListener("hashchange",At,!1),window.removeEventListener("resize",qt,!1),_t.wrapper.removeEventListener("touchstart",dt,!1),_t.wrapper.removeEventListener("touchmove",ft,!1),_t.wrapper.removeEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.removeEventListener("MSPointerDown",pt,!1),_t.wrapper.removeEventListener("MSPointerMove",gt,!1),_t.wrapper.removeEventListener("MSPointerUp",mt,!1)),zt.progress&&_t.progress&&_t.progress.removeEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.removeEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.removeEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.removeEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.removeEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.removeEventListener(e,St,!1)})})}function f(e,t){for(var n in t)e[n]=t[n]}function v(e){return Array.prototype.slice.call(e)}function p(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function g(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function m(e){var t=0;if(e){var n=0;v(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),f(n,t),_t.wrapper.dispatchEvent(n)}function w(){if(Ct&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function L(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function E(e){var t=v(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1)})}function k(){var e=v(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1)})}function S(e){A(),_t.preview=document.createElement("div"),_t.preview.classList.add("preview-link-overlay"),_t.wrapper.appendChild(_t.preview),_t.preview.innerHTML=["",'','','',"
"].join(""),_t.preview.querySelector("iframe").addEventListener("load",function(){_t.preview.classList.add("loaded")},!1),_t.preview.querySelector(".close").addEventListener("click",function(e){A(),e.preventDefault()},!1),_t.preview.querySelector(".external").addEventListener("click",function(){A()},!1),setTimeout(function(){_t.preview.classList.add("visible")},1)}function A(){_t.preview&&(_t.preview.setAttribute("src",""),_t.preview.parentNode.removeChild(_t.preview),_t.preview=null)}function q(e){var t=v(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function x(){if(_t.wrapper&&!h()){var e=_t.wrapper.offsetWidth,t=_t.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),_t.slides.style.width=n+"px",_t.slides.style.height=r+"px",Ft=Math.min(e/n,t/r),Ft=Math.max(Ft,zt.minScale),Ft=Math.min(Ft,zt.maxScale),void 0===_t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?g(_t.slides,"translate(-50%, -50%) scale("+Ft+") translate(50%, 50%)"):_t.slides.style.zoom=Ft;for(var o=v(document.querySelectorAll(Yt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=zt.center?s.classList.contains("stack")?0:Math.max(-(m(s)/2)-20,-r/2)+"px":"")}F()}}function T(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function M(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(zt.overview){rt();var e=_t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;_t.wrapper.classList.add("overview"),_t.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105;if(a.setAttribute("data-index-h",r),g(a,"translateZ(-"+t+"px) translate("+(r-Mt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Mt?Pt:M(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),g(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",xt,!0)}else a.addEventListener("click",xt,!0)}j(),x(),e||b("overviewshown",{indexh:Mt,indexv:Pt,currentSlide:Nt})},10)}}function D(){if(zt.overview){clearTimeout(Zt),clearTimeout(Qt),_t.wrapper.classList.remove("overview"),_t.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){_t.wrapper.classList.remove("exit-overview")},10);for(var e=v(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",g(r,""),r.removeEventListener("click",xt,!0)}z(Mt,Pt),nt(),b("overviewhidden",{indexh:Mt,indexv:Pt,currentSlide:Nt})}}function N(e){"boolean"==typeof e?e?P():D():C()?D():P()}function C(){return _t.wrapper.classList.contains("overview")}function R(e){return e=e?e:Nt,e&&!!e.parentNode.nodeName.match(/section/i)}function I(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=_t.wrapper.classList.contains("paused");rt(),_t.wrapper.classList.add("paused"),e===!1&&b("paused")}function X(){var e=_t.wrapper.classList.contains("paused");_t.wrapper.classList.remove("paused"),nt(),e&&b("resumed")}function H(){O()?X():Y()}function O(){return _t.wrapper.classList.contains("paused")}function z(e,t,n,r){Dt=Nt;var o=document.querySelectorAll(Xt);void 0===t&&(t=M(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&T(Dt.parentNode,Pt);var a=jt.concat();jt.length=0;var i=Mt,s=Pt;Mt=W(Xt,void 0===e?Mt:e),Pt=W(Ht,void 0===t?Pt:t),j(),x();e:for(var c=0,l=jt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===jt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(jt[c]),b(jt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());C()&&P();var d=o[Mt],f=d.querySelectorAll("section");if(Nt=f[Pt]||d,n!==void 0){var p=q(Nt.querySelectorAll(".fragment"));v(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Mt!==i||Pt!==s;g?b("slidechanged",{indexh:Mt,indexv:Pt,previousSlide:Dt,currentSlide:Nt,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=v(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&T(t[e],0)},0)),g&&(Q(Dt),Z(Nt)),_(),F(),K(),G()}function U(){d(),u(),x(),Wt=zt.autoSlide,nt(),a(),_(),F(),K()}function W(e,t){var n=v(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=v(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(jt=jt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Wt=l?parseInt(l,10):zt.autoSlide,nt()}else t=0;return t}function j(){var e,t,n=v(document.querySelectorAll(Xt)),r=n.length;if(r){var o=C()?10:zt.viewDistance;It&&(o=C()?6:1);for(var a=0;r>a;a++){var i=n[a],s=v(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Mt-a)%(r-o))||0,c){i.style.display="block";for(var l=M(i),u=0;c>u;u++){var d=s[u];t=a===Mt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function F(){if(zt.progress&&_t.progress){var e=v(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=v(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}_t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function _(){if(zt.controls&&_t.controls){var e=$(),t=V();_t.controlsLeft.concat(_t.controlsRight).concat(_t.controlsUp).concat(_t.controlsDown).concat(_t.controlsPrev).concat(_t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&_t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&_t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&_t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&_t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&_t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&_t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Nt&&(t.prev&&_t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Nt)?(t.prev&&_t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&_t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function K(){v(_t.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(Mt>t?n:t>Mt?r:"present"),v(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){_t.background.classList.remove("no-transition")},1)}function $(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ht),n={left:Mt>0||zt.loop,right:e.length-1>Mt||zt.loop,up:Pt>0,down:t.length-1>Pt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function V(){if(Nt&&zt.fragments){var e=Nt.querySelectorAll(".fragment"),t=Nt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(v(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),v(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(v(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),v(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function B(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(Mt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Mt||i!==Pt)&&z(a,i)}}function G(e){if(zt.history)if(clearTimeout(Vt),"number"==typeof e)Vt=setTimeout(G,e);else{var t="/";Nt&&"string"==typeof Nt.getAttribute("id")?t="/"+Nt.getAttribute("id"):((Mt>0||Pt>0)&&(t+=Mt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function J(e){var t,n=Mt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=v(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(v(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Nt){var s=Nt.querySelectorAll(".fragment").length>0;if(s){var c=Nt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function et(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),v(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),_(),!0}}return!1}function tt(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),v(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),_(),!0}}return!1}function nt(){clearTimeout($t),!Wt||O()||C()||($t=setTimeout(lt,Wt))}function rt(){clearTimeout($t)}function ot(){zt.rtl?(C()||et()===!1)&&$().left&&z(Mt+1):(C()||tt()===!1)&&$().left&&z(Mt-1)}function at(){zt.rtl?(C()||tt()===!1)&&$().right&&z(Mt-1):(C()||et()===!1)&&$().right&&z(Mt+1)}function it(){(C()||tt()===!1)&&$().up&&z(Mt,Pt-1)}function st(){(C()||et()===!1)&&$().down&&z(Mt,Pt+1)}function ct(){if(tt()===!1)if($().up)it();else{var e=document.querySelector(Xt+".past:nth-child("+Mt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Mt-1;z(n,t)}}}function lt(){et()===!1&&($().down?st():at()),nt()}function ut(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ct();break;case 78:case 34:lt();break;case 72:case 37:ot();break;case 76:case 39:at();break;case 75:case 38:it();break;case 74:case 40:st();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:C()?D():e.shiftKey?ct():lt();break;case 13:C()?D():n=!1;break;case 66:case 190:case 191:H();break;case 70:I();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ct||(N(),e.preventDefault()),nt()}}function dt(e){Gt.startX=e.touches[0].clientX,Gt.startY=e.touches[0].clientY,Gt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Gt.startSpan=p({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY}))}function ft(e){if(Gt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Gt.startCount&&zt.overview){var r=p({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY});Math.abs(Gt.startSpan-r)>Gt.threshold&&(Gt.captured=!0,Gt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Gt.startCount){var o=t-Gt.startX,a=n-Gt.startY;o>Gt.threshold&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,ot()):-Gt.threshold>o&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,at()):a>Gt.threshold?(Gt.captured=!0,it()):-Gt.threshold>a&&(Gt.captured=!0,st()),zt.embedded?(Gt.captured||R(Nt))&&e.preventDefault():e.preventDefault()}}}function vt(){Gt.captured=!1}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){if(Date.now()-Kt>600){Kt=Date.now();var t=e.detail||-e.wheelDelta;t>0?lt():ct()}}function yt(e){e.preventDefault();var t=v(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/_t.wrapper.offsetWidth*t);z(n)}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(){B()}function qt(){x()}function xt(e){if(Bt&&C()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function Tt(e){var t=e.target.getAttribute("href");t&&(S(t),e.preventDefault())}var Mt,Pt,Dt,Nt,Ct,Rt,It,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ht=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Ut=!1,Wt=0,jt=[],Ft=1,_t={},Kt=0,$t=0,Vt=0,Zt=0,Qt=0,Bt=!1,Gt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:l,sync:U,slide:z,left:ot,right:at,up:it,down:st,prev:ct,next:lt,prevFragment:tt,nextFragment:et,navigateTo:z,navigateLeft:ot,navigateRight:at,navigateUp:it,navigateDown:st,navigatePrev:ct,navigateNext:lt,layout:x,availableRoutes:$,availableFragments:V,toggleOverview:N,togglePause:H,isOverview:C,isPaused:O,addEventListeners:u,removeEventListeners:d,getIndices:J,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Nt},getScale:function(){return Ft},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Nt&&Nt.classList.contains(".stack")?null==Nt.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Ut},addEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||Ct?(window.addEventListener("load",x,!1),d(zt,e),h(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Ct="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,It=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=zt.dependencies.length;a>o;o++){var i=zt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),B(),setTimeout(function(){_t.slides.classList.remove("no-transition"),Ut=!0,b("ready",{indexh:Mt,indexv:Pt,currentSlide:Nt})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){_t.theme=document.querySelector("#theme"),_t.wrapper=document.querySelector(".reveal"),_t.slides=document.querySelector(".reveal .slides"),_t.slides.classList.add("no-transition"),_t.background=i(_t.wrapper,"div","backgrounds",null),_t.progress=i(_t.wrapper,"div","progress",""),_t.progressbar=_t.progress.querySelector("span"),i(_t.wrapper,"aside","controls",''),i(_t.wrapper,"div","state-background",null),i(_t.wrapper,"div","pause-overlay",null),zt.controls&&(_t.controls=document.querySelector(".reveal .controls"),_t.controlsLeft=f(document.querySelectorAll(".navigate-left")),_t.controlsRight=f(document.querySelectorAll(".navigate-right")),_t.controlsUp=f(document.querySelectorAll(".navigate-up")),_t.controlsDown=f(document.querySelectorAll(".navigate-down")),_t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),_t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),_t.background.innerHTML="",_t.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=m()?e(t,t):e(t,_t.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function c(e){if(_t.wrapper.classList.remove(zt.transition),"object"==typeof e&&d(zt,e),Ct===!1&&(zt.transition="linear"),_t.wrapper.classList.add(zt.transition),_t.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),_t.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),_t.controls&&(_t.controls.style.display=zt.controls&&_t.controls?"block":"none"),_t.progress&&(_t.progress.style.display=zt.progress&&_t.progress?"block":"none"),zt.rtl?_t.wrapper.classList.add("rtl"):_t.wrapper.classList.remove("rtl"),zt.center?_t.wrapper.classList.add("center"):_t.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",ht,!1),document.addEventListener("mousewheel",ht,!1)):(document.removeEventListener("DOMMouseScroll",ht,!1),document.removeEventListener("mousewheel",ht,!1)),zt.rollingLinks?w():L(),zt.previewLinks?E():(k(),E("[data-preview-link]")),zt.theme&&_t.theme){var t=_t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),_t.theme.setAttribute("href",t))}U()}function l(){Bt=!0,window.addEventListener("hashchange",At,!1),window.addEventListener("resize",qt,!1),zt.touch&&(_t.wrapper.addEventListener("touchstart",dt,!1),_t.wrapper.addEventListener("touchmove",ft,!1),_t.wrapper.addEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.addEventListener("MSPointerDown",pt,!1),_t.wrapper.addEventListener("MSPointerMove",gt,!1),_t.wrapper.addEventListener("MSPointerUp",mt,!1))),zt.keyboard&&document.addEventListener("keydown",ut,!1),zt.progress&&_t.progress&&_t.progress.addEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.addEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.addEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.addEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.addEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.addEventListener(e,St,!1)})})}function u(){Bt=!1,document.removeEventListener("keydown",ut,!1),window.removeEventListener("hashchange",At,!1),window.removeEventListener("resize",qt,!1),_t.wrapper.removeEventListener("touchstart",dt,!1),_t.wrapper.removeEventListener("touchmove",ft,!1),_t.wrapper.removeEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.removeEventListener("MSPointerDown",pt,!1),_t.wrapper.removeEventListener("MSPointerMove",gt,!1),_t.wrapper.removeEventListener("MSPointerUp",mt,!1)),zt.progress&&_t.progress&&_t.progress.removeEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.removeEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.removeEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.removeEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.removeEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.removeEventListener(e,St,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function h(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",y,!1),window.addEventListener("orientationchange",y,!1))}function y(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),_t.wrapper.dispatchEvent(n)}function w(){if(Ct&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function L(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function E(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1)})}function k(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1)})}function S(e){A(),_t.preview=document.createElement("div"),_t.preview.classList.add("preview-link-overlay"),_t.wrapper.appendChild(_t.preview),_t.preview.innerHTML=["",'','','',"
"].join(""),_t.preview.querySelector("iframe").addEventListener("load",function(){_t.preview.classList.add("loaded")},!1),_t.preview.querySelector(".close").addEventListener("click",function(e){A(),e.preventDefault()},!1),_t.preview.querySelector(".external").addEventListener("click",function(){A()},!1),setTimeout(function(){_t.preview.classList.add("visible")},1)}function A(){_t.preview&&(_t.preview.setAttribute("src",""),_t.preview.parentNode.removeChild(_t.preview),_t.preview=null)}function q(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function x(){if(_t.wrapper&&!m()){var e=_t.wrapper.offsetWidth,t=_t.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),_t.slides.style.width=n+"px",_t.slides.style.height=r+"px",Ft=Math.min(e/n,t/r),Ft=Math.max(Ft,zt.minScale),Ft=Math.min(Ft,zt.maxScale),void 0===_t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(_t.slides,"translate(-50%, -50%) scale("+Ft+") translate(50%, 50%)"):_t.slides.style.zoom=Ft;for(var o=f(document.querySelectorAll(Yt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=zt.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}F()}}function T(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function M(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(zt.overview){rt();var e=_t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;_t.wrapper.classList.add("overview"),_t.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Mt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Mt?Pt:M(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",xt,!0)}else a.addEventListener("click",xt,!0)}j(),x(),e||b("overviewshown",{indexh:Mt,indexv:Pt,currentSlide:Nt})},10)}}function D(){if(zt.overview){clearTimeout(Zt),clearTimeout(Qt),_t.wrapper.classList.remove("overview"),_t.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){_t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",xt,!0)}z(Mt,Pt),nt(),b("overviewhidden",{indexh:Mt,indexv:Pt,currentSlide:Nt})}}function N(e){"boolean"==typeof e?e?P():D():C()?D():P()}function C(){return _t.wrapper.classList.contains("overview")}function R(e){return e=e?e:Nt,e&&!!e.parentNode.nodeName.match(/section/i)}function I(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=_t.wrapper.classList.contains("paused");rt(),_t.wrapper.classList.add("paused"),e===!1&&b("paused")}function X(){var e=_t.wrapper.classList.contains("paused");_t.wrapper.classList.remove("paused"),nt(),e&&b("resumed")}function H(){O()?X():Y()}function O(){return _t.wrapper.classList.contains("paused")}function z(e,t,n,r){Dt=Nt;var o=document.querySelectorAll(Xt);void 0===t&&(t=M(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&T(Dt.parentNode,Pt);var a=jt.concat();jt.length=0;var i=Mt,s=Pt;Mt=W(Xt,void 0===e?Mt:e),Pt=W(Ht,void 0===t?Pt:t),j(),x();e:for(var c=0,l=jt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===jt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(jt[c]),b(jt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());C()&&P();var d=o[Mt],v=d.querySelectorAll("section");if(Nt=v[Pt]||d,n!==void 0){var p=q(Nt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Mt!==i||Pt!==s;g?b("slidechanged",{indexh:Mt,indexv:Pt,previousSlide:Dt,currentSlide:Nt,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&T(t[e],0)},0)),g&&(Q(Dt),Z(Nt)),_(),F(),K(),G()}function U(){u(),l(),x(),Wt=zt.autoSlide,nt(),s(),_(),F(),K()}function W(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(jt=jt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Wt=l?parseInt(l,10):zt.autoSlide,nt()}else t=0;return t}function j(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=C()?10:zt.viewDistance;It&&(o=C()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Mt-a)%(r-o))||0,c){i.style.display="block";for(var l=M(i),u=0;c>u;u++){var d=s[u];t=a===Mt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function F(){if(zt.progress&&_t.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}_t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function _(){if(zt.controls&&_t.controls){var e=$(),t=V();_t.controlsLeft.concat(_t.controlsRight).concat(_t.controlsUp).concat(_t.controlsDown).concat(_t.controlsPrev).concat(_t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&_t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&_t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&_t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&_t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&_t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&_t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Nt&&(t.prev&&_t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Nt)?(t.prev&&_t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&_t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function K(){f(_t.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(Mt>t?n:t>Mt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){_t.background.classList.remove("no-transition")},1)}function $(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ht),n={left:Mt>0||zt.loop,right:e.length-1>Mt||zt.loop,up:Pt>0,down:t.length-1>Pt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function V(){if(Nt&&zt.fragments){var e=Nt.querySelectorAll(".fragment"),t=Nt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function B(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(Mt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Mt||i!==Pt)&&z(a,i)}}function G(e){if(zt.history)if(clearTimeout(Vt),"number"==typeof e)Vt=setTimeout(G,e);else{var t="/";Nt&&"string"==typeof Nt.getAttribute("id")?t="/"+Nt.getAttribute("id"):((Mt>0||Pt>0)&&(t+=Mt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function J(e){var t,n=Mt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Nt){var s=Nt.querySelectorAll(".fragment").length>0;if(s){var c=Nt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function et(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),_(),!0}}return!1}function tt(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),_(),!0}}return!1}function nt(){clearTimeout($t),!Wt||O()||C()||($t=setTimeout(lt,Wt))}function rt(){clearTimeout($t)}function ot(){zt.rtl?(C()||et()===!1)&&$().left&&z(Mt+1):(C()||tt()===!1)&&$().left&&z(Mt-1)}function at(){zt.rtl?(C()||tt()===!1)&&$().right&&z(Mt-1):(C()||et()===!1)&&$().right&&z(Mt+1)}function it(){(C()||tt()===!1)&&$().up&&z(Mt,Pt-1)}function st(){(C()||et()===!1)&&$().down&&z(Mt,Pt+1)}function ct(){if(tt()===!1)if($().up)it();else{var e=document.querySelector(Xt+".past:nth-child("+Mt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Mt-1;z(n,t)}}}function lt(){et()===!1&&($().down?st():at()),nt()}function ut(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ct();break;case 78:case 34:lt();break;case 72:case 37:ot();break;case 76:case 39:at();break;case 75:case 38:it();break;case 74:case 40:st();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:C()?D():e.shiftKey?ct():lt();break;case 13:C()?D():n=!1;break;case 66:case 190:case 191:H();break;case 70:I();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ct||(N(),e.preventDefault()),nt()}}function dt(e){Gt.startX=e.touches[0].clientX,Gt.startY=e.touches[0].clientY,Gt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Gt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY}))}function ft(e){if(Gt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Gt.startCount&&zt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY});Math.abs(Gt.startSpan-r)>Gt.threshold&&(Gt.captured=!0,Gt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Gt.startCount){var o=t-Gt.startX,a=n-Gt.startY;o>Gt.threshold&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,ot()):-Gt.threshold>o&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,at()):a>Gt.threshold?(Gt.captured=!0,it()):-Gt.threshold>a&&(Gt.captured=!0,st()),zt.embedded?(Gt.captured||R(Nt))&&e.preventDefault():e.preventDefault()}}}function vt(){Gt.captured=!1}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){if(Date.now()-Kt>600){Kt=Date.now();var t=e.detail||-e.wheelDelta;t>0?lt():ct()}}function yt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/_t.wrapper.offsetWidth*t);z(n)}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(){B()}function qt(){x()}function xt(e){if(Bt&&C()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function Tt(e){var t=e.target.getAttribute("href");t&&(S(t),e.preventDefault())}var Mt,Pt,Dt,Nt,Ct,Rt,It,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ht=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Ut=!1,Wt=0,jt=[],Ft=1,_t={},Kt=0,$t=0,Vt=0,Zt=0,Qt=0,Bt=!1,Gt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:U,slide:z,left:ot,right:at,up:it,down:st,prev:ct,next:lt,prevFragment:tt,nextFragment:et,navigateTo:z,navigateLeft:ot,navigateRight:at,navigateUp:it,navigateDown:st,navigatePrev:ct,navigateNext:lt,layout:x,availableRoutes:$,availableFragments:V,toggleOverview:N,togglePause:H,isOverview:C,isPaused:O,addEventListeners:l,removeEventListeners:u,getIndices:J,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Nt},getScale:function(){return Ft},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Nt&&Nt.classList.contains(".stack")?null==Nt.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Ut},addEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From fecee266b680c01d1a89ab754bb25a81fd1c35be Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 16 Aug 2013 09:31:13 -0400
Subject: start work on logic for fitting an element to remaining slide height
#244 #490 #561
---
js/reveal.js | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
js/reveal.min.js | 4 ++--
2 files changed, 59 insertions(+), 2 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 85e238a..acd5623 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -722,6 +722,56 @@ var Reveal = (function(){
}
+ function getComputedCSSProperty( element, prop ) {
+
+ if( window.getComputedStyle ) {
+ return window.getComputedStyle( element )[ prop ];
+ }
+ else {
+ return element.currentStyle ? element.currentStyle( prop ) : element.style[ prop ];
+ }
+
+ }
+
+ /**
+ * Returns the remaining height within the parent element
+ * of the target after taking out the height of all
+ * siblings.
+ *
+ * remaining height = [parent height] - [ siblings height]
+ */
+ function getRemainingHeight( element ) {
+
+ var height = 0;
+
+ if( element ) {
+ var parent = element.parentNode;
+ var siblings = parent.childNodes;
+
+ height = config.height;
+
+ // Remove the height of each sibling
+ toArray( siblings ).forEach( function( sibling ) {
+
+ if( typeof sibling.offsetHeight === 'number' && sibling !== element ) {
+
+ var marginTop = parseInt( getComputedCSSProperty( sibling, 'margin-top' ), 10 );
+ var marginBottom = parseInt( getComputedCSSProperty( sibling, 'margin-bottom' ), 10 );
+
+ console.log( marginTop, marginBottom );
+
+ height -= sibling.offsetHeight + marginTop + marginBottom;
+
+ }
+
+ } );
+
+ }
+
+ return height;
+
+ }
+
/**
* Checks if this instance is being used to print a PDF.
*/
@@ -1017,6 +1067,13 @@ var Reveal = (function(){
updateProgress();
+ // Handle sizing of elements with the 'remaining-height' class
+ toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
+
+ element.style.height = getRemainingHeight( element ) + 'px';
+
+ } );
+
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 5a83483..e50cdb6 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-15, 08:53)
+ * reveal.js 2.5.0 (2013-08-16, 09:29)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||Ct?(window.addEventListener("load",x,!1),d(zt,e),h(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Ct="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,It=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=zt.dependencies.length;a>o;o++){var i=zt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),B(),setTimeout(function(){_t.slides.classList.remove("no-transition"),Ut=!0,b("ready",{indexh:Mt,indexv:Pt,currentSlide:Nt})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){_t.theme=document.querySelector("#theme"),_t.wrapper=document.querySelector(".reveal"),_t.slides=document.querySelector(".reveal .slides"),_t.slides.classList.add("no-transition"),_t.background=i(_t.wrapper,"div","backgrounds",null),_t.progress=i(_t.wrapper,"div","progress",""),_t.progressbar=_t.progress.querySelector("span"),i(_t.wrapper,"aside","controls",''),i(_t.wrapper,"div","state-background",null),i(_t.wrapper,"div","pause-overlay",null),zt.controls&&(_t.controls=document.querySelector(".reveal .controls"),_t.controlsLeft=f(document.querySelectorAll(".navigate-left")),_t.controlsRight=f(document.querySelectorAll(".navigate-right")),_t.controlsUp=f(document.querySelectorAll(".navigate-up")),_t.controlsDown=f(document.querySelectorAll(".navigate-down")),_t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),_t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),_t.background.innerHTML="",_t.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=m()?e(t,t):e(t,_t.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function c(e){if(_t.wrapper.classList.remove(zt.transition),"object"==typeof e&&d(zt,e),Ct===!1&&(zt.transition="linear"),_t.wrapper.classList.add(zt.transition),_t.wrapper.setAttribute("data-transition-speed",zt.transitionSpeed),_t.wrapper.setAttribute("data-background-transition",zt.backgroundTransition),_t.controls&&(_t.controls.style.display=zt.controls&&_t.controls?"block":"none"),_t.progress&&(_t.progress.style.display=zt.progress&&_t.progress?"block":"none"),zt.rtl?_t.wrapper.classList.add("rtl"):_t.wrapper.classList.remove("rtl"),zt.center?_t.wrapper.classList.add("center"):_t.wrapper.classList.remove("center"),zt.mouseWheel?(document.addEventListener("DOMMouseScroll",ht,!1),document.addEventListener("mousewheel",ht,!1)):(document.removeEventListener("DOMMouseScroll",ht,!1),document.removeEventListener("mousewheel",ht,!1)),zt.rollingLinks?w():L(),zt.previewLinks?E():(k(),E("[data-preview-link]")),zt.theme&&_t.theme){var t=_t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];zt.theme!==r&&(t=t.replace(n,zt.theme),_t.theme.setAttribute("href",t))}U()}function l(){Bt=!0,window.addEventListener("hashchange",At,!1),window.addEventListener("resize",qt,!1),zt.touch&&(_t.wrapper.addEventListener("touchstart",dt,!1),_t.wrapper.addEventListener("touchmove",ft,!1),_t.wrapper.addEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.addEventListener("MSPointerDown",pt,!1),_t.wrapper.addEventListener("MSPointerMove",gt,!1),_t.wrapper.addEventListener("MSPointerUp",mt,!1))),zt.keyboard&&document.addEventListener("keydown",ut,!1),zt.progress&&_t.progress&&_t.progress.addEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.addEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.addEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.addEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.addEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.addEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.addEventListener(e,St,!1)})})}function u(){Bt=!1,document.removeEventListener("keydown",ut,!1),window.removeEventListener("hashchange",At,!1),window.removeEventListener("resize",qt,!1),_t.wrapper.removeEventListener("touchstart",dt,!1),_t.wrapper.removeEventListener("touchmove",ft,!1),_t.wrapper.removeEventListener("touchend",vt,!1),window.navigator.msPointerEnabled&&(_t.wrapper.removeEventListener("MSPointerDown",pt,!1),_t.wrapper.removeEventListener("MSPointerMove",gt,!1),_t.wrapper.removeEventListener("MSPointerUp",mt,!1)),zt.progress&&_t.progress&&_t.progress.removeEventListener("click",yt,!1),zt.controls&&_t.controls&&["touchstart","click"].forEach(function(e){_t.controlsLeft.forEach(function(t){t.removeEventListener(e,bt,!1)}),_t.controlsRight.forEach(function(t){t.removeEventListener(e,wt,!1)}),_t.controlsUp.forEach(function(t){t.removeEventListener(e,Lt,!1)}),_t.controlsDown.forEach(function(t){t.removeEventListener(e,Et,!1)}),_t.controlsPrev.forEach(function(t){t.removeEventListener(e,kt,!1)}),_t.controlsNext.forEach(function(t){t.removeEventListener(e,St,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(){return/print-pdf/gi.test(window.location.search)}function h(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",y,!1),window.addEventListener("orientationchange",y,!1))}function y(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function b(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),_t.wrapper.dispatchEvent(n)}function w(){if(Ct&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function L(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function E(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1)})}function k(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1)})}function S(e){A(),_t.preview=document.createElement("div"),_t.preview.classList.add("preview-link-overlay"),_t.wrapper.appendChild(_t.preview),_t.preview.innerHTML=["",'','','',"
"].join(""),_t.preview.querySelector("iframe").addEventListener("load",function(){_t.preview.classList.add("loaded")},!1),_t.preview.querySelector(".close").addEventListener("click",function(e){A(),e.preventDefault()},!1),_t.preview.querySelector(".external").addEventListener("click",function(){A()},!1),setTimeout(function(){_t.preview.classList.add("visible")},1)}function A(){_t.preview&&(_t.preview.setAttribute("src",""),_t.preview.parentNode.removeChild(_t.preview),_t.preview=null)}function q(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function x(){if(_t.wrapper&&!m()){var e=_t.wrapper.offsetWidth,t=_t.wrapper.offsetHeight;e-=t*zt.margin,t-=t*zt.margin;var n=zt.width,r=zt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),_t.slides.style.width=n+"px",_t.slides.style.height=r+"px",Ft=Math.min(e/n,t/r),Ft=Math.max(Ft,zt.minScale),Ft=Math.min(Ft,zt.maxScale),void 0===_t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(_t.slides,"translate(-50%, -50%) scale("+Ft+") translate(50%, 50%)"):_t.slides.style.zoom=Ft;for(var o=f(document.querySelectorAll(Yt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=zt.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}F()}}function T(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function M(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(zt.overview){rt();var e=_t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;_t.wrapper.classList.add("overview"),_t.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=zt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Mt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Mt?Pt:M(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",xt,!0)}else a.addEventListener("click",xt,!0)}j(),x(),e||b("overviewshown",{indexh:Mt,indexv:Pt,currentSlide:Nt})},10)}}function D(){if(zt.overview){clearTimeout(Zt),clearTimeout(Qt),_t.wrapper.classList.remove("overview"),_t.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){_t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",xt,!0)}z(Mt,Pt),nt(),b("overviewhidden",{indexh:Mt,indexv:Pt,currentSlide:Nt})}}function N(e){"boolean"==typeof e?e?P():D():C()?D():P()}function C(){return _t.wrapper.classList.contains("overview")}function R(e){return e=e?e:Nt,e&&!!e.parentNode.nodeName.match(/section/i)}function I(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=_t.wrapper.classList.contains("paused");rt(),_t.wrapper.classList.add("paused"),e===!1&&b("paused")}function X(){var e=_t.wrapper.classList.contains("paused");_t.wrapper.classList.remove("paused"),nt(),e&&b("resumed")}function H(){O()?X():Y()}function O(){return _t.wrapper.classList.contains("paused")}function z(e,t,n,r){Dt=Nt;var o=document.querySelectorAll(Xt);void 0===t&&(t=M(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&T(Dt.parentNode,Pt);var a=jt.concat();jt.length=0;var i=Mt,s=Pt;Mt=W(Xt,void 0===e?Mt:e),Pt=W(Ht,void 0===t?Pt:t),j(),x();e:for(var c=0,l=jt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===jt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(jt[c]),b(jt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());C()&&P();var d=o[Mt],v=d.querySelectorAll("section");if(Nt=v[Pt]||d,n!==void 0){var p=q(Nt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Mt!==i||Pt!==s;g?b("slidechanged",{indexh:Mt,indexv:Pt,previousSlide:Dt,currentSlide:Nt,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(Ot).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&T(t[e],0)},0)),g&&(Q(Dt),Z(Nt)),_(),F(),K(),G()}function U(){u(),l(),x(),Wt=zt.autoSlide,nt(),s(),_(),F(),K()}function W(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){zt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=zt.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(jt=jt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Wt=l?parseInt(l,10):zt.autoSlide,nt()}else t=0;return t}function j(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=C()?10:zt.viewDistance;It&&(o=C()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Mt-a)%(r-o))||0,c){i.style.display="block";for(var l=M(i),u=0;c>u;u++){var d=s[u];t=a===Mt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function F(){if(zt.progress&&_t.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}_t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function _(){if(zt.controls&&_t.controls){var e=$(),t=V();_t.controlsLeft.concat(_t.controlsRight).concat(_t.controlsUp).concat(_t.controlsDown).concat(_t.controlsPrev).concat(_t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&_t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&_t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&_t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&_t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&_t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&_t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Nt&&(t.prev&&_t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Nt)?(t.prev&&_t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&_t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&_t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function K(){f(_t.background.childNodes).forEach(function(e,t){var n=zt.rtl?"future":"past",r=zt.rtl?"past":"future";e.className="slide-background "+(Mt>t?n:t>Mt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){_t.background.classList.remove("no-transition")},1)}function $(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ht),n={left:Mt>0||zt.loop,right:e.length-1>Mt||zt.loop,up:Pt>0,down:t.length-1>Pt};if(zt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function V(){if(Nt&&zt.fragments){var e=Nt.querySelectorAll(".fragment"),t=Nt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function B(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);z(o.h,o.v)}else z(Mt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Mt||i!==Pt)&&z(a,i)}}function G(e){if(zt.history)if(clearTimeout(Vt),"number"==typeof e)Vt=setTimeout(G,e);else{var t="/";Nt&&"string"==typeof Nt.getAttribute("id")?t="/"+Nt.getAttribute("id"):((Mt>0||Pt>0)&&(t+=Mt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function J(e){var t,n=Mt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Nt){var s=Nt.querySelectorAll(".fragment").length>0;if(s){var c=Nt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function et(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),b("fragmentshown",{fragment:e[0],fragments:e}),_(),!0}}return!1}function tt(){if(Nt&&zt.fragments){var e=q(Nt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Nt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),b("fragmenthidden",{fragment:e[0],fragments:e}),_(),!0}}return!1}function nt(){clearTimeout($t),!Wt||O()||C()||($t=setTimeout(lt,Wt))}function rt(){clearTimeout($t)}function ot(){zt.rtl?(C()||et()===!1)&&$().left&&z(Mt+1):(C()||tt()===!1)&&$().left&&z(Mt-1)}function at(){zt.rtl?(C()||tt()===!1)&&$().right&&z(Mt-1):(C()||et()===!1)&&$().right&&z(Mt+1)}function it(){(C()||tt()===!1)&&$().up&&z(Mt,Pt-1)}function st(){(C()||et()===!1)&&$().down&&z(Mt,Pt+1)}function ct(){if(tt()===!1)if($().up)it();else{var e=document.querySelector(Xt+".past:nth-child("+Mt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Mt-1;z(n,t)}}}function lt(){et()===!1&&($().down?st():at()),nt()}function ut(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(O()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof zt.keyboard)for(var r in zt.keyboard)if(parseInt(r,10)===e.keyCode){var o=zt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ct();break;case 78:case 34:lt();break;case 72:case 37:ot();break;case 76:case 39:at();break;case 75:case 38:it();break;case 74:case 40:st();break;case 36:z(0);break;case 35:z(Number.MAX_VALUE);break;case 32:C()?D():e.shiftKey?ct():lt();break;case 13:C()?D():n=!1;break;case 66:case 190:case 191:H();break;case 70:I();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Ct||(N(),e.preventDefault()),nt()}}function dt(e){Gt.startX=e.touches[0].clientX,Gt.startY=e.touches[0].clientY,Gt.startCount=e.touches.length,2===e.touches.length&&zt.overview&&(Gt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY}))}function ft(e){if(Gt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Gt.startCount&&zt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Gt.startX,y:Gt.startY});Math.abs(Gt.startSpan-r)>Gt.threshold&&(Gt.captured=!0,Gt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Gt.startCount){var o=t-Gt.startX,a=n-Gt.startY;o>Gt.threshold&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,ot()):-Gt.threshold>o&&Math.abs(o)>Math.abs(a)?(Gt.captured=!0,at()):a>Gt.threshold?(Gt.captured=!0,it()):-Gt.threshold>a&&(Gt.captured=!0,st()),zt.embedded?(Gt.captured||R(Nt))&&e.preventDefault():e.preventDefault()}}}function vt(){Gt.captured=!1}function pt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],dt(e))}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){if(Date.now()-Kt>600){Kt=Date.now();var t=e.detail||-e.wheelDelta;t>0?lt():ct()}}function yt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/_t.wrapper.offsetWidth*t);z(n)}function bt(e){e.preventDefault(),ot()}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(){B()}function qt(){x()}function xt(e){if(Bt&&C()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);z(n,r)}}}function Tt(e){var t=e.target.getAttribute("href");t&&(S(t),e.preventDefault())}var Mt,Pt,Dt,Nt,Ct,Rt,It,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ht=".reveal .slides>section.present>section",Ot=".reveal .slides>section:first-child",zt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Ut=!1,Wt=0,jt=[],Ft=1,_t={},Kt=0,$t=0,Vt=0,Zt=0,Qt=0,Bt=!1,Gt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:U,slide:z,left:ot,right:at,up:it,down:st,prev:ct,next:lt,prevFragment:tt,nextFragment:et,navigateTo:z,navigateLeft:ot,navigateRight:at,navigateUp:it,navigateDown:st,navigatePrev:ct,navigateNext:lt,layout:x,availableRoutes:$,availableFragments:V,toggleOverview:N,togglePause:H,isOverview:C,isPaused:O,addEventListeners:l,removeEventListeners:u,getIndices:J,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Nt},getScale:function(){return Ft},getConfig:function(){return zt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Nt&&Nt.classList.contains(".stack")?null==Nt.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Ut},addEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(_t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Ht||It?(window.addEventListener("load",M,!1),d(Wt,e),b(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,L("ready",{indexh:Pt,indexv:Dt,currentSlide:Rt})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}y()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=y()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){y()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),It===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?E():k(),Wt.previewLinks?S():(A(),S("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){return window.getComputedStyle?window.getComputedStyle(e)[t]:e.currentStyle?e.currentStyle(t):e.style[t]}function h(e){var t=0;if(e){var n=e.parentNode,r=n.childNodes;t=Wt.height,f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=parseInt(m(n,"margin-top"),10),o=parseInt(m(n,"margin-bottom"),10);console.log(r,o),t-=n.offsetHeight+r+o}})}return t}function y(){return/print-pdf/gi.test(window.location.search)}function b(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",w,!1),window.addEventListener("orientationchange",w,!1))}function w(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function L(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function E(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function k(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function S(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function A(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function q(e){x(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){x(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){x()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function x(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function T(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function M(){if($t.wrapper&&!y()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var o=f(document.querySelectorAll(Xt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=Wt.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}K(),f($t.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=h(e)+"px"})}}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Bt),clearTimeout(Gt),Bt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),M(),e||L("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:Rt})},10)}}function C(){if(Wt.overview){clearTimeout(Bt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),L("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:Rt})}}function R(e){"boolean"==typeof e?e?D():C():I()?C():D()}function I(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:Rt,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&L("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&L("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=Rt;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt,s=Dt;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),M();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),L(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(Rt=v[Dt]||d,n!==void 0){var p=T(Rt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?L("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:Rt,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),B(Rt)),$(),K(),V(),et()}function j(){u(),l(),M(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=I()?10:Wt.viewDistance;Yt&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,c){i.style.display="block";for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=Z(),t=Q();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Rt&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(Rt)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function Z(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Q(){if(Rt&&Wt.fragments){var e=Rt.querySelectorAll(".fragment"),t=Rt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function B(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Qt),"number"==typeof e)Qt=setTimeout(et,e);else{var t="/";Rt&&"string"==typeof Rt.getAttribute("id")?t="/"+Rt.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Rt){var s=Rt.querySelectorAll(".fragment").length>0;if(s){var c=Rt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(Rt&&Wt.fragments){var e=T(Rt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Rt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),L("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(Rt&&Wt.fragments){var e=T(Rt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Rt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),L("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Zt),!Ft||U()||I()||(Zt=setTimeout(dt,Ft))}function at(){clearTimeout(Zt)}function it(){Wt.rtl?(I()||nt()===!1)&&Z().left&&W(Pt+1):(I()||rt()===!1)&&Z().left&&W(Pt-1)}function st(){Wt.rtl?(I()||rt()===!1)&&Z().right&&W(Pt-1):(I()||nt()===!1)&&Z().right&&W(Pt+1)}function ct(){(I()||rt()===!1)&&Z().up&&W(Pt,Dt-1)}function lt(){(I()||nt()===!1)&&Z().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(Z().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(Z().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:I()?C():e.shiftKey?ut():dt();break;case 13:I()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(R(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(Rt))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){M()}function Mt(e){if(Jt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(q(t),e.preventDefault())}var Pt,Dt,Ct,Rt,It,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Zt=0,Qt=0,Bt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:M,availableRoutes:Z,availableFragments:Q,toggleOverview:R,togglePause:z,isOverview:I,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return Rt},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return Rt&&Rt.classList.contains(".stack")?null==Rt.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 0239302f450d94f4ca14dd09c166a0a03456ee98 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 17 Aug 2013 12:11:05 -0400
Subject: further work on remaining-height helper #244 #490 #561
---
js/reveal.js | 55 ++++++++++++++++++++++++-------------------------------
js/reveal.min.js | 4 ++--
2 files changed, 26 insertions(+), 33 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index acd5623..53428aa 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -722,43 +722,29 @@ var Reveal = (function(){
}
- function getComputedCSSProperty( element, prop ) {
-
- if( window.getComputedStyle ) {
- return window.getComputedStyle( element )[ prop ];
- }
- else {
- return element.currentStyle ? element.currentStyle( prop ) : element.style[ prop ];
- }
-
- }
-
/**
- * Returns the remaining height within the parent element
- * of the target after taking out the height of all
+ * Returns the remaining height within the parent of the
+ * target element after subtracting the height of all
* siblings.
*
* remaining height = [parent height] - [ siblings height]
*/
- function getRemainingHeight( element ) {
+ function getRemainingHeight( element, height ) {
- var height = 0;
+ height = height || 0;
if( element ) {
var parent = element.parentNode;
var siblings = parent.childNodes;
- height = config.height;
-
- // Remove the height of each sibling
+ // Subtract the height of each sibling
toArray( siblings ).forEach( function( sibling ) {
if( typeof sibling.offsetHeight === 'number' && sibling !== element ) {
- var marginTop = parseInt( getComputedCSSProperty( sibling, 'margin-top' ), 10 );
- var marginBottom = parseInt( getComputedCSSProperty( sibling, 'margin-bottom' ), 10 );
-
- console.log( marginTop, marginBottom );
+ var styles = window.getComputedStyle( sibling ),
+ marginTop = parseInt( styles[ 'margin-top' ], 10 ),
+ marginBottom = parseInt( styles[ 'margin-bottom' ], 10 );
height -= sibling.offsetHeight + marginTop + marginBottom;
@@ -766,6 +752,12 @@ var Reveal = (function(){
} );
+ var elementStyles = window.getComputedStyle( element );
+
+ // Subtract the margins of the target element
+ height -= parseInt( elementStyles[ 'margin-top' ], 10 ) +
+ parseInt( elementStyles[ 'margin-bottom' ], 10 );
+
}
return height;
@@ -1006,7 +998,8 @@ var Reveal = (function(){
// Dimensions of the content
var slideWidth = config.width,
- slideHeight = config.height;
+ slideHeight = config.height,
+ slidePadding = 20; // TODO Dig this out of DOM
// Slide width may be a percentage of available width
if( typeof slideWidth === 'string' && /%$/.test( slideWidth ) ) {
@@ -1021,6 +1014,13 @@ var Reveal = (function(){
dom.slides.style.width = slideWidth + 'px';
dom.slides.style.height = slideHeight + 'px';
+ // Handle sizing of elements with the 'remaining-height' class
+ toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
+
+ element.style.height = getRemainingHeight( element, ( slideHeight - ( slidePadding * 2 ) ) ) + 'px';
+
+ } );
+
// Determine scale of content to fit within available space
scale = Math.min( availableWidth / slideWidth, availableHeight / slideHeight );
@@ -1056,7 +1056,7 @@ var Reveal = (function(){
slide.style.top = 0;
}
else {
- slide.style.top = Math.max( - ( getAbsoluteHeight( slide ) / 2 ) - 20, -slideHeight / 2 ) + 'px';
+ slide.style.top = Math.max( - ( getAbsoluteHeight( slide ) / 2 ) - slidePadding, -slideHeight / 2 ) + 'px';
}
}
else {
@@ -1067,13 +1067,6 @@ var Reveal = (function(){
updateProgress();
- // Handle sizing of elements with the 'remaining-height' class
- toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
-
- element.style.height = getRemainingHeight( element ) + 'px';
-
- } );
-
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index e50cdb6..f39274f 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-16, 09:29)
+ * reveal.js 2.5.0 (2013-08-17, 12:10)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Ht||It?(window.addEventListener("load",M,!1),d(Wt,e),b(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,L("ready",{indexh:Pt,indexv:Dt,currentSlide:Rt})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}y()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=y()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){y()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),It===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?E():k(),Wt.previewLinks?S():(A(),S("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){return window.getComputedStyle?window.getComputedStyle(e)[t]:e.currentStyle?e.currentStyle(t):e.style[t]}function h(e){var t=0;if(e){var n=e.parentNode,r=n.childNodes;t=Wt.height,f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=parseInt(m(n,"margin-top"),10),o=parseInt(m(n,"margin-bottom"),10);console.log(r,o),t-=n.offsetHeight+r+o}})}return t}function y(){return/print-pdf/gi.test(window.location.search)}function b(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",w,!1),window.addEventListener("orientationchange",w,!1))}function w(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function L(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function E(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function k(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function S(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function A(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function q(e){x(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){x(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){x()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function x(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function T(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function M(){if($t.wrapper&&!y()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var o=f(document.querySelectorAll(Xt)),a=0,i=o.length;i>a;a++){var s=o[a];"none"!==s.style.display&&(s.style.top=Wt.center?s.classList.contains("stack")?0:Math.max(-(g(s)/2)-20,-r/2)+"px":"")}K(),f($t.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=h(e)+"px"})}}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Bt),clearTimeout(Gt),Bt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),M(),e||L("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:Rt})},10)}}function C(){if(Wt.overview){clearTimeout(Bt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),L("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:Rt})}}function R(e){"boolean"==typeof e?e?D():C():I()?C():D()}function I(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:Rt,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&L("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&L("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=Rt;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt,s=Dt;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),M();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),L(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(Rt=v[Dt]||d,n!==void 0){var p=T(Rt.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?L("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:Rt,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),B(Rt)),$(),K(),V(),et()}function j(){u(),l(),M(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=I()?10:Wt.viewDistance;Yt&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,c){i.style.display="block";for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=Z(),t=Q();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),Rt&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(Rt)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function Z(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Q(){if(Rt&&Wt.fragments){var e=Rt.querySelectorAll(".fragment"),t=Rt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function B(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Qt),"number"==typeof e)Qt=setTimeout(et,e);else{var t="/";Rt&&"string"==typeof Rt.getAttribute("id")?t="/"+Rt.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Rt){var s=Rt.querySelectorAll(".fragment").length>0;if(s){var c=Rt.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(Rt&&Wt.fragments){var e=T(Rt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Rt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),L("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(Rt&&Wt.fragments){var e=T(Rt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Rt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),L("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Zt),!Ft||U()||I()||(Zt=setTimeout(dt,Ft))}function at(){clearTimeout(Zt)}function it(){Wt.rtl?(I()||nt()===!1)&&Z().left&&W(Pt+1):(I()||rt()===!1)&&Z().left&&W(Pt-1)}function st(){Wt.rtl?(I()||rt()===!1)&&Z().right&&W(Pt-1):(I()||nt()===!1)&&Z().right&&W(Pt+1)}function ct(){(I()||rt()===!1)&&Z().up&&W(Pt,Dt-1)}function lt(){(I()||nt()===!1)&&Z().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(Z().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(Z().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:I()?C():e.shiftKey?ut():dt();break;case 13:I()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(R(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(Rt))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){M()}function Mt(e){if(Jt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(q(t),e.preventDefault())}var Pt,Dt,Ct,Rt,It,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Zt=0,Qt=0,Bt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:M,availableRoutes:Z,availableFragments:Q,toggleOverview:R,togglePause:z,isOverview:I,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return Rt},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return Rt&&Rt.classList.contains(".stack")?null==Rt.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r["margin-top"],10),a=parseInt(r["margin-bottom"],10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o["margin-top"],10)+parseInt(o["margin-bottom"],10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Bt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Qt),clearTimeout(Bt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Bt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt,s=Pt;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(B(Dt),Q(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=Z();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function B(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Zt=0,Qt=0,Bt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:Z,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 3c5f3ee048b826f45844173f2ebcc1285263583c Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 17 Aug 2013 12:15:55 -0400
Subject: fix retrieval of computed styles in ff
---
js/reveal.js | 8 ++++----
js/reveal.min.js | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 53428aa..cf9df15 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -743,8 +743,8 @@ var Reveal = (function(){
if( typeof sibling.offsetHeight === 'number' && sibling !== element ) {
var styles = window.getComputedStyle( sibling ),
- marginTop = parseInt( styles[ 'margin-top' ], 10 ),
- marginBottom = parseInt( styles[ 'margin-bottom' ], 10 );
+ marginTop = parseInt( styles.marginTop, 10 ),
+ marginBottom = parseInt( styles.marginBottom, 10 );
height -= sibling.offsetHeight + marginTop + marginBottom;
@@ -755,8 +755,8 @@ var Reveal = (function(){
var elementStyles = window.getComputedStyle( element );
// Subtract the margins of the target element
- height -= parseInt( elementStyles[ 'margin-top' ], 10 ) +
- parseInt( elementStyles[ 'margin-bottom' ], 10 );
+ height -= parseInt( elementStyles.marginTop, 10 ) +
+ parseInt( elementStyles.marginBottom, 10 );
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index f39274f..d529241 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-17, 12:10)
+ * reveal.js 2.5.0 (2013-08-17, 12:15)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r["margin-top"],10),a=parseInt(r["margin-bottom"],10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o["margin-top"],10)+parseInt(o["margin-bottom"],10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Bt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Qt),clearTimeout(Bt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Bt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt,s=Pt;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(B(Dt),Q(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=Z();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function B(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Zt=0,Qt=0,Bt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:Z,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt,s=Pt;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 3dc53b891d54120bf0db7f26cb6e829f7b889736 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sat, 17 Aug 2013 12:18:48 -0400
Subject: prevent invalid slidechanged on page load
---
js/reveal.js | 4 ++--
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index cf9df15..4ce8f3b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1409,8 +1409,8 @@ var Reveal = (function(){
// Reset the state array
state.length = 0;
- var indexhBefore = indexh,
- indexvBefore = indexv;
+ var indexhBefore = indexh || 0,
+ indexvBefore = indexv || 0;
// Activate and transition to the new slide
indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h );
diff --git a/js/reveal.min.js b/js/reveal.min.js
index d529241..edc5cca 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-17, 12:15)
+ * reveal.js 2.5.0 (2013-08-17, 12:17)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt,s=Pt;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt||0,s=Pt||0;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 271bae6b563ef1a625cf582934d589759cec7db7 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 18 Aug 2013 00:01:28 -0400
Subject: allow hiding of vertical slide stacks
---
js/reveal.js | 12 +++---------
js/reveal.min.js | 4 ++--
2 files changed, 5 insertions(+), 11 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 4ce8f3b..9c8b4b0 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1688,11 +1688,10 @@ var Reveal = (function(){
// Loops so that it measures 1 between the first and last slides
distanceX = Math.abs( ( indexh - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
- if( verticalSlidesLength ) {
+ // Show the horizontal slide if it's within the view distance
+ horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
- // Always show the vertical stack itself, even if its child
- // slides are invisible
- horizontalSlide.style.display = 'block';
+ if( verticalSlidesLength ) {
var oy = getPreviousVerticalIndex( horizontalSlide );
@@ -1705,11 +1704,6 @@ var Reveal = (function(){
}
}
- else {
-
- horizontalSlide.style.display = distanceX > viewDistance ? 'none' : 'block';
-
- }
}
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index edc5cca..6efd513 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-17, 12:17)
+ * reveal.js 2.5.0 (2013-08-18, 00:00)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt||0,s=Pt||0;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,c){i.style.display="block";for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}else i.style.display=e>o?"none":"block"}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt||0,s=Pt||0;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 04c4fa49b896e63b6679023dd16c93494af342eb Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 18 Aug 2013 17:53:41 -0400
Subject: revised remaining height layout logic
---
css/reveal.css | 5 +++++
css/reveal.min.css | 2 +-
js/reveal.js | 40 ++++++++++++++++++++++++++++++++++------
js/reveal.min.js | 4 ++--
4 files changed, 42 insertions(+), 9 deletions(-)
(limited to 'js/reveal.js')
diff --git a/css/reveal.css b/css/reveal.css
index 72b9232..22cb687 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -355,6 +355,11 @@ body {
vertical-align: top;
}
+.reveal .remaining-height {
+ max-width: none;
+ max-height: none;
+}
+
/*********************************************
* CONTROLS
diff --git a/css/reveal.min.css b/css/reveal.min.css
index a7fb131..68563a2 100644
--- a/css/reveal.min.css
+++ b/css/reveal.min.css
@@ -4,4 +4,4 @@
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
- */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal pre.remaining-height code{height:100%;max-height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;top:-300px!important;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;top:0!important;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
+ */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal pre.remaining-height code{height:100%;max-height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .remaining-height{max-width:none;max-height:none}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;top:-300px!important;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;top:0!important;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
diff --git a/js/reveal.js b/js/reveal.js
index 9c8b4b0..257c8c2 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1014,12 +1014,8 @@ var Reveal = (function(){
dom.slides.style.width = slideWidth + 'px';
dom.slides.style.height = slideHeight + 'px';
- // Handle sizing of elements with the 'remaining-height' class
- toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
-
- element.style.height = getRemainingHeight( element, ( slideHeight - ( slidePadding * 2 ) ) ) + 'px';
-
- } );
+ // Layout the contents of the slides
+ layoutSlideContents( config.width, config.height, slidePadding );
// Determine scale of content to fit within available space
scale = Math.min( availableWidth / slideWidth, availableHeight / slideHeight );
@@ -1071,6 +1067,38 @@ var Reveal = (function(){
}
+ /**
+ * Applies layout logic to the contents of all slides in
+ * the presentation.
+ */
+ function layoutSlideContents( width, height, padding ) {
+
+ // Handle sizing of elements with the 'remaining-height' class
+ toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
+
+ // Determine how much vertical space we can use
+ var remainingHeight = getRemainingHeight( element, ( height - ( padding * 2 ) ) );
+
+ // Consider the aspect ratio of media elements
+ if( /(img|video)/gi.test( element.nodeName ) ) {
+ var nw = element.naturalWidth,
+ nh = element.naturalHeight;
+
+ var es = Math.min( width / nw, remainingHeight / nh );
+
+ element.style.width = ( nw * es ) + 'px';
+ element.style.height = ( nh * es ) + 'px';
+
+ }
+ else {
+ element.style.width = width + 'px';
+ element.style.height = remainingHeight + 'px';
+ }
+
+ } );
+
+ }
+
/**
* Stores the vertical index of a stack so that the same
* vertical slide can be selected when navigating to and
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 6efd513..2a93983 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-18, 00:00)
+ * reveal.js 2.5.0 (2013-08-18, 17:50)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Rt||It?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){It="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Rt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Ht=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),G(),setTimeout(function(){Kt.slides.classList.remove("no-transition"),Wt=!0,w("ready",{indexh:Nt,indexv:Pt,currentSlide:Ct})},1)}function o(){var e=f(document.querySelectorAll(Xt));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){Kt.theme=document.querySelector("#theme"),Kt.wrapper=document.querySelector(".reveal"),Kt.slides=document.querySelector(".reveal .slides"),Kt.slides.classList.add("no-transition"),Kt.background=i(Kt.wrapper,"div","backgrounds",null),Kt.progress=i(Kt.wrapper,"div","progress",""),Kt.progressbar=Kt.progress.querySelector("span"),i(Kt.wrapper,"aside","controls",''),i(Kt.wrapper,"div","state-background",null),i(Kt.wrapper,"div","pause-overlay",null),Ut.controls&&(Kt.controls=document.querySelector(".reveal .controls"),Kt.controlsLeft=f(document.querySelectorAll(".navigate-left")),Kt.controlsRight=f(document.querySelectorAll(".navigate-right")),Kt.controlsUp=f(document.querySelectorAll(".navigate-up")),Kt.controlsDown=f(document.querySelectorAll(".navigate-down")),Kt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),Kt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),Kt.background.innerHTML="",Kt.background.classList.add("no-transition"),f(document.querySelectorAll(Xt)).forEach(function(t){var n;n=h()?e(t,t):e(t,Kt.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if(Kt.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),It===!1&&(Ut.transition="linear"),Kt.wrapper.classList.add(Ut.transition),Kt.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),Kt.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),Kt.controls&&(Kt.controls.style.display=Ut.controls&&Kt.controls?"block":"none"),Kt.progress&&(Kt.progress.style.display=Ut.progress&&Kt.progress?"block":"none"),Ut.rtl?Kt.wrapper.classList.add("rtl"):Kt.wrapper.classList.remove("rtl"),Ut.center?Kt.wrapper.classList.add("center"):Kt.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",yt,!1),document.addEventListener("mousewheel",yt,!1)):(document.removeEventListener("DOMMouseScroll",yt,!1),document.removeEventListener("mousewheel",yt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&Kt.theme){var t=Kt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),Kt.theme.setAttribute("href",t))}W()}function l(){Gt=!0,window.addEventListener("hashchange",qt,!1),window.addEventListener("resize",xt,!1),Ut.touch&&(Kt.wrapper.addEventListener("touchstart",ft,!1),Kt.wrapper.addEventListener("touchmove",vt,!1),Kt.wrapper.addEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.addEventListener("MSPointerDown",gt,!1),Kt.wrapper.addEventListener("MSPointerMove",mt,!1),Kt.wrapper.addEventListener("MSPointerUp",ht,!1))),Ut.keyboard&&document.addEventListener("keydown",dt,!1),Ut.progress&&Kt.progress&&Kt.progress.addEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.addEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.addEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.addEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.addEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.addEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.addEventListener(e,At,!1)})})}function u(){Gt=!1,document.removeEventListener("keydown",dt,!1),window.removeEventListener("hashchange",qt,!1),window.removeEventListener("resize",xt,!1),Kt.wrapper.removeEventListener("touchstart",ft,!1),Kt.wrapper.removeEventListener("touchmove",vt,!1),Kt.wrapper.removeEventListener("touchend",pt,!1),window.navigator.msPointerEnabled&&(Kt.wrapper.removeEventListener("MSPointerDown",gt,!1),Kt.wrapper.removeEventListener("MSPointerMove",mt,!1),Kt.wrapper.removeEventListener("MSPointerUp",ht,!1)),Ut.progress&&Kt.progress&&Kt.progress.removeEventListener("click",bt,!1),Ut.controls&&Kt.controls&&["touchstart","click"].forEach(function(e){Kt.controlsLeft.forEach(function(t){t.removeEventListener(e,wt,!1)}),Kt.controlsRight.forEach(function(t){t.removeEventListener(e,Lt,!1)}),Kt.controlsUp.forEach(function(t){t.removeEventListener(e,Et,!1)}),Kt.controlsDown.forEach(function(t){t.removeEventListener(e,kt,!1)}),Kt.controlsPrev.forEach(function(t){t.removeEventListener(e,St,!1)}),Kt.controlsNext.forEach(function(t){t.removeEventListener(e,At,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),Kt.wrapper.dispatchEvent(n)}function L(){if(It&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Yt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Yt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Mt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Mt,!1)})}function A(e){q(),Kt.preview=document.createElement("div"),Kt.preview.classList.add("preview-link-overlay"),Kt.wrapper.appendChild(Kt.preview),Kt.preview.innerHTML=["",'','','',"
"].join(""),Kt.preview.querySelector("iframe").addEventListener("load",function(){Kt.preview.classList.add("loaded")},!1),Kt.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),Kt.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){Kt.preview.classList.add("visible")},1)}function q(){Kt.preview&&(Kt.preview.setAttribute("src",""),Kt.preview.parentNode.removeChild(Kt.preview),Kt.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if(Kt.wrapper&&!h()){var e=Kt.wrapper.offsetWidth,t=Kt.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Kt.slides.style.width=n+"px",Kt.slides.style.height=r+"px",f(Kt.slides.querySelectorAll("section > .remaining-height")).forEach(function(e){e.style.height=m(e,r-2*o)+"px"}),_t=Math.min(e/n,t/r),_t=Math.max(_t,Ut.minScale),_t=Math.min(_t,Ut.maxScale),void 0===Kt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p(Kt.slides,"translate(-50%, -50%) scale("+_t+") translate(50%, 50%)"):Kt.slides.style.zoom=_t;for(var a=f(document.querySelectorAll(Yt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}_()}}function M(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function N(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function P(){if(Ut.overview){ot();var e=Kt.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;Kt.wrapper.classList.add("overview"),Kt.wrapper.classList.remove("exit-overview"),clearTimeout(Zt),clearTimeout(Qt),Zt=setTimeout(function(){for(var n=document.querySelectorAll(Xt),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Nt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Nt?Pt:N(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Tt,!0)}else a.addEventListener("click",Tt,!0)}F(),T(),e||w("overviewshown",{indexh:Nt,indexv:Pt,currentSlide:Ct})},10)}}function D(){if(Ut.overview){clearTimeout(Zt),clearTimeout(Qt),Kt.wrapper.classList.remove("overview"),Kt.wrapper.classList.add("exit-overview"),Qt=setTimeout(function(){Kt.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Yt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Tt,!0)}U(Nt,Pt),rt(),w("overviewhidden",{indexh:Nt,indexv:Pt,currentSlide:Ct})}}function C(e){"boolean"==typeof e?e?P():D():I()?D():P()}function I(){return Kt.wrapper.classList.contains("overview")}function R(e){return e=e?e:Ct,e&&!!e.parentNode.nodeName.match(/section/i)}function H(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function Y(){var e=Kt.wrapper.classList.contains("paused");ot(),Kt.wrapper.classList.add("paused"),e===!1&&w("paused")}function X(){var e=Kt.wrapper.classList.contains("paused");Kt.wrapper.classList.remove("paused"),rt(),e&&w("resumed")}function O(){z()?X():Y()}function z(){return Kt.wrapper.classList.contains("paused")}function U(e,t,n,r){Dt=Ct;var o=document.querySelectorAll(Xt);void 0===t&&(t=N(o[e])),Dt&&Dt.parentNode&&Dt.parentNode.classList.contains("stack")&&M(Dt.parentNode,Pt);var a=Ft.concat();Ft.length=0;var i=Nt||0,s=Pt||0;Nt=j(Xt,void 0===e?Nt:e),Pt=j(Ot,void 0===t?Pt:t),F(),T();e:for(var c=0,l=Ft.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Ft[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Ft[c]),w(Ft[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());I()&&P();var d=o[Nt],v=d.querySelectorAll("section");if(Ct=v[Pt]||d,n!==void 0){var p=x(Ct.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Nt!==i||Pt!==s;g?w("slidechanged",{indexh:Nt,indexv:Pt,previousSlide:Dt,currentSlide:Ct,origin:r}):Dt=null,Dt&&(Dt.classList.remove("present"),document.querySelector(zt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Xt+".stack"));for(e in t)t[e]&&M(t[e],0)},0)),g&&(Q(Dt),Z(Ct)),K(),_(),$(),J()}function W(){u(),l(),T(),jt=Ut.autoSlide,rt(),s(),K(),_(),$()}function j(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!R(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Ft=Ft.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");jt=l?parseInt(l,10):Ut.autoSlide,rt()}else t=0;return t}function F(){var e,t,n=f(document.querySelectorAll(Xt)),r=n.length;if(r){var o=I()?10:Ut.viewDistance;Ht&&(o=I()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Nt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=N(i),u=0;c>u;u++){var d=s[u];t=a===Nt?Math.abs(Pt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function _(){if(Ut.progress&&Kt.progress){var e=f(document.querySelectorAll(Xt)),t=document.querySelectorAll(Yt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Kt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function K(){if(Ut.controls&&Kt.controls){var e=V(),t=B();Kt.controlsLeft.concat(Kt.controlsRight).concat(Kt.controlsUp).concat(Kt.controlsDown).concat(Kt.controlsPrev).concat(Kt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Kt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Kt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Kt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Kt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Kt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Kt.controlsNext.forEach(function(e){e.classList.add("enabled")}),Ct&&(t.prev&&Kt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),R(Ct)?(t.prev&&Kt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Kt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Kt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function $(){f(Kt.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Nt>t?n:t>Nt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Pt>t?"past":t>Pt?"future":"present")})}),setTimeout(function(){Kt.background.classList.remove("no-transition")},1)}function V(){var e=document.querySelectorAll(Xt),t=document.querySelectorAll(Ot),n={left:Nt>0||Ut.loop,right:e.length-1>Nt||Ut.loop,up:Pt>0,down:t.length-1>Pt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function B(){if(Ct&&Ut.fragments){var e=Ct.querySelectorAll(".fragment"),t=Ct.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Z(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function G(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Nt||0,Pt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Nt||i!==Pt)&&U(a,i)}}function J(e){if(Ut.history)if(clearTimeout(Bt),"number"==typeof e)Bt=setTimeout(J,e);else{var t="/";Ct&&"string"==typeof Ct.getAttribute("id")?t="/"+Ct.getAttribute("id"):((Nt>0||Pt>0)&&(t+=Nt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function et(e){var t,n=Nt,r=Pt;if(e){var o=R(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Xt));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Ct){var s=Ct.querySelectorAll(".fragment").length>0;if(s){var c=Ct.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function tt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),K(),!0}}return!1}function nt(){if(Ct&&Ut.fragments){var e=x(Ct.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Ct.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),K(),!0}}return!1}function rt(){clearTimeout(Vt),!jt||z()||I()||(Vt=setTimeout(ut,jt))}function ot(){clearTimeout(Vt)}function at(){Ut.rtl?(I()||tt()===!1)&&V().left&&U(Nt+1):(I()||nt()===!1)&&V().left&&U(Nt-1)}function it(){Ut.rtl?(I()||nt()===!1)&&V().right&&U(Nt-1):(I()||tt()===!1)&&V().right&&U(Nt+1)}function st(){(I()||nt()===!1)&&V().up&&U(Nt,Pt-1)}function ct(){(I()||tt()===!1)&&V().down&&U(Nt,Pt+1)}function lt(){if(nt()===!1)if(V().up)st();else{var e=document.querySelector(Xt+".past:nth-child("+Nt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Nt-1;U(n,t)}}}function ut(){tt()===!1&&(V().down?ct():it()),rt()}function dt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(z()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:lt();break;case 78:case 34:ut();break;case 72:case 37:at();break;case 76:case 39:it();break;case 75:case 38:st();break;case 74:case 40:ct();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:I()?D():e.shiftKey?lt():ut();break;case 13:I()?D():n=!1;break;case 66:case 190:case 191:O();break;case 70:H();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!It||(C(),e.preventDefault()),rt()}}function ft(e){Jt.startX=e.touches[0].clientX,Jt.startY=e.touches[0].clientY,Jt.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(Jt.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY}))}function vt(e){if(Jt.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Jt.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Jt.startX,y:Jt.startY});Math.abs(Jt.startSpan-r)>Jt.threshold&&(Jt.captured=!0,Jt.startSpan>r?P():D()),e.preventDefault()}else if(1===e.touches.length&&2!==Jt.startCount){var o=t-Jt.startX,a=n-Jt.startY;o>Jt.threshold&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,at()):-Jt.threshold>o&&Math.abs(o)>Math.abs(a)?(Jt.captured=!0,it()):a>Jt.threshold?(Jt.captured=!0,st()):-Jt.threshold>a&&(Jt.captured=!0,ct()),Ut.embedded?(Jt.captured||R(Ct))&&e.preventDefault():e.preventDefault()}}}function pt(){Jt.captured=!1}function gt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ft(e))}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){if(Date.now()-$t>600){$t=Date.now();var t=e.detail||-e.wheelDelta;t>0?ut():lt()}}function bt(e){e.preventDefault();var t=f(document.querySelectorAll(Xt)).length,n=Math.floor(e.clientX/Kt.wrapper.offsetWidth*t);U(n)}function wt(e){e.preventDefault(),at()}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(){G()}function xt(){T()}function Tt(e){if(Gt&&I()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(D(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Mt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Nt,Pt,Dt,Ct,It,Rt,Ht,Yt=".reveal .slides section",Xt=".reveal .slides>section",Ot=".reveal .slides>section.present>section",zt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},Wt=!1,jt=0,Ft=[],_t=1,Kt={},$t=0,Vt=0,Bt=0,Zt=0,Qt=0,Gt=!1,Jt={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:W,slide:U,left:at,right:it,up:st,down:ct,prev:lt,next:ut,prevFragment:nt,nextFragment:tt,navigateTo:U,navigateLeft:at,navigateRight:it,navigateUp:st,navigateDown:ct,navigatePrev:lt,navigateNext:ut,layout:T,availableRoutes:V,availableFragments:B,toggleOverview:C,togglePause:O,isOverview:I,isPaused:z,addEventListeners:l,removeEventListeners:u,getIndices:et,getSlide:function(e,t){var n=document.querySelectorAll(Xt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Dt},getCurrentSlide:function(){return Ct},getScale:function(){return _t},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Yt+".past")?!0:!1},isLastSlide:function(){return Ct&&Ct.classList.contains(".stack")?null==Ct.querySelector(Yt+".future")?!0:!1:null==document.querySelector(Yt+".future")?!0:!1},isReady:function(){return Wt},addEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Kt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Ht||Rt?(window.addEventListener("load",T,!1),d(Wt,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Rt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,w("ready",{indexh:Pt,indexv:Dt,currentSlide:It})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=h()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),Rt===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?L():E(),Wt.previewLinks?k():(S(),k("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function L(){if(Rt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function A(e){q(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function q(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if($t.wrapper&&!h()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",M(Wt.width,Wt.height,o),Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var a=f(document.querySelectorAll(Xt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Wt.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}K()}}function M(e,t,n){f($t.slides.querySelectorAll("section > .remaining-height")).forEach(function(r){var o=m(r,t-2*n);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth,i=r.naturalHeight,s=Math.min(e/a,o/i);r.style.width=a*s+"px",r.style.height=i*s+"px"}else r.style.width=e+"px",r.style.height=o+"px"})}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Gt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),T(),e||w("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:It})},10)}}function C(){if(Wt.overview){clearTimeout(Qt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),w("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:It})}}function I(e){"boolean"==typeof e?e?D():C():R()?C():D()}function R(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:It,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&w("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&w("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=It;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt||0,s=Dt||0;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),T();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),w(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());R()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(It=v[Dt]||d,n!==void 0){var p=x(It.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?w("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:It,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),Q(It)),$(),K(),V(),et()}function j(){u(),l(),T(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=R()?10:Wt.viewDistance;Yt&&(o=R()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=B(),t=Z();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),It&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(It)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function B(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(It&&Wt.fragments){var e=It.querySelectorAll(".fragment"),t=It.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(et,e);else{var t="/";It&&"string"==typeof It.getAttribute("id")?t="/"+It.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&It){var s=It.querySelectorAll(".fragment").length>0;if(s){var c=It.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Bt),!Ft||U()||R()||(Bt=setTimeout(dt,Ft))}function at(){clearTimeout(Bt)}function it(){Wt.rtl?(R()||nt()===!1)&&B().left&&W(Pt+1):(R()||rt()===!1)&&B().left&&W(Pt-1)}function st(){Wt.rtl?(R()||rt()===!1)&&B().right&&W(Pt-1):(R()||nt()===!1)&&B().right&&W(Pt+1)}function ct(){(R()||rt()===!1)&&B().up&&W(Pt,Dt-1)}function lt(){(R()||nt()===!1)&&B().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(B().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(B().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:R()?C():e.shiftKey?ut():dt();break;case 13:R()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Rt||(I(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(It))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){T()}function Mt(e){if(Jt&&R()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Pt,Dt,Ct,It,Rt,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Bt=0,Zt=0,Qt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:T,availableRoutes:B,availableFragments:Z,toggleOverview:I,togglePause:z,isOverview:R,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return It},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return It&&It.classList.contains(".stack")?null==It.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 0748b683350b2bd633090f51a8e97b154671d2c8 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 18 Aug 2013 17:56:41 -0400
Subject: renamed .remaining-height to .stretch #244 #490 #561
---
css/reveal.css | 4 ++--
css/reveal.min.css | 2 +-
js/reveal.js | 10 +++++-----
js/reveal.min.js | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
(limited to 'js/reveal.js')
diff --git a/css/reveal.css b/css/reveal.css
index 22cb687..a5a0612 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -318,7 +318,7 @@ body {
max-height: 400px;
word-wrap: normal;
}
-.reveal pre.remaining-height code {
+.reveal pre.stretch code {
height: 100%;
max-height: 100%;
@@ -355,7 +355,7 @@ body {
vertical-align: top;
}
-.reveal .remaining-height {
+.reveal .stretch {
max-width: none;
max-height: none;
}
diff --git a/css/reveal.min.css b/css/reveal.min.css
index 68563a2..92ac022 100644
--- a/css/reveal.min.css
+++ b/css/reveal.min.css
@@ -4,4 +4,4 @@
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
- */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal pre.remaining-height code{height:100%;max-height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .remaining-height{max-width:none;max-height:none}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;top:-300px!important;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;top:0!important;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
+ */ html,body,.reveal div,.reveal span,.reveal applet,.reveal object,.reveal iframe,.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6,.reveal p,.reveal blockquote,.reveal pre,.reveal a,.reveal abbr,.reveal acronym,.reveal address,.reveal big,.reveal cite,.reveal code,.reveal del,.reveal dfn,.reveal em,.reveal img,.reveal ins,.reveal kbd,.reveal q,.reveal s,.reveal samp,.reveal small,.reveal strike,.reveal strong,.reveal sub,.reveal sup,.reveal tt,.reveal var,.reveal b,.reveal u,.reveal i,.reveal center,.reveal dl,.reveal dt,.reveal dd,.reveal ol,.reveal ul,.reveal li,.reveal fieldset,.reveal form,.reveal label,.reveal legend,.reveal table,.reveal caption,.reveal tbody,.reveal tfoot,.reveal thead,.reveal tr,.reveal th,.reveal td,.reveal article,.reveal aside,.reveal canvas,.reveal details,.reveal embed,.reveal figure,.reveal figcaption,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal output,.reveal ruby,.reveal section,.reveal summary,.reveal time,.reveal mark,.reveal audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.reveal article,.reveal aside,.reveal details,.reveal figcaption,.reveal figure,.reveal footer,.reveal header,.reveal hgroup,.reveal menu,.reveal nav,.reveal section{display:block}html,body{width:100%;height:100%;overflow:hidden}body{position:relative;line-height:1}::selection{background:#FF5E99;color:#fff;text-shadow:none}.reveal h1,.reveal h2,.reveal h3,.reveal h4,.reveal h5,.reveal h6{-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;word-wrap:break-word;line-height:1}.reveal h1{font-size:3.77em}.reveal h2{font-size:2.11em}.reveal h3{font-size:1.55em}.reveal h4{font-size:1em}.reveal .slides section .fragment{opacity:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .slides section .fragment.visible{opacity:1}.reveal .slides section .fragment.grow{opacity:1}.reveal .slides section .fragment.grow.visible{-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-ms-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3)}.reveal .slides section .fragment.shrink{opacity:1}.reveal .slides section .fragment.shrink.visible{-webkit-transform:scale(0.7);-moz-transform:scale(0.7);-ms-transform:scale(0.7);-o-transform:scale(0.7);transform:scale(0.7)}.reveal .slides section .fragment.zoom-in{opacity:0;-webkit-transform:scale(0.1);-moz-transform:scale(0.1);-ms-transform:scale(0.1);-o-transform:scale(0.1);transform:scale(0.1)}.reveal .slides section .fragment.zoom-in.visible{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.reveal .slides section .fragment.roll-in{opacity:0;-webkit-transform:rotateX(90deg);-moz-transform:rotateX(90deg);-ms-transform:rotateX(90deg);-o-transform:rotateX(90deg);transform:rotateX(90deg)}.reveal .slides section .fragment.roll-in.visible{opacity:1;-webkit-transform:rotateX(0);-moz-transform:rotateX(0);-ms-transform:rotateX(0);-o-transform:rotateX(0);transform:rotateX(0)}.reveal .slides section .fragment.fade-out{opacity:1}.reveal .slides section .fragment.fade-out.visible{opacity:0}.reveal .slides section .fragment.semi-fade-out{opacity:1}.reveal .slides section .fragment.semi-fade-out.visible{opacity:.5}.reveal .slides section .fragment.highlight-red,.reveal .slides section .fragment.highlight-green,.reveal .slides section .fragment.highlight-blue{opacity:1}.reveal .slides section .fragment.highlight-red.visible{color:#ff2c2d}.reveal .slides section .fragment.highlight-green.visible{color:#17ff2e}.reveal .slides section .fragment.highlight-blue.visible{color:#1b91ff}.reveal:after{content:'';font-style:italic}.reveal iframe{z-index:1}.reveal img,.reveal video,.reveal iframe{max-width:95%;max-height:95%}.reveal a{position:relative}.reveal strong,.reveal b{font-weight:700}.reveal em,.reveal i{font-style:italic}.reveal ol,.reveal ul{display:inline-block;text-align:left;margin:0 0 0 1em}.reveal ol{list-style-type:decimal}.reveal ul{list-style-type:disc}.reveal ul ul{list-style-type:square}.reveal ul ul ul{list-style-type:circle}.reveal ul ul,.reveal ul ol,.reveal ol ol,.reveal ol ul{display:block;margin-left:40px}.reveal p{margin-bottom:10px;line-height:1.2em}.reveal q,.reveal blockquote{quotes:none}.reveal blockquote{display:block;position:relative;width:70%;margin:5px auto;padding:5px;font-style:italic;background:rgba(255,255,255,.05);box-shadow:0 0 2px rgba(0,0,0,.2)}.reveal blockquote p:first-child,.reveal blockquote p:last-child{display:inline-block}.reveal q{font-style:italic}.reveal pre{display:block;position:relative;width:90%;margin:15px auto;text-align:left;font-size:.55em;font-family:monospace;line-height:1.2em;word-wrap:break-word;box-shadow:0 0 6px rgba(0,0,0,.3)}.reveal code{font-family:monospace}.reveal pre code{padding:5px;overflow:auto;max-height:400px;word-wrap:normal}.reveal pre.stretch code{height:100%;max-height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal table th,.reveal table td{text-align:left;padding-right:.3em}.reveal table th{text-shadow:#fff 1px 1px 2px}.reveal sup{vertical-align:super}.reveal sub{vertical-align:sub}.reveal small{display:inline-block;font-size:.6em;line-height:1.2em;vertical-align:top}.reveal small *{vertical-align:top}.reveal .stretch{max-width:none;max-height:none}.reveal .controls{display:none;position:fixed;width:110px;height:110px;z-index:30;right:10px;bottom:10px}.reveal .controls div{position:absolute;opacity:.05;width:0;height:0;border:12px solid transparent;-moz-transform:scale(.9999);-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.reveal .controls div.enabled{opacity:.7;cursor:pointer}.reveal .controls div.enabled:active{margin-top:1px}.reveal .controls div.navigate-left{top:42px;border-right-width:22px;border-right-color:#eee}.reveal .controls div.navigate-left.fragmented{opacity:.3}.reveal .controls div.navigate-right{left:74px;top:42px;border-left-width:22px;border-left-color:#eee}.reveal .controls div.navigate-right.fragmented{opacity:.3}.reveal .controls div.navigate-up{left:42px;border-bottom-width:22px;border-bottom-color:#eee}.reveal .controls div.navigate-up.fragmented{opacity:.3}.reveal .controls div.navigate-down{left:42px;top:74px;border-top-width:22px;border-top-color:#eee}.reveal .controls div.navigate-down.fragmented{opacity:.3}.reveal .progress{position:fixed;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10}.reveal .progress:after{content:'';display:'block';position:absolute;height:20px;width:100%;top:-20px}.reveal .progress span{display:block;height:100%;width:0;-webkit-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:width 800ms cubic-bezier(0.26,.86,.44,.985);transition:width 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal{position:relative;width:100%;height:100%;-ms-touch-action:none}.reveal .slides{position:absolute;width:100%;height:100%;left:50%;top:50%;overflow:visible;z-index:1;text-align:center;-webkit-transition:-webkit-perspective .4s ease;-moz-transition:-moz-perspective .4s ease;-ms-transition:-ms-perspective .4s ease;-o-transition:-o-perspective .4s ease;transition:perspective .4s ease;-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;-webkit-perspective-origin:0 -100px;-moz-perspective-origin:0 -100px;-ms-perspective-origin:0 -100px;perspective-origin:0 -100px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;padding:20px 0;z-index:10;line-height:1.2em;font-weight:400;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:-webkit-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-webkit-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:-moz-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-moz-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:-ms-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-ms-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);-o-transition:-o-transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),-o-transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985);transition:transform-origin 800ms cubic-bezier(0.26,.86,.44,.985),transform 800ms cubic-bezier(0.26,.86,.44,.985),visibility 800ms cubic-bezier(0.26,.86,.44,.985),opacity 800ms cubic-bezier(0.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow] .slides section{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides section[data-transition-speed=fast]{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal .slides section[data-transition-speed=slow]{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal .slides>section{left:-50%;top:-50%}.reveal .slides>section.stack{padding-top:0;padding-bottom:0}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:auto!important}.reveal .slides>section[data-transition=default].past,.reveal .slides>section.past{display:block;opacity:0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section.future{display:block;opacity:0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section.past{display:block;opacity:0;-webkit-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-moz-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);-ms-transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0);transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section.future{display:block;opacity:0;-webkit-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-moz-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);-ms-transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0);transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides>section[data-transition=concave].past,.reveal.concave .slides>section.past{-webkit-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0);transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal.concave .slides>section.future{-webkit-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0);transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal.concave .slides>section>section.past{-webkit-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-moz-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);-ms-transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0);transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal.concave .slides>section>section.future{-webkit-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-moz-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);-ms-transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0);transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides>section[data-transition=zoom].past,.reveal.zoom .slides>section.past{opacity:0;visibility:hidden;-webkit-transform:scale(16);-moz-transform:scale(16);-ms-transform:scale(16);-o-transform:scale(16);transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal.zoom .slides>section.future{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);-o-transform:scale(0.2);transform:scale(0.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal.zoom .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=zoom].future,.reveal.zoom .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.linear section{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.reveal .slides>section[data-transition=linear].past,.reveal.linear .slides>section.past{-webkit-transform:translate(-150%,0);-moz-transform:translate(-150%,0);-ms-transform:translate(-150%,0);-o-transform:translate(-150%,0);transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal.linear .slides>section.future{-webkit-transform:translate(150%,0);-moz-transform:translate(150%,0);-ms-transform:translate(150%,0);-o-transform:translate(150%,0);transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal.linear .slides>section>section.past{-webkit-transform:translate(0,-150%);-moz-transform:translate(0,-150%);-ms-transform:translate(0,-150%);-o-transform:translate(0,-150%);transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal.linear .slides>section>section.future{-webkit-transform:translate(0,150%);-moz-transform:translate(0,150%);-ms-transform:translate(0,150%);-o-transform:translate(0,150%);transform:translate(0,150%)}.reveal.cube .slides{-webkit-perspective:1300px;-moz-perspective:1300px;-ms-perspective:1300px;perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.center.cube .slides section{min-height:auto}.reveal.cube .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg);-moz-transform:translateZ(-90px) rotateX(65deg);-ms-transform:translateZ(-90px) rotateX(65deg);-o-transform:translateZ(-90px) rotateX(65deg);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0}.reveal.cube .slides>section.past{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(-100%,0,0) rotateY(-90deg);-moz-transform:translate3d(-100%,0,0) rotateY(-90deg);-ms-transform:translate3d(-100%,0,0) rotateY(-90deg);transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(100%,0,0) rotateY(90deg);-moz-transform:translate3d(100%,0,0) rotateY(90deg);-ms-transform:translate3d(100%,0,0) rotateY(90deg);transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,-100%,0) rotateX(90deg);-moz-transform:translate3d(0,-100%,0) rotateX(90deg);-ms-transform:translate3d(0,-100%,0) rotateX(90deg);transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,100%,0) rotateX(-90deg);-moz-transform:translate3d(0,100%,0) rotateX(-90deg);-ms-transform:translate3d(0,100%,0) rotateX(-90deg);transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{-webkit-perspective-origin:0 50%;-moz-perspective-origin:0 50%;-ms-perspective-origin:0 50%;perspective-origin:0 50%;-webkit-perspective:3000px;-moz-perspective:3000px;-ms-perspective:3000px;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:'';position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);-webkit-transform:translateZ(-20px);-moz-transform:translateZ(-20px);-ms-transform:translateZ(-20px);-o-transform:translateZ(-20px);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:'';position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0}.reveal.page .slides>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(-40%,0,0) rotateY(-80deg);-moz-transform:translate3d(-40%,0,0) rotateY(-80deg);-ms-transform:translate3d(-40%,0,0) rotateY(-80deg);transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translate3d(0,-40%,0) rotateX(80deg);-moz-transform:translate3d(0,-40%,0) rotateX(80deg);-ms-transform:translate3d(0,-40%,0) rotateX(80deg);transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section,.reveal.fade .slides>section>section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section,.reveal.fade.exit-overview .slides section,.reveal.fade.exit-overview .slides>section>section{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal.overview .slides{-webkit-perspective-origin:0 0;-moz-perspective-origin:0 0;-ms-perspective-origin:0 0;perspective-origin:0 0;-webkit-perspective:700px;-moz-perspective:700px;-ms-perspective:700px;perspective:700px}.reveal.overview .slides section{height:600px;top:-300px!important;overflow:hidden;opacity:1!important;visibility:visible!important;cursor:pointer;background:rgba(0,0,0,.1)}.reveal.overview .slides section .fragment{opacity:1}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides section>section{opacity:1;cursor:pointer}.reveal.overview .slides section:hover{background:rgba(0,0,0,.3)}.reveal.overview .slides section.present{background:rgba(0,0,0,.3)}.reveal.overview .slides>section.stack{padding:0;top:0!important;background:0;overflow:visible}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-ms-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.no-transforms{overflow-y:auto}.no-transforms .reveal .slides{position:relative;width:80%;height:auto!important;top:0;left:50%;margin:0;text-align:center}.no-transforms .reveal .controls,.no-transforms .reveal .progress{display:none!important}.no-transforms .reveal .slides section{display:block!important;opacity:1!important;position:relative!important;height:auto;min-height:auto;top:0;left:-50%;margin:70px 0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.no-transforms .reveal .slides section section{left:0}.reveal .no-transition,.reveal .no-transition *{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important}.reveal .state-background{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0);-webkit-transition:background 800ms ease;-moz-transition:background 800ms ease;-ms-transition:background 800ms ease;-o-transition:background 800ms ease;transition:background 800ms ease}.alert .reveal .state-background{background:rgba(200,50,30,.6)}.soothe .reveal .state-background{background:rgba(50,200,90,.4)}.blackout .reveal .state-background{background:rgba(0,0,0,.6)}.whiteout .reveal .state-background{background:rgba(255,255,255,.6)}.cobalt .reveal .state-background{background:rgba(22,152,213,.6)}.mint .reveal .state-background{background:rgba(22,213,75,.6)}.submerge .reveal .state-background{background:rgba(12,25,77,.6)}.lila .reveal .state-background{background:rgba(180,50,140,.6)}.sunset .reveal .state-background{background:rgba(255,122,0,.6)}.reveal>.backgrounds{position:absolute;width:100%;height:100%}.reveal .slide-background{position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;background-color:rgba(0,0,0,0);background-position:50% 50%;background-repeat:no-repeat;background-size:cover;-webkit-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-moz-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-ms-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);-o-transition:all 600ms cubic-bezier(0.26,.86,.44,.985);transition:all 600ms cubic-bezier(0.26,.86,.44,.985)}.reveal .slide-background.present{opacity:1;visibility:visible}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal[data-background-transition=none]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=none]{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.reveal[data-background-transition=slide]>.backgrounds .slide-background,.reveal>.backgrounds .slide-background[data-background-transition=slide]{opacity:1;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:800ms;-moz-transition-duration:800ms;-ms-transition-duration:800ms;-o-transition-duration:800ms;transition-duration:800ms}.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,.reveal>.backgrounds .slide-background.past[data-background-transition=slide]{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,.reveal>.backgrounds .slide-background.future[data-background-transition=slide]{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide]{-webkit-transform:translate(0,-100%);-moz-transform:translate(0,-100%);-ms-transform:translate(0,-100%);-o-transform:translate(0,-100%);transform:translate(0,-100%)}.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide]{-webkit-transform:translate(0,100%);-moz-transform:translate(0,100%);-ms-transform:translate(0,100%);-o-transform:translate(0,100%);transform:translate(0,100%)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{-webkit-transition-duration:400ms;-moz-transition-duration:400ms;-ms-transition-duration:400ms;transition-duration:400ms}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{-webkit-transition-duration:1200ms;-moz-transition-duration:1200ms;-ms-transition-duration:1200ms;transition-duration:1200ms}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl pre,.reveal.rtl code{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{float:right}.reveal .preview-link-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.visible{opacity:1;visibility:visible}.reveal .preview-link-overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay header{position:absolute;left:0;top:0;width:100%;height:40px;z-index:2;border-bottom:1px solid #222}.reveal .preview-link-overlay header a{display:inline-block;width:40px;height:40px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal .preview-link-overlay header a:hover{opacity:1}.reveal .preview-link-overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal .preview-link-overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal .preview-link-overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal .preview-link-overlay .viewport{position:absolute;top:40px;right:0;bottom:0;left:0}.reveal .preview-link-overlay .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.reveal .preview-link-overlay.loaded .viewport iframe{opacity:1;visibility:visible}.reveal .preview-link-overlay.loaded .spinner{opacity:0;visibility:hidden;-webkit-transform:scale(0.2);-moz-transform:scale(0.2);-ms-transform:scale(0.2);transform:scale(0.2)}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;-webkit-perspective:400px;-moz-perspective:400px;-ms-perspective:400px;perspective:400px;-webkit-perspective-origin:50% 50%;-moz-perspective-origin:50% 50%;-ms-perspective-origin:50% 50%;perspective-origin:50% 50%}.reveal .roll:hover{background:0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;-ms-transition:all 400ms ease;transition:all 400ms ease;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);-webkit-transform:translate3d(0px,0,-45px) rotateX(90deg);-moz-transform:translate3d(0px,0,-45px) rotateX(90deg);-ms-transform:translate3d(0px,0,-45px) rotateX(90deg);transform:translate3d(0px,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:50% 0;-moz-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:translate3d(0px,110%,0) rotateX(-90deg);-moz-transform:translate3d(0px,110%,0) rotateX(-90deg);-ms-transform:translate3d(0px,110%,0) rotateX(-90deg);transform:translate3d(0px,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.zoomed .reveal *,.zoomed .reveal :before,.zoomed .reveal :after{-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}.zoomed .reveal .progress,.zoomed .reveal .controls{opacity:0}.zoomed .reveal .roll span{background:0}.zoomed .reveal .roll span:after{visibility:hidden}
\ No newline at end of file
diff --git a/js/reveal.js b/js/reveal.js
index 257c8c2..46da532 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1001,6 +1001,9 @@ var Reveal = (function(){
slideHeight = config.height,
slidePadding = 20; // TODO Dig this out of DOM
+ // Layout the contents of the slides
+ layoutSlideContents( config.width, config.height, slidePadding );
+
// Slide width may be a percentage of available width
if( typeof slideWidth === 'string' && /%$/.test( slideWidth ) ) {
slideWidth = parseInt( slideWidth, 10 ) / 100 * availableWidth;
@@ -1014,9 +1017,6 @@ var Reveal = (function(){
dom.slides.style.width = slideWidth + 'px';
dom.slides.style.height = slideHeight + 'px';
- // Layout the contents of the slides
- layoutSlideContents( config.width, config.height, slidePadding );
-
// Determine scale of content to fit within available space
scale = Math.min( availableWidth / slideWidth, availableHeight / slideHeight );
@@ -1073,8 +1073,8 @@ var Reveal = (function(){
*/
function layoutSlideContents( width, height, padding ) {
- // Handle sizing of elements with the 'remaining-height' class
- toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
+ // Handle sizing of elements with the 'stretch' class
+ toArray( dom.slides.querySelectorAll( 'section > .stretch' ) ).forEach( function( element ) {
// Determine how much vertical space we can use
var remainingHeight = getRemainingHeight( element, ( height - ( padding * 2 ) ) );
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 2a93983..f1e20ab 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-18, 17:50)
+ * reveal.js 2.5.0 (2013-08-18, 17:55)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Ht||Rt?(window.addEventListener("load",T,!1),d(Wt,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Rt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,w("ready",{indexh:Pt,indexv:Dt,currentSlide:It})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=h()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),Rt===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?L():E(),Wt.previewLinks?k():(S(),k("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function L(){if(Rt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function A(e){q(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function q(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if($t.wrapper&&!h()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height,o=20;"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",M(Wt.width,Wt.height,o),Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var a=f(document.querySelectorAll(Xt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Wt.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}K()}}function M(e,t,n){f($t.slides.querySelectorAll("section > .remaining-height")).forEach(function(r){var o=m(r,t-2*n);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth,i=r.naturalHeight,s=Math.min(e/a,o/i);r.style.width=a*s+"px",r.style.height=i*s+"px"}else r.style.width=e+"px",r.style.height=o+"px"})}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Gt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),T(),e||w("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:It})},10)}}function C(){if(Wt.overview){clearTimeout(Qt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),w("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:It})}}function I(e){"boolean"==typeof e?e?D():C():R()?C():D()}function R(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:It,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&w("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&w("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=It;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt||0,s=Dt||0;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),T();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),w(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());R()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(It=v[Dt]||d,n!==void 0){var p=x(It.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?w("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:It,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),Q(It)),$(),K(),V(),et()}function j(){u(),l(),T(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=R()?10:Wt.viewDistance;Yt&&(o=R()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=B(),t=Z();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),It&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(It)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function B(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(It&&Wt.fragments){var e=It.querySelectorAll(".fragment"),t=It.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(et,e);else{var t="/";It&&"string"==typeof It.getAttribute("id")?t="/"+It.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&It){var s=It.querySelectorAll(".fragment").length>0;if(s){var c=It.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Bt),!Ft||U()||R()||(Bt=setTimeout(dt,Ft))}function at(){clearTimeout(Bt)}function it(){Wt.rtl?(R()||nt()===!1)&&B().left&&W(Pt+1):(R()||rt()===!1)&&B().left&&W(Pt-1)}function st(){Wt.rtl?(R()||rt()===!1)&&B().right&&W(Pt-1):(R()||nt()===!1)&&B().right&&W(Pt+1)}function ct(){(R()||rt()===!1)&&B().up&&W(Pt,Dt-1)}function lt(){(R()||nt()===!1)&&B().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(B().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(B().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:R()?C():e.shiftKey?ut():dt();break;case 13:R()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Rt||(I(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(It))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){T()}function Mt(e){if(Jt&&R()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Pt,Dt,Ct,It,Rt,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Bt=0,Zt=0,Qt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:T,availableRoutes:B,availableFragments:Z,toggleOverview:I,togglePause:z,isOverview:R,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return It},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return It&&It.classList.contains(".stack")?null==It.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Ht||Rt?(window.addEventListener("load",T,!1),d(Wt,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Rt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,w("ready",{indexh:Pt,indexv:Dt,currentSlide:It})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=h()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),Rt===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?L():E(),Wt.previewLinks?k():(S(),k("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function L(){if(Rt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function A(e){q(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function q(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if($t.wrapper&&!h()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height,o=20;M(Wt.width,Wt.height,o),"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var a=f(document.querySelectorAll(Xt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Wt.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}K()}}function M(e,t,n){f($t.slides.querySelectorAll("section > .stretch")).forEach(function(r){var o=m(r,t-2*n);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth,i=r.naturalHeight,s=Math.min(e/a,o/i);r.style.width=a*s+"px",r.style.height=i*s+"px"}else r.style.width=e+"px",r.style.height=o+"px"})}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Gt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),T(),e||w("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:It})},10)}}function C(){if(Wt.overview){clearTimeout(Qt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),w("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:It})}}function I(e){"boolean"==typeof e?e?D():C():R()?C():D()}function R(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:It,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&w("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&w("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=It;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt||0,s=Dt||0;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),T();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),w(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());R()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(It=v[Dt]||d,n!==void 0){var p=x(It.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?w("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:It,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),Q(It)),$(),K(),V(),et()}function j(){u(),l(),T(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=R()?10:Wt.viewDistance;Yt&&(o=R()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=B(),t=Z();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),It&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(It)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function B(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(It&&Wt.fragments){var e=It.querySelectorAll(".fragment"),t=It.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(et,e);else{var t="/";It&&"string"==typeof It.getAttribute("id")?t="/"+It.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&It){var s=It.querySelectorAll(".fragment").length>0;if(s){var c=It.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Bt),!Ft||U()||R()||(Bt=setTimeout(dt,Ft))}function at(){clearTimeout(Bt)}function it(){Wt.rtl?(R()||nt()===!1)&&B().left&&W(Pt+1):(R()||rt()===!1)&&B().left&&W(Pt-1)}function st(){Wt.rtl?(R()||rt()===!1)&&B().right&&W(Pt-1):(R()||nt()===!1)&&B().right&&W(Pt+1)}function ct(){(R()||rt()===!1)&&B().up&&W(Pt,Dt-1)}function lt(){(R()||nt()===!1)&&B().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(B().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(B().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:R()?C():e.shiftKey?ut():dt();break;case 13:R()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Rt||(I(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(It))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){T()}function Mt(e){if(Jt&&R()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Pt,Dt,Ct,It,Rt,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Bt=0,Zt=0,Qt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:T,availableRoutes:B,availableFragments:Z,toggleOverview:I,togglePause:z,isOverview:R,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return It},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return It&&It.classList.contains(".stack")?null==It.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3
From 0a021845dfb28ff1547022d07a8576b8cfa94c5d Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Mon, 19 Aug 2013 23:46:29 -0400
Subject: make sure stretch works with video
---
js/reveal.js | 4 ++--
js/reveal.min.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'js/reveal.js')
diff --git a/js/reveal.js b/js/reveal.js
index 46da532..e7860ff 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1081,8 +1081,8 @@ var Reveal = (function(){
// Consider the aspect ratio of media elements
if( /(img|video)/gi.test( element.nodeName ) ) {
- var nw = element.naturalWidth,
- nh = element.naturalHeight;
+ var nw = element.naturalWidth || element.videoWidth,
+ nh = element.naturalHeight || element.videoHeight;
var es = Math.min( width / nw, remainingHeight / nh );
diff --git a/js/reveal.min.js b/js/reveal.min.js
index f1e20ab..a9d61e8 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -1,8 +1,8 @@
/*!
- * reveal.js 2.5.0 (2013-08-18, 17:55)
+ * reveal.js 2.5.0 (2013-08-19, 23:45)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
-var Reveal=function(){"use strict";function e(e){return t(),Ht||Rt?(window.addEventListener("load",T,!1),d(Wt,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Rt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Wt.dependencies.length;a>o;o++){var i=Wt.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,w("ready",{indexh:Pt,indexv:Dt,currentSlide:It})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Wt.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=h()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Wt.transition),"object"==typeof e&&d(Wt,e),Rt===!1&&(Wt.transition="linear"),$t.wrapper.classList.add(Wt.transition),$t.wrapper.setAttribute("data-transition-speed",Wt.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Wt.backgroundTransition),$t.controls&&($t.controls.style.display=Wt.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Wt.progress&&$t.progress?"block":"none"),Wt.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Wt.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Wt.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Wt.rollingLinks?L():E(),Wt.previewLinks?k():(S(),k("[data-preview-link]")),Wt.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Wt.theme!==r&&(t=t.replace(n,Wt.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Wt.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Wt.keyboard&&document.addEventListener("keydown",ft,!1),Wt.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Wt.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Wt.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function L(){if(Rt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function A(e){q(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function q(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if($t.wrapper&&!h()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Wt.margin,t-=t*Wt.margin;var n=Wt.width,r=Wt.height,o=20;M(Wt.width,Wt.height,o),"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Wt.minScale),Kt=Math.min(Kt,Wt.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var a=f(document.querySelectorAll(Xt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Wt.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}K()}}function M(e,t,n){f($t.slides.querySelectorAll("section > .stretch")).forEach(function(r){var o=m(r,t-2*n);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth,i=r.naturalHeight,s=Math.min(e/a,o/i);r.style.width=a*s+"px",r.style.height=i*s+"px"}else r.style.width=e+"px",r.style.height=o+"px"})}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Wt.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Gt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Wt.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),T(),e||w("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:It})},10)}}function C(){if(Wt.overview){clearTimeout(Qt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}W(Pt,Dt),ot(),w("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:It})}}function I(e){"boolean"==typeof e?e?D():C():R()?C():D()}function R(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:It,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&w("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&w("resumed")}function z(){U()?O():X()}function U(){return $t.wrapper.classList.contains("paused")}function W(e,t,n,r){Ct=It;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt||0,s=Dt||0;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),T();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),w(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());R()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(It=v[Dt]||d,n!==void 0){var p=x(It.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?w("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:It,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Ut).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),Q(It)),$(),K(),V(),et()}function j(){u(),l(),T(),Ft=Wt.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Wt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Wt.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Wt.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=R()?10:Wt.viewDistance;Yt&&(o=R()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function K(){if(Wt.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Wt.controls&&$t.controls){var e=B(),t=Z();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),It&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(It)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Wt.rtl?"future":"past",r=Wt.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function B(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Wt.loop,right:e.length-1>Pt||Wt.loop,up:Dt>0,down:t.length-1>Dt};if(Wt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(It&&Wt.fragments){var e=It.querySelectorAll(".fragment"),t=It.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);W(o.h,o.v)}else W(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&W(a,i)}}function et(e){if(Wt.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(et,e);else{var t="/";It&&"string"==typeof It.getAttribute("id")?t="/"+It.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&It){var s=It.querySelectorAll(".fragment").length>0;if(s){var c=It.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(It&&Wt.fragments){var e=x(It.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Bt),!Ft||U()||R()||(Bt=setTimeout(dt,Ft))}function at(){clearTimeout(Bt)}function it(){Wt.rtl?(R()||nt()===!1)&&B().left&&W(Pt+1):(R()||rt()===!1)&&B().left&&W(Pt-1)}function st(){Wt.rtl?(R()||rt()===!1)&&B().right&&W(Pt-1):(R()||nt()===!1)&&B().right&&W(Pt+1)}function ct(){(R()||rt()===!1)&&B().up&&W(Pt,Dt-1)}function lt(){(R()||nt()===!1)&&B().down&&W(Pt,Dt+1)}function ut(){if(rt()===!1)if(B().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;W(n,t)}}}function dt(){nt()===!1&&(B().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(U()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Wt.keyboard)for(var r in Wt.keyboard)if(parseInt(r,10)===e.keyCode){var o=Wt.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:W(0);break;case 35:W(Number.MAX_VALUE);break;case 32:R()?C():e.shiftKey?ut():dt();break;case 13:R()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Rt||(I(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Wt.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Wt.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Wt.embedded?(en.captured||H(It))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);W(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){T()}function Mt(e){if(Jt&&R()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);W(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Pt,Dt,Ct,It,Rt,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Ut=".reveal .slides>section:first-child",Wt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Bt=0,Zt=0,Qt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:W,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:W,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:T,availableRoutes:B,availableFragments:Z,toggleOverview:I,togglePause:z,isOverview:R,isPaused:U,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return It},getScale:function(){return Kt},getConfig:function(){return Wt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return It&&It.classList.contains(".stack")?null==It.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
+var Reveal=function(){"use strict";function e(e){return t(),Ht||Rt?(window.addEventListener("load",T,!1),d(Ut,e),y(),n(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){Rt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ht="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Yt=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function n(){function e(){n.length&&head.js.apply(null,n),r()}for(var t=[],n=[],o=0,a=Ut.dependencies.length;a>o;o++){var i=Ut.dependencies[o];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function r(){a(),o(),c(),J(),setTimeout(function(){$t.slides.classList.remove("no-transition"),jt=!0,w("ready",{indexh:Pt,indexv:Dt,currentSlide:It})},1)}function o(){var e=f(document.querySelectorAll(Ot));e.forEach(function(e){var t=f(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&e.classList.add("future")})})}function a(){$t.theme=document.querySelector("#theme"),$t.wrapper=document.querySelector(".reveal"),$t.slides=document.querySelector(".reveal .slides"),$t.slides.classList.add("no-transition"),$t.background=i($t.wrapper,"div","backgrounds",null),$t.progress=i($t.wrapper,"div","progress",""),$t.progressbar=$t.progress.querySelector("span"),i($t.wrapper,"aside","controls",''),i($t.wrapper,"div","state-background",null),i($t.wrapper,"div","pause-overlay",null),Ut.controls&&($t.controls=document.querySelector(".reveal .controls"),$t.controlsLeft=f(document.querySelectorAll(".navigate-left")),$t.controlsRight=f(document.querySelectorAll(".navigate-right")),$t.controlsUp=f(document.querySelectorAll(".navigate-up")),$t.controlsDown=f(document.querySelectorAll(".navigate-down")),$t.controlsPrev=f(document.querySelectorAll(".navigate-prev")),$t.controlsNext=f(document.querySelectorAll(".navigate-next")))}function i(e,t,n,r){var o=e.querySelector("."+n);return o||(o=document.createElement(t),o.classList.add(n),null!==r&&(o.innerHTML=r),e.appendChild(o)),o}function s(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}h()&&document.body.classList.add("print-pdf"),$t.background.innerHTML="",$t.background.classList.add("no-transition"),f(document.querySelectorAll(Ot)).forEach(function(t){var n;n=h()?e(t,t):e(t,$t.background),f(t.querySelectorAll("section")).forEach(function(t){h()?e(t,t):e(t,n)})})}function c(e){if($t.wrapper.classList.remove(Ut.transition),"object"==typeof e&&d(Ut,e),Rt===!1&&(Ut.transition="linear"),$t.wrapper.classList.add(Ut.transition),$t.wrapper.setAttribute("data-transition-speed",Ut.transitionSpeed),$t.wrapper.setAttribute("data-background-transition",Ut.backgroundTransition),$t.controls&&($t.controls.style.display=Ut.controls&&$t.controls?"block":"none"),$t.progress&&($t.progress.style.display=Ut.progress&&$t.progress?"block":"none"),Ut.rtl?$t.wrapper.classList.add("rtl"):$t.wrapper.classList.remove("rtl"),Ut.center?$t.wrapper.classList.add("center"):$t.wrapper.classList.remove("center"),Ut.mouseWheel?(document.addEventListener("DOMMouseScroll",bt,!1),document.addEventListener("mousewheel",bt,!1)):(document.removeEventListener("DOMMouseScroll",bt,!1),document.removeEventListener("mousewheel",bt,!1)),Ut.rollingLinks?L():E(),Ut.previewLinks?k():(S(),k("[data-preview-link]")),Ut.theme&&$t.theme){var t=$t.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];Ut.theme!==r&&(t=t.replace(n,Ut.theme),$t.theme.setAttribute("href",t))}j()}function l(){Jt=!0,window.addEventListener("hashchange",xt,!1),window.addEventListener("resize",Tt,!1),Ut.touch&&($t.wrapper.addEventListener("touchstart",vt,!1),$t.wrapper.addEventListener("touchmove",pt,!1),$t.wrapper.addEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.addEventListener("MSPointerDown",mt,!1),$t.wrapper.addEventListener("MSPointerMove",ht,!1),$t.wrapper.addEventListener("MSPointerUp",yt,!1))),Ut.keyboard&&document.addEventListener("keydown",ft,!1),Ut.progress&&$t.progress&&$t.progress.addEventListener("click",wt,!1),Ut.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.addEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.addEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.addEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.addEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.addEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.addEventListener(e,qt,!1)})})}function u(){Jt=!1,document.removeEventListener("keydown",ft,!1),window.removeEventListener("hashchange",xt,!1),window.removeEventListener("resize",Tt,!1),$t.wrapper.removeEventListener("touchstart",vt,!1),$t.wrapper.removeEventListener("touchmove",pt,!1),$t.wrapper.removeEventListener("touchend",gt,!1),window.navigator.msPointerEnabled&&($t.wrapper.removeEventListener("MSPointerDown",mt,!1),$t.wrapper.removeEventListener("MSPointerMove",ht,!1),$t.wrapper.removeEventListener("MSPointerUp",yt,!1)),Ut.progress&&$t.progress&&$t.progress.removeEventListener("click",wt,!1),Ut.controls&&$t.controls&&["touchstart","click"].forEach(function(e){$t.controlsLeft.forEach(function(t){t.removeEventListener(e,Lt,!1)}),$t.controlsRight.forEach(function(t){t.removeEventListener(e,Et,!1)}),$t.controlsUp.forEach(function(t){t.removeEventListener(e,kt,!1)}),$t.controlsDown.forEach(function(t){t.removeEventListener(e,St,!1)}),$t.controlsPrev.forEach(function(t){t.removeEventListener(e,At,!1)}),$t.controlsNext.forEach(function(t){t.removeEventListener(e,qt,!1)})})}function d(e,t){for(var n in t)e[n]=t[n]}function f(e){return Array.prototype.slice.call(e)}function v(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function p(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){var t=0;if(e){var n=0;f(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function m(e,t){if(t=t||0,e){var n=e.parentNode,r=n.childNodes;f(r).forEach(function(n){if("number"==typeof n.offsetHeight&&n!==e){var r=window.getComputedStyle(n),o=parseInt(r.marginTop,10),a=parseInt(r.marginBottom,10);t-=n.offsetHeight+o+a}});var o=window.getComputedStyle(e);t-=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10)}return t}function h(){return/print-pdf/gi.test(window.location.search)}function y(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",b,!1),window.addEventListener("orientationchange",b,!1))}function b(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function w(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),d(n,t),$t.wrapper.dispatchEvent(n)}function L(){if(Rt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(Xt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function E(){for(var e=document.querySelectorAll(Xt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function k(e){var t=f(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Nt,!1)})}function S(){var e=f(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Nt,!1)})}function A(e){q(),$t.preview=document.createElement("div"),$t.preview.classList.add("preview-link-overlay"),$t.wrapper.appendChild($t.preview),$t.preview.innerHTML=["",'','','',"
"].join(""),$t.preview.querySelector("iframe").addEventListener("load",function(){$t.preview.classList.add("loaded")},!1),$t.preview.querySelector(".close").addEventListener("click",function(e){q(),e.preventDefault()},!1),$t.preview.querySelector(".external").addEventListener("click",function(){q()},!1),setTimeout(function(){$t.preview.classList.add("visible")},1)}function q(){$t.preview&&($t.preview.setAttribute("src",""),$t.preview.parentNode.removeChild($t.preview),$t.preview=null)}function x(e){var t=f(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function T(){if($t.wrapper&&!h()){var e=$t.wrapper.offsetWidth,t=$t.wrapper.offsetHeight;e-=t*Ut.margin,t-=t*Ut.margin;var n=Ut.width,r=Ut.height,o=20;M(Ut.width,Ut.height,o),"string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),$t.slides.style.width=n+"px",$t.slides.style.height=r+"px",Kt=Math.min(e/n,t/r),Kt=Math.max(Kt,Ut.minScale),Kt=Math.min(Kt,Ut.maxScale),void 0===$t.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)?p($t.slides,"translate(-50%, -50%) scale("+Kt+") translate(50%, 50%)"):$t.slides.style.zoom=Kt;for(var a=f(document.querySelectorAll(Xt)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=Ut.center?c.classList.contains("stack")?0:Math.max(-(g(c)/2)-o,-r/2)+"px":"")}K()}}function M(e,t,n){f($t.slides.querySelectorAll("section > .stretch")).forEach(function(r){var o=m(r,t-2*n);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth||r.videoWidth,i=r.naturalHeight||r.videoHeight,s=Math.min(e/a,o/i);r.style.width=a*s+"px",r.style.height=i*s+"px"}else r.style.width=e+"px",r.style.height=o+"px"})}function N(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function P(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function D(){if(Ut.overview){at();var e=$t.wrapper.classList.contains("overview"),t=400>window.innerWidth?1e3:2500;$t.wrapper.classList.add("overview"),$t.wrapper.classList.remove("exit-overview"),clearTimeout(Qt),clearTimeout(Gt),Qt=setTimeout(function(){for(var n=document.querySelectorAll(Ot),r=0,o=n.length;o>r;r++){var a=n[r],i=Ut.rtl?-105:105;if(a.setAttribute("data-index-h",r),p(a,"translateZ(-"+t+"px) translate("+(r-Pt)*i+"%, 0%)"),a.classList.contains("stack"))for(var s=a.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var u=r===Pt?Dt:P(a),d=s[c];d.setAttribute("data-index-h",r),d.setAttribute("data-index-v",c),p(d,"translate(0%, "+105*(c-u)+"%)"),d.addEventListener("click",Mt,!0)}else a.addEventListener("click",Mt,!0)}_(),T(),e||w("overviewshown",{indexh:Pt,indexv:Dt,currentSlide:It})},10)}}function C(){if(Ut.overview){clearTimeout(Qt),clearTimeout(Gt),$t.wrapper.classList.remove("overview"),$t.wrapper.classList.add("exit-overview"),Gt=setTimeout(function(){$t.wrapper.classList.remove("exit-overview")},10);for(var e=f(document.querySelectorAll(Xt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",p(r,""),r.removeEventListener("click",Mt,!0)}U(Pt,Dt),ot(),w("overviewhidden",{indexh:Pt,indexv:Dt,currentSlide:It})}}function I(e){"boolean"==typeof e?e?D():C():R()?C():D()}function R(){return $t.wrapper.classList.contains("overview")}function H(e){return e=e?e:It,e&&!!e.parentNode.nodeName.match(/section/i)}function Y(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function X(){var e=$t.wrapper.classList.contains("paused");at(),$t.wrapper.classList.add("paused"),e===!1&&w("paused")}function O(){var e=$t.wrapper.classList.contains("paused");$t.wrapper.classList.remove("paused"),ot(),e&&w("resumed")}function z(){W()?O():X()}function W(){return $t.wrapper.classList.contains("paused")}function U(e,t,n,r){Ct=It;var o=document.querySelectorAll(Ot);void 0===t&&(t=P(o[e])),Ct&&Ct.parentNode&&Ct.parentNode.classList.contains("stack")&&N(Ct.parentNode,Dt);var a=_t.concat();_t.length=0;var i=Pt||0,s=Dt||0;Pt=F(Ot,void 0===e?Pt:e),Dt=F(zt,void 0===t?Dt:t),_(),T();e:for(var c=0,l=_t.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===_t[c]){a.splice(u,1);continue e}document.documentElement.classList.add(_t[c]),w(_t[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());R()&&D();var d=o[Pt],v=d.querySelectorAll("section");if(It=v[Dt]||d,n!==void 0){var p=x(It.querySelectorAll(".fragment"));f(p).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var g=Pt!==i||Dt!==s;g?w("slidechanged",{indexh:Pt,indexv:Dt,previousSlide:Ct,currentSlide:It,origin:r}):Ct=null,Ct&&(Ct.classList.remove("present"),document.querySelector(Wt).classList.contains("present")&&setTimeout(function(){var e,t=f(document.querySelectorAll(Ot+".stack"));for(e in t)t[e]&&N(t[e],0)},0)),g&&(G(Ct),Q(It)),$(),K(),V(),et()}function j(){u(),l(),T(),Ft=Ut.autoSlide,ot(),s(),$(),K(),V()}function F(e,t){var n=f(document.querySelectorAll(e)),r=n.length;if(r){Ut.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o],i=Ut.rtl&&!H(a);if(a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o)a.classList.add(i?"future":"past");else if(o>t){a.classList.add(i?"past":"future");for(var s=f(a.querySelectorAll(".fragment.visible"));s.length;)s.pop().classList.remove("visible")}a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(_t=_t.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");Ft=l?parseInt(l,10):Ut.autoSlide,ot()}else t=0;return t}function _(){var e,t,n=f(document.querySelectorAll(Ot)),r=n.length;if(r){var o=R()?10:Ut.viewDistance;Yt&&(o=R()?6:1);for(var a=0;r>a;a++){var i=n[a],s=f(i.querySelectorAll("section")),c=s.length;if(e=Math.abs((Pt-a)%(r-o))||0,i.style.display=e>o?"none":"block",c)for(var l=P(i),u=0;c>u;u++){var d=s[u];t=a===Pt?Math.abs(Dt-u):Math.abs(u-l),d.style.display=e+t>o?"none":"block"}}}}function K(){if(Ut.progress&&$t.progress){var e=f(document.querySelectorAll(Ot)),t=document.querySelectorAll(Xt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=f(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}$t.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function $(){if(Ut.controls&&$t.controls){var e=B(),t=Z();$t.controlsLeft.concat($t.controlsRight).concat($t.controlsUp).concat($t.controlsDown).concat($t.controlsPrev).concat($t.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&$t.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&$t.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&$t.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&$t.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&$t.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&$t.controlsNext.forEach(function(e){e.classList.add("enabled")}),It&&(t.prev&&$t.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),H(It)?(t.prev&&$t.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&$t.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&$t.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function V(){f($t.background.childNodes).forEach(function(e,t){var n=Ut.rtl?"future":"past",r=Ut.rtl?"past":"future";e.className="slide-background "+(Pt>t?n:t>Pt?r:"present"),f(e.childNodes).forEach(function(e,t){e.className="slide-background "+(Dt>t?"past":t>Dt?"future":"present")})}),setTimeout(function(){$t.background.classList.remove("no-transition")},1)}function B(){var e=document.querySelectorAll(Ot),t=document.querySelectorAll(zt),n={left:Pt>0||Ut.loop,right:e.length-1>Pt||Ut.loop,up:Dt>0,down:t.length-1>Dt};if(Ut.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function Z(){if(It&&Ut.fragments){var e=It.querySelectorAll(".fragment"),t=It.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function Q(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function G(e){e&&(f(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),f(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function J(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);U(o.h,o.v)}else U(Pt||0,Dt||0)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;(a!==Pt||i!==Dt)&&U(a,i)}}function et(e){if(Ut.history)if(clearTimeout(Zt),"number"==typeof e)Zt=setTimeout(et,e);else{var t="/";It&&"string"==typeof It.getAttribute("id")?t="/"+It.getAttribute("id"):((Pt>0||Dt>0)&&(t+=Pt),Dt>0&&(t+="/"+Dt)),window.location.hash=t}}function tt(e){var t,n=Pt,r=Dt;if(e){var o=H(e),a=o?e.parentNode:e,i=f(document.querySelectorAll(Ot));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(f(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&It){var s=It.querySelectorAll(".fragment").length>0;if(s){var c=It.querySelectorAll(".fragment.visible");t=c.length}}return{h:n,v:r,f:t}}function nt(){if(It&&Ut.fragments){var e=x(It.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.add("visible")}),w("fragmentshown",{fragment:e[0],fragments:e}),$(),!0}}return!1}function rt(){if(It&&Ut.fragments){var e=x(It.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=It.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),f(e).forEach(function(e){e.classList.remove("visible")}),w("fragmenthidden",{fragment:e[0],fragments:e}),$(),!0}}return!1}function ot(){clearTimeout(Bt),!Ft||W()||R()||(Bt=setTimeout(dt,Ft))}function at(){clearTimeout(Bt)}function it(){Ut.rtl?(R()||nt()===!1)&&B().left&&U(Pt+1):(R()||rt()===!1)&&B().left&&U(Pt-1)}function st(){Ut.rtl?(R()||rt()===!1)&&B().right&&U(Pt-1):(R()||nt()===!1)&&B().right&&U(Pt+1)}function ct(){(R()||rt()===!1)&&B().up&&U(Pt,Dt-1)}function lt(){(R()||nt()===!1)&&B().down&&U(Pt,Dt+1)}function ut(){if(rt()===!1)if(B().up)ct();else{var e=document.querySelector(Ot+".past:nth-child("+Pt+")");if(e){var t=e.querySelectorAll("section").length-1||void 0,n=Pt-1;U(n,t)}}}function dt(){nt()===!1&&(B().down?lt():st()),ot()}function ft(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){if(W()&&-1===[66,190,191].indexOf(e.keyCode))return!1;var n=!1;if("object"==typeof Ut.keyboard)for(var r in Ut.keyboard)if(parseInt(r,10)===e.keyCode){var o=Ut.keyboard[r];"function"==typeof o?o.apply(null,[e]):"string"==typeof o&&"function"==typeof Reveal[o]&&Reveal[o].call(),n=!0}if(n===!1)switch(n=!0,e.keyCode){case 80:case 33:ut();break;case 78:case 34:dt();break;case 72:case 37:it();break;case 76:case 39:st();break;case 75:case 38:ct();break;case 74:case 40:lt();break;case 36:U(0);break;case 35:U(Number.MAX_VALUE);break;case 32:R()?C():e.shiftKey?ut():dt();break;case 13:R()?C():n=!1;break;case 66:case 190:case 191:z();break;case 70:Y();break;default:n=!1}n?e.preventDefault():27!==e.keyCode&&79!==e.keyCode||!Rt||(I(),e.preventDefault()),ot()}}function vt(e){en.startX=e.touches[0].clientX,en.startY=e.touches[0].clientY,en.startCount=e.touches.length,2===e.touches.length&&Ut.overview&&(en.startSpan=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY}))}function pt(e){if(en.captured)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===en.startCount&&Ut.overview){var r=v({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:en.startX,y:en.startY});Math.abs(en.startSpan-r)>en.threshold&&(en.captured=!0,en.startSpan>r?D():C()),e.preventDefault()}else if(1===e.touches.length&&2!==en.startCount){var o=t-en.startX,a=n-en.startY;o>en.threshold&&Math.abs(o)>Math.abs(a)?(en.captured=!0,it()):-en.threshold>o&&Math.abs(o)>Math.abs(a)?(en.captured=!0,st()):a>en.threshold?(en.captured=!0,ct()):-en.threshold>a&&(en.captured=!0,lt()),Ut.embedded?(en.captured||H(It))&&e.preventDefault():e.preventDefault()}}}function gt(){en.captured=!1}function mt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],vt(e))}function ht(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],pt(e))}function yt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],gt(e))}function bt(e){if(Date.now()-Vt>600){Vt=Date.now();var t=e.detail||-e.wheelDelta;t>0?dt():ut()}}function wt(e){e.preventDefault();var t=f(document.querySelectorAll(Ot)).length,n=Math.floor(e.clientX/$t.wrapper.offsetWidth*t);U(n)}function Lt(e){e.preventDefault(),it()}function Et(e){e.preventDefault(),st()}function kt(e){e.preventDefault(),ct()}function St(e){e.preventDefault(),lt()}function At(e){e.preventDefault(),ut()}function qt(e){e.preventDefault(),dt()}function xt(){J()}function Tt(){T()}function Mt(e){if(Jt&&R()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(C(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);U(n,r)}}}function Nt(e){var t=e.target.getAttribute("href");t&&(A(t),e.preventDefault())}var Pt,Dt,Ct,It,Rt,Ht,Yt,Xt=".reveal .slides section",Ot=".reveal .slides>section",zt=".reveal .slides>section.present>section",Wt=".reveal .slides>section:first-child",Ut={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,embedded:!1,autoSlide:0,mouseWheel:!1,rollingLinks:!1,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",viewDistance:3,dependencies:[]},jt=!1,Ft=0,_t=[],Kt=1,$t={},Vt=0,Bt=0,Zt=0,Qt=0,Gt=0,Jt=!1,en={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40};return{initialize:e,configure:c,sync:j,slide:U,left:it,right:st,up:ct,down:lt,prev:ut,next:dt,prevFragment:rt,nextFragment:nt,navigateTo:U,navigateLeft:it,navigateRight:st,navigateUp:ct,navigateDown:lt,navigatePrev:ut,navigateNext:dt,layout:T,availableRoutes:B,availableFragments:Z,toggleOverview:I,togglePause:z,isOverview:R,isPaused:W,addEventListeners:l,removeEventListeners:u,getIndices:tt,getSlide:function(e,t){var n=document.querySelectorAll(Ot)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return Ct},getCurrentSlide:function(){return It},getScale:function(){return Kt},getConfig:function(){return Ut},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(Xt+".past")?!0:!1},isLastSlide:function(){return It&&It.classList.contains(".stack")?null==It.querySelector(Xt+".future")?!0:!1:null==document.querySelector(Xt+".future")?!0:!1},isReady:function(){return jt},addEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&($t.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();
\ No newline at end of file
--
cgit v1.2.3