1
0
Fork 0
why-cant-we-deploy-today/js/reveal.min.js

8 lines
22 KiB
JavaScript

/*!
* reveal.js 2.5.0 (2013-06-04, 19: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 Nt||Pt?(window.addEventListener("load",g,!1),l(St,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Mt.theme=document.querySelector("#theme"),Mt.wrapper=document.querySelector(".reveal"),Mt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .background")||(Mt.background=document.createElement("div"),Mt.background.classList.add("background"),Mt.wrapper.appendChild(Mt.background)),!Mt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",Mt.wrapper.appendChild(e)}if(!Mt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>',Mt.wrapper.appendChild(t)}if(!Mt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Mt.wrapper.appendChild(n)}if(!Mt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Mt.wrapper.appendChild(r)}Mt.progress=document.querySelector(".reveal .progress"),Mt.progressbar=document.querySelector(".reveal .progress span"),St.controls&&(Mt.controls=document.querySelector(".reveal .controls"),Mt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Mt.controlsRight=d(document.querySelectorAll(".navigate-right")),Mt.controlsUp=d(document.querySelectorAll(".navigate-up")),Mt.controlsDown=d(document.querySelectorAll(".navigate-down")),Mt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Mt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n=e.getAttribute("data-background"),r=document.createElement("div");return n&&(/\.(png|jpg|jpeg|gif|bmp|)$/gi.test(n)?r.style.backgroundImage="url("+n+")":r.style.background=n),t.appendChild(r),r}Mt.background.innerHTML="",Mt.background.classList.add("no-transition"),d(document.querySelectorAll(Lt)).forEach(function(t){var n=e(t,Mt.background);d(t.querySelectorAll("section")).forEach(function(t){e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",f,!1),window.addEventListener("orientationchange",f,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=St.dependencies.length;o>r;r++){var s=St.dependencies[r];(!s.condition||s.condition())&&(s.async?n.push(s.src):t.push(s.src),"function"==typeof s.callback&&head.ready(s.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],s.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),s(),W(),setTimeout(function(){v("ready",{indexh:kt,indexv:qt,currentSlide:yt})},1)}function s(e){if(Mt.wrapper.classList.remove(St.transition),"object"==typeof e&&l(St,e),Pt===!1&&(St.transition="linear"),Mt.wrapper.classList.add(St.transition),Mt.wrapper.setAttribute("data-transition-speed",St.transitionSpeed),Mt.controls&&(Mt.controls.style.display=St.controls&&Mt.controls?"block":"none"),Mt.progress&&(Mt.progress.style.display=St.progress&&Mt.progress?"block":"none"),St.rtl?Mt.wrapper.classList.add("rtl"):Mt.wrapper.classList.remove("rtl"),St.center?Mt.wrapper.classList.add("center"):Mt.wrapper.classList.remove("center"),St.mouseWheel?(document.addEventListener("DOMMouseScroll",st,!1),document.addEventListener("mousewheel",st,!1)):(document.removeEventListener("DOMMouseScroll",st,!1),document.removeEventListener("mousewheel",st,!1)),St.rollingLinks?p():m(),St.theme&&Mt.theme){var t=Mt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];St.theme!==r&&(t=t.replace(n,St.theme),Mt.theme.setAttribute("href",t))}N()}function i(){Xt=!0,window.addEventListener("hashchange",pt,!1),window.addEventListener("resize",mt,!1),St.touch&&(Mt.wrapper.addEventListener("touchstart",et,!1),Mt.wrapper.addEventListener("touchmove",tt,!1),Mt.wrapper.addEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.addEventListener("MSPointerDown",rt,!1),Mt.wrapper.addEventListener("MSPointerMove",ot,!1),Mt.wrapper.addEventListener("MSPointerUp",at,!1))),St.keyboard&&document.addEventListener("keydown",J,!1),St.progress&&Mt.progress&&Mt.progress.addEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.addEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.addEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.addEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.addEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.addEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.addEventListener(e,vt,!1)})})}function c(){Xt=!1,document.removeEventListener("keydown",J,!1),window.removeEventListener("hashchange",pt,!1),window.removeEventListener("resize",mt,!1),Mt.wrapper.removeEventListener("touchstart",et,!1),Mt.wrapper.removeEventListener("touchmove",tt,!1),Mt.wrapper.removeEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.removeEventListener("MSPointerDown",rt,!1),Mt.wrapper.removeEventListener("MSPointerMove",ot,!1),Mt.wrapper.removeEventListener("MSPointerUp",at,!1)),St.progress&&Mt.progress&&Mt.progress.removeEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.removeEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.removeEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.removeEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.removeEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.removeEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.removeEventListener(e,vt,!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(){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 v(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Mt.wrapper.dispatchEvent(n)}function p(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(bt+" 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 m(){for(var e=document.querySelectorAll(bt+" 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 h(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 g(){if(Mt.wrapper){var e=Mt.wrapper.offsetWidth,t=Mt.wrapper.offsetHeight;e-=t*St.margin,t-=t*St.margin;var n=St.width,r=St.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Mt.slides.style.width=n+"px",Mt.slides.style.height=r+"px",Tt=Math.min(e/n,t/r),Tt=Math.max(Tt,St.minScale),Tt=Math.min(Tt,St.maxScale),void 0===Mt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Tt+") translate(50%, 50%)";Mt.slides.style.WebkitTransform=o,Mt.slides.style.MozTransform=o,Mt.slides.style.msTransform=o,Mt.slides.style.OTransform=o,Mt.slides.style.transform=o}else Mt.slides.style.zoom=Tt;for(var a=d(document.querySelectorAll(bt)),s=0,i=a.length;i>s;s++){var c=a[s];"none"!==c.style.display&&(c.style.top=St.center?c.classList.contains("stack")?0:Math.max(-(c.offsetHeight/2)-20,-r/2)+"px":"")}C()}}function y(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function b(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 L(){if(St.overview){K();var e=Mt.wrapper.classList.contains("overview");Mt.wrapper.classList.add("overview"),Mt.wrapper.classList.remove("exit-overview"),clearTimeout(Yt),clearTimeout(Rt),Yt=setTimeout(function(){for(var t=document.querySelectorAll(Lt),n=0,r=t.length;r>n;n++){var o=t[n],a=St.rtl?-105:105,s="translateZ(-2500px) translate("+(n-kt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=s,o.style.MozTransform=s,o.style.msTransform=s,o.style.OTransform=s,o.style.transform=s,o.classList.contains("stack"))for(var i=o.querySelectorAll("section"),c=0,l=i.length;l>c;c++){var d=n===kt?qt:b(o),u=i[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",ht,!0)}else o.addEventListener("click",ht,!0)}g(),e||v("overviewshown",{indexh:kt,indexv:qt,currentSlide:yt})},10)}}function w(){if(St.overview){clearTimeout(Yt),clearTimeout(Rt),Mt.wrapper.classList.remove("overview"),Mt.wrapper.classList.add("exit-overview"),Rt=setTimeout(function(){Mt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(bt)),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",ht,!0)}P(kt,qt),_(),v("overviewhidden",{indexh:kt,indexv:qt,currentSlide:yt})}}function E(e){"boolean"==typeof e?e?L():w():S()?w():L()}function S(){return Mt.wrapper.classList.contains("overview")}function A(e){return e=e?e:yt,e&&!!e.parentNode.nodeName.match(/section/i)}function k(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function q(){var e=Mt.wrapper.classList.contains("paused");K(),Mt.wrapper.classList.add("paused"),e===!1&&v("paused")}function x(){var e=Mt.wrapper.classList.contains("paused");Mt.wrapper.classList.remove("paused"),_(),e&&v("resumed")}function T(){M()?x():q()}function M(){return Mt.wrapper.classList.contains("paused")}function P(e,t,n,r){gt=yt;var o=document.querySelectorAll(Lt);void 0===t&&(t=b(o[e])),gt&&gt.parentNode&&gt.parentNode.classList.contains("stack")&&y(gt.parentNode,qt);var a=xt.concat();xt.length=0;var s=kt,i=qt;kt=D(Lt,void 0===e?kt:e),qt=D(wt,void 0===t?qt:t),g();e:for(var c=0,l=xt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===xt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(xt[c]),v(xt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());S()&&L(),U(1500);var f=o[kt],p=f.querySelectorAll("section");if(yt=p[qt]||f,n!==void 0){var m=h(yt.querySelectorAll(".fragment"));d(m).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}kt!==s||qt!==i?v("slidechanged",{indexh:kt,indexv:qt,previousSlide:gt,currentSlide:yt,origin:r}):gt=null,gt&&(gt.classList.remove("present"),document.querySelector(Et).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Lt+".stack"));for(e in t)t[e]&&y(t[e],0)},0)),I(gt),H(yt),O(),C(),Y()}function N(){c(),i(),g(),At=St.autoSlide,_(),n(),O(),C(),Y()}function D(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){St.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(S()===!1){var s=Math.abs((t-o)%(r-3))||0;a.style.display=s>3?"none":"block"}var i=St.rtl&&!A(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),t>o?a.classList.add(i?"future":"past"):o>t&&a.classList.add(i?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present");var c=n[t].getAttribute("data-state");c&&(xt=xt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");At=l?parseInt(l,10):St.autoSlide}else t=0;return t}function C(){if(St.progress&&Mt.progress){var e=d(document.querySelectorAll(Lt)),t=document.querySelectorAll(bt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),s=0;a.length>s;s++){if(a[s].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Mt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function O(){if(St.controls&&Mt.controls){var e=R(),t=X();Mt.controlsLeft.concat(Mt.controlsRight).concat(Mt.controlsUp).concat(Mt.controlsDown).concat(Mt.controlsPrev).concat(Mt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Mt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Mt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Mt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Mt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Mt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Mt.controlsNext.forEach(function(e){e.classList.add("enabled")}),yt&&(t.prev&&Mt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),A(yt)?(t.prev&&Mt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Mt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function Y(){d(Mt.background.childNodes).forEach(function(e,t){e.className=kt>t?"past":t>kt?"future":"present",d(e.childNodes).forEach(function(e,t){e.className=qt>t?"past":t>qt?"future":"present"})}),setTimeout(function(){Mt.background.classList.remove("no-transition")},1)}function R(){var e=document.querySelectorAll(Lt),t=document.querySelectorAll(wt),n={left:kt>0||St.loop,right:e.length-1>kt||St.loop,up:qt>0,down:t.length-1>qt};if(St.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function X(){if(yt&&St.fragments){var e=yt.querySelectorAll(".fragment"),t=yt.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 I(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 W(){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);P(o.h,o.v)}else P(kt,qt)}else{var a=parseInt(t[0],10)||0,s=parseInt(t[1],10)||0;P(a,s)}}function U(e){if(St.history)if(clearTimeout(Ot),"number"==typeof e)Ot=setTimeout(U,e);else{var t="/";yt&&"string"==typeof yt.getAttribute("id")?t="/"+yt.getAttribute("id"):((kt>0||qt>0)&&(t+=kt),qt>0&&(t+="/"+qt)),window.location.hash=t}}function z(e){var t,n=kt,r=qt;if(e){var o=A(e),a=o?e.parentNode:e,s=d(document.querySelectorAll(Lt));n=Math.max(s.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&yt){var i=yt.querySelectorAll(".fragment.visible");i.length&&(t=i.length)}return{h:n,v:r,f:t}}function F(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible"),v("fragmentshown",{fragment:e})}),O(),!0}}return!1}function j(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible"),v("fragmenthidden",{fragment:e})}),O(),!0}}return!1}function _(){clearTimeout(Ct),!At||M()||S()||(Ct=setTimeout(G,At))}function K(){clearTimeout(Ct)}function $(){St.rtl?(S()||F()===!1)&&R().left&&P(kt+1):(S()||j()===!1)&&R().left&&P(kt-1)}function V(){St.rtl?(S()||j()===!1)&&R().right&&P(kt-1):(S()||F()===!1)&&R().right&&P(kt+1)}function Z(){(S()||j()===!1)&&R().up&&P(kt,qt-1)}function Q(){(S()||F()===!1)&&R().down&&P(kt,qt+1)}function B(){if(j()===!1)if(R().up)Z();else{var e=document.querySelector(Lt+".past:nth-child("+kt+")");e&&(qt=e.querySelectorAll("section").length+1||void 0,kt--,P(kt,qt))}}function G(){F()===!1&&(R().down?Q():V()),_()}function J(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)){var n=!0;if(M()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:B();break;case 78:case 34:G();break;case 72:case 37:$();break;case 76:case 39:V();break;case 75:case 38:Z();break;case 74:case 40:Q();break;case 36:P(0);break;case 35:P(Number.MAX_VALUE);break;case 32:S()?w():e.shiftKey?B():G();break;case 13:S()?w():n=!1;break;case 66:case 190:case 191:T();break;case 70:k();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Pt&&(E(),e.preventDefault()),_()}}function et(e){Ht.startX=e.touches[0].clientX,Ht.startY=e.touches[0].clientY,Ht.startCount=e.touches.length,2===e.touches.length&&St.overview&&(Ht.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ht.startX,y:Ht.startY}))}function tt(e){if(Ht.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===Ht.startCount&&St.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ht.startX,y:Ht.startY});Math.abs(Ht.startSpan-r)>Ht.threshold&&(Ht.handled=!0,Ht.startSpan>r?L():w()),e.preventDefault()}else if(1===e.touches.length&&2!==Ht.startCount){var o=t-Ht.startX,a=n-Ht.startY;o>Ht.threshold&&Math.abs(o)>Math.abs(a)?(Ht.handled=!0,$()):-Ht.threshold>o&&Math.abs(o)>Math.abs(a)?(Ht.handled=!0,V()):a>Ht.threshold?(Ht.handled=!0,Z()):-Ht.threshold>a&&(Ht.handled=!0,Q()),e.preventDefault()}}}function nt(){Ht.handled=!1}function rt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],et(e))}function ot(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],tt(e))}function at(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],nt(e))}function st(e){clearTimeout(Dt),Dt=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?G():B()},100)}function it(e){e.preventDefault();var t=d(document.querySelectorAll(Lt)).length,n=Math.floor(e.clientX/Mt.wrapper.offsetWidth*t);P(n)}function ct(e){e.preventDefault(),$()}function lt(e){e.preventDefault(),V()}function dt(e){e.preventDefault(),Z()}function ut(e){e.preventDefault(),Q()}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(){W()}function mt(){g()}function ht(e){if(Xt&&S()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(w(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);P(n,r)}}}var gt,yt,bt=".reveal .slides section",Lt=".reveal .slides>section",wt=".reveal .slides>section.present>section",Et=".reveal .slides>section:first-child",St={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,theme:null,transition:"default",transitionSpeed:"default",dependencies:[]},At=0,kt=0,qt=0,xt=[],Tt=1,Mt={},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,Dt=0,Ct=0,Ot=0,Yt=0,Rt=0,Xt=!1,Ht={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:N,slide:P,left:$,right:V,up:Z,down:Q,prev:B,next:G,prevFragment:j,nextFragment:F,navigateTo:P,navigateLeft:$,navigateRight:V,navigateUp:Z,navigateDown:Q,navigatePrev:B,navigateNext:G,layout:g,availableRoutes:R,availableFragments:X,toggleOverview:E,togglePause:T,isOverview:S,isPaused:M,addEventListeners:i,removeEventListeners:c,getIndices:z,getSlide:function(e,t){var n=document.querySelectorAll(Lt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return gt},getCurrentSlide:function(){return yt},getScale:function(){return Tt},getConfig:function(){return St},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(bt+".past")?!0:!1},isLastSlide:function(){return yt&&yt.classList.contains(".stack")?null==yt.querySelector(bt+".future")?!0:!1:null==document.querySelector(bt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();