123456789 |
- /*!
- * reveal.js 3.9.1 (2020-01-31, 11:04)
- * http://revealjs.com
- * MIT licensed
- *
- * Copyright (C) 2020 Hakim El Hattab, http://hakim.se
- */
- !function(e,t){"function"==typeof define&&define.amd?define(function(){return e.Reveal=t(),e.Reveal}):"object"==typeof exports?module.exports=t():e.Reveal=t()}(this,function(){"use strict";var e,t,r,n,a,i,o,s,l,c=".slides section",d=".slides>section",u=".slides>section.present>section",p=".slides>section:first-of-type",f=navigator.userAgent,h=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/,v={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,rollingLinks:!1,hideAddressBar:!0,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]},g=!1,m=!1,b=!1,y=null,w=null,A=!1,k=!1,L=[],E=1,S={layout:"",overview:""},x={},q={},M=[],N={},I=0,T=0,P=!1,C=0,H=!1,R=0,B=0,z=-1,D=!1,O={startX:0,startY:0,startCount:0,captured:!1,threshold:40},W={},F={};function U(){var e=Object.keys(q).length;if(0===e)V();else{var t=function(){0==--e&&V()};for(var r in q){var n=q[r];if("function"==typeof n.init){var a=n.init();a&&"function"==typeof a.then?a.then(t):t()}else t()}}}function V(){var n;M.length&&M.forEach(function(e){j(e.src,e.callback)}),m=!0,x.slides.classList.add("no-transition"),o?x.wrapper.classList.add("no-hover"):x.wrapper.classList.remove("no-hover"),/iphone/gi.test(f)?x.wrapper.classList.add("ua-iphone"):x.wrapper.classList.remove("ua-iphone"),x.background=X(x.wrapper,"div","backgrounds",null),x.progress=X(x.wrapper,"div","progress","<span></span>"),x.progressbar=x.progress.querySelector("span"),x.controls=X(x.wrapper,"aside","controls",'<button class="navigate-left" aria-label="previous slide"><div class="controls-arrow"></div></button><button class="navigate-right" aria-label="next slide"><div class="controls-arrow"></div></button><button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button><button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>'),x.slideNumber=X(x.wrapper,"div","slide-number",""),x.speakerNotes=X(x.wrapper,"div","speaker-notes",null),x.speakerNotes.setAttribute("data-prevent-swipe",""),x.speakerNotes.setAttribute("tabindex","0"),x.pauseOverlay=X(x.wrapper,"div","pause-overlay",v.controls?'<button class="resume-button">Resume presentation</button>':null),x.wrapper.setAttribute("role","application"),x.controlsLeft=ee(document.querySelectorAll(".navigate-left")),x.controlsRight=ee(document.querySelectorAll(".navigate-right")),x.controlsUp=ee(document.querySelectorAll(".navigate-up")),x.controlsDown=ee(document.querySelectorAll(".navigate-down")),x.controlsPrev=ee(document.querySelectorAll(".navigate-prev")),x.controlsNext=ee(document.querySelectorAll(".navigate-next")),x.controlsRightArrow=x.controls.querySelector(".navigate-right"),x.controlsDownArrow=x.controls.querySelector(".navigate-down"),x.statusDiv=((n=document.getElementById("aria-status-div"))||((n=document.createElement("div")).style.position="absolute",n.style.height="1px",n.style.width="1px",n.style.overflow="hidden",n.style.clip="rect( 1px, 1px, 1px, 1px )",n.setAttribute("id","aria-status-div"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),x.wrapper.appendChild(n)),n),v.postMessage&&window.addEventListener("message",function(t){var r=t.data;if("string"==typeof r&&"{"===r.charAt(0)&&"}"===r.charAt(r.length-1)&&(r=JSON.parse(r)).method&&"function"==typeof e[r.method])if(!1===h.test(r.method)){var n=e[r.method].apply(e,r.args);de("callback",{method:r.method,result:n})}else console.warn('reveal.js: "'+r.method+'" is is blacklisted from the postMessage API')},!1),setInterval(function(){0===x.wrapper.scrollTop&&0===x.wrapper.scrollLeft||(x.wrapper.scrollTop=0,x.wrapper.scrollLeft=0)},1e3),ee(x.wrapper.querySelectorAll(d)).forEach(function(e){var t=ee(e.querySelectorAll("section"));t.forEach(function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})}),J(),st(),Xe(!0),setTimeout(function(){x.slides.classList.remove("no-transition"),x.wrapper.classList.add("ready"),ce("ready",{indexh:t,indexv:r,currentSlide:a})},1),se()&&(Z(),"complete"===document.readyState?Y():window.addEventListener("load",Y))}function j(e,t){var r=document.createElement("script");r.type="text/javascript",r.async=!1,r.defer=!1,r.src=e,t&&(r.onload=r.onreadystatechange=function(e){("load"===e.type||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=r.onerror=null,t())},r.onerror=function(e){r.onload=r.onreadystatechange=r.onerror=null,t(new Error("Failed loading script: "+r.src+"\n"+e))});var n=document.querySelector("head");n.insertBefore(r,n.lastChild)}function K(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var r=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===r||n||ee(e.childNodes).forEach(function(e){t+=K(e)})}return t}function Y(){var e=be(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+v.margin)),r=Math.floor(e.height*(1+v.margin)),n=e.width,a=e.height;ae("@page{size:"+t+"px "+r+"px; margin: 0px;}"),ae(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+n+"px; max-height:"+a+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=r+"px",me(n,a);var i=v.slideNumber&&/all|print/i.test(v.showSlideNumber);ee(x.wrapper.querySelectorAll(c)).forEach(function(e){e.setAttribute("data-slide-number",Ke(e))}),ee(x.wrapper.querySelectorAll(c)).forEach(function(e){if(!1===e.classList.contains("stack")){var o=(t-n)/2,s=(r-a)/2,l=e.scrollHeight,c=Math.max(Math.ceil(l/r),1);(1===(c=Math.min(c,v.pdfMaxPagesPerSlide))&&v.center||e.classList.contains("center"))&&(s=Math.max((r-l)/2,0));var d=document.createElement("div");if(d.className="pdf-page",d.style.height=(r+v.pdfPageHeightOffset)*c+"px",e.parentNode.insertBefore(d,e),d.appendChild(e),e.style.left=o+"px",e.style.top=s+"px",e.style.width=n+"px",e.slideBackgroundElement&&d.insertBefore(e.slideBackgroundElement,e),v.showNotes){var u=bt(e);if(u){var p="string"==typeof v.showNotes?v.showNotes:"inline",f=document.createElement("div");f.classList.add("speaker-notes"),f.classList.add("speaker-notes-pdf"),f.setAttribute("data-layout",p),f.innerHTML=u,"separate-page"===p?d.parentNode.insertBefore(f,d.nextSibling):(f.style.left="8px",f.style.bottom="8px",f.style.width=t-16+"px",d.appendChild(f))}}if(i){var h=document.createElement("div");h.classList.add("slide-number"),h.classList.add("slide-number-pdf"),h.innerHTML=e.getAttribute("data-slide-number"),d.appendChild(h)}if(v.pdfSeparateFragments){var g,m,b=wt(d.querySelectorAll(".fragment"),!0);b.forEach(function(e){g&&g.forEach(function(e){e.classList.remove("current-fragment")}),e.forEach(function(e){e.classList.add("visible","current-fragment")});var t=d.cloneNode(!0);d.parentNode.insertBefore(t,(m||d).nextSibling),g=e,m=t}),b.forEach(function(e){e.forEach(function(e){e.classList.remove("visible","current-fragment")})})}else ee(d.querySelectorAll(".fragment:not(.fade-out)")).forEach(function(e){e.classList.add("visible")})}}),ce("pdf-ready")}function X(e,t,r,n){for(var a=e.querySelectorAll("."+r),i=0;i<a.length;i++){var o=a[i];if(o.parentNode===e)return o}var s=document.createElement(t);return s.className=r,"string"==typeof n&&(s.innerHTML=n),e.appendChild(s),s}function _(e,t){var r=document.createElement("div");r.className="slide-background "+e.className.replace(/present|past|future/,"");var n=document.createElement("div");return n.className="slide-background-content",r.appendChild(n),t.appendChild(r),e.slideBackgroundElement=r,e.slideBackgroundContentElement=n,$(e),r}function $(e){var t=e.slideBackgroundElement,r=e.slideBackgroundContentElement;e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",r.style.backgroundSize="",r.style.backgroundRepeat="",r.style.backgroundPosition="",r.style.backgroundImage="",r.style.opacity="",r.innerHTML="";var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")};n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(n.background)?e.setAttribute("data-background-image",n.background):t.style.background=n.background),(n.background||n.backgroundColor||n.backgroundImage||n.backgroundVideo||n.backgroundIframe)&&t.setAttribute("data-background-hash",n.background+n.backgroundSize+n.backgroundImage+n.backgroundVideo+n.backgroundIframe+n.backgroundColor+n.backgroundRepeat+n.backgroundPosition+n.backgroundTransition+n.backgroundOpacity),n.backgroundSize&&t.setAttribute("data-background-size",n.backgroundSize),n.backgroundColor&&(t.style.backgroundColor=n.backgroundColor),n.backgroundTransition&&t.setAttribute("data-background-transition",n.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundOpacity&&(r.style.opacity=n.backgroundOpacity);var a=n.backgroundColor;if(!a){var i=window.getComputedStyle(t);i&&i.backgroundColor&&(a=i.backgroundColor)}if(a){var o=oe(a);o&&0!==o.a&&(function(e){"string"==typeof e&&(e=oe(e));if(e)return(299*e.r+587*e.g+114*e.b)/1e3;return null}(a)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}function J(e){var t=v.transition;if("object"==typeof e&&G(v,e),!1!==m){var r=x.wrapper.querySelectorAll(c).length;x.wrapper.classList.remove(t),!1===N.transforms3d&&(v.transition="linear"),x.wrapper.classList.add(v.transition),x.wrapper.setAttribute("data-transition-speed",v.transitionSpeed),x.wrapper.setAttribute("data-background-transition",v.backgroundTransition),x.controls.style.display=v.controls?"block":"none",x.progress.style.display=v.progress?"block":"none",x.controls.setAttribute("data-controls-layout",v.controlsLayout),x.controls.setAttribute("data-controls-back-arrows",v.controlsBackArrows),v.shuffle&&Oe(),v.rtl?x.wrapper.classList.add("rtl"):x.wrapper.classList.remove("rtl"),v.center?x.wrapper.classList.add("center"):x.wrapper.classList.remove("center"),!1===v.pause&&Pe(),v.showNotes&&x.speakerNotes.setAttribute("data-layout","string"==typeof v.showNotes?v.showNotes:"inline"),v.mouseWheel?(document.addEventListener("DOMMouseScroll",Yt,!1),document.addEventListener("mousewheel",Yt,!1)):(document.removeEventListener("DOMMouseScroll",Yt,!1),document.removeEventListener("mousewheel",Yt,!1)),v.rollingLinks?function(){if(N.transforms3d&&!("msPerspective"in document.body.style))for(var e=x.wrapper.querySelectorAll(c+" a"),t=0,r=e.length;t<r;t++){var n=e[t];if(n.textContent&&!n.querySelector("*")&&(!n.className||!n.classList.contains(n,"roll"))){var a=document.createElement("span");a.setAttribute("data-title",n.text),a.innerHTML=n.innerHTML,n.classList.add("roll"),n.innerHTML="",n.appendChild(a)}}}():function(){for(var e=x.wrapper.querySelectorAll(c+" a.roll"),t=0,r=e.length;t<r;t++){var n=e[t],a=n.querySelector("span");a&&(n.classList.remove("roll"),n.innerHTML=a.innerHTML)}}(),v.hideInactiveCursor?(document.addEventListener("mousemove",zt,!1),document.addEventListener("mousedown",zt,!1)):(Ne(),document.removeEventListener("mousemove",zt,!1),document.removeEventListener("mousedown",zt,!1)),v.previewLinks?(ue(),pe("[data-preview-link=false]")):(pe(),ue("[data-preview-link]:not([data-preview-link=false])")),l&&(l.destroy(),l=null),r>1&&v.autoSlide&&v.autoSlideStoppable&&N.canvas&&N.requestAnimationFrame&&((l=new or(x.wrapper,function(){return Math.min(Math.max((Date.now()-z)/R,0),1)})).on("click",ir),D=!1),!1===v.fragments&&ee(x.slides.querySelectorAll(".fragment")).forEach(function(e){e.classList.add("visible"),e.classList.remove("current-fragment")});var n="none";v.slideNumber&&!se()&&("all"===v.showSlideNumber?n="block":"speaker"===v.showSlideNumber&&ot()&&(n="block")),x.slideNumber.style.display=n,"default"!==v.navigationMode?x.wrapper.setAttribute("data-navigation-mode",v.navigationMode):x.wrapper.removeAttribute("data-navigation-mode"),"linear"===v.navigationMode?(W["→ , ↓ , SPACE , N , L , J"]="Next slide",W["← , ↑ , P , H , K"]="Previous slide"):(W["N , SPACE"]="Next slide",W.P="Previous slide",W["← , H"]="Navigate left",W["→ , L"]="Navigate right",W["↑ , K"]="Navigate up",W["↓ , J"]="Navigate down"),W["Home , Shift ←"]="First slide",W["End , Shift →"]="Last slide",W["B , ."]="Pause",W.F="Fullscreen",W["ESC, O"]="Slide overview",ze()}}function Q(){var e;(H=!0,window.addEventListener("hashchange",er,!1),window.addEventListener("resize",tr,!1),v.touch&&("onpointerdown"in window?(x.wrapper.addEventListener("pointerdown",Vt,!1),x.wrapper.addEventListener("pointermove",jt,!1),x.wrapper.addEventListener("pointerup",Kt,!1)):window.navigator.msPointerEnabled?(x.wrapper.addEventListener("MSPointerDown",Vt,!1),x.wrapper.addEventListener("MSPointerMove",jt,!1),x.wrapper.addEventListener("MSPointerUp",Kt,!1)):(x.wrapper.addEventListener("touchstart",Wt,!1),x.wrapper.addEventListener("touchmove",Ft,!1),x.wrapper.addEventListener("touchend",Ut,!1))),v.keyboard&&(document.addEventListener("keydown",Ot,!1),document.addEventListener("keypress",Dt,!1)),v.progress&&x.progress&&x.progress.addEventListener("click",Xt,!1),x.pauseOverlay.addEventListener("click",Pe,!1),v.focusBodyOnPageVisibilityChange)&&("hidden"in document?e="visibilitychange":"msHidden"in document?e="msvisibilitychange":"webkitHidden"in document&&(e="webkitvisibilitychange"),e&&document.addEventListener(e,rr,!1));var t=["touchstart","click"];f.match(/android/gi)&&(t=["touchstart"]),t.forEach(function(e){x.controlsLeft.forEach(function(t){t.addEventListener(e,_t,!1)}),x.controlsRight.forEach(function(t){t.addEventListener(e,$t,!1)}),x.controlsUp.forEach(function(t){t.addEventListener(e,Jt,!1)}),x.controlsDown.forEach(function(t){t.addEventListener(e,Qt,!1)}),x.controlsPrev.forEach(function(t){t.addEventListener(e,Zt,!1)}),x.controlsNext.forEach(function(t){t.addEventListener(e,Gt,!1)})})}function Z(){H=!1,document.removeEventListener("keydown",Ot,!1),document.removeEventListener("keypress",Dt,!1),window.removeEventListener("hashchange",er,!1),window.removeEventListener("resize",tr,!1),x.wrapper.removeEventListener("pointerdown",Vt,!1),x.wrapper.removeEventListener("pointermove",jt,!1),x.wrapper.removeEventListener("pointerup",Kt,!1),x.wrapper.removeEventListener("MSPointerDown",Vt,!1),x.wrapper.removeEventListener("MSPointerMove",jt,!1),x.wrapper.removeEventListener("MSPointerUp",Kt,!1),x.wrapper.removeEventListener("touchstart",Wt,!1),x.wrapper.removeEventListener("touchmove",Ft,!1),x.wrapper.removeEventListener("touchend",Ut,!1),x.pauseOverlay.removeEventListener("click",Pe,!1),v.progress&&x.progress&&x.progress.removeEventListener("click",Xt,!1),["touchstart","click"].forEach(function(e){x.controlsLeft.forEach(function(t){t.removeEventListener(e,_t,!1)}),x.controlsRight.forEach(function(t){t.removeEventListener(e,$t,!1)}),x.controlsUp.forEach(function(t){t.removeEventListener(e,Jt,!1)}),x.controlsDown.forEach(function(t){t.removeEventListener(e,Qt,!1)}),x.controlsPrev.forEach(function(t){t.removeEventListener(e,Zt,!1)}),x.controlsNext.forEach(function(t){t.removeEventListener(e,Gt,!1)})})}function G(e,t){for(var r in t)e[r]=t[r];return e}function ee(e){return Array.prototype.slice.call(e)}function te(e){if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e}function re(e,t){e.style.WebkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.transform=t}function ne(e){"string"==typeof e.layout&&(S.layout=e.layout),"string"==typeof e.overview&&(S.overview=e.overview),S.layout?re(x.slides,S.layout+" "+S.overview):re(x.slides,S.overview)}function ae(e){var t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}function ie(e,t){for(var r=e.parentNode;r;){var n=r.matches||r.matchesSelector||r.msMatchesSelector;if(n&&n.call(r,t))return r;r=r.parentNode}return null}function oe(e){var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var r=e.match(/^#([0-9a-f]{6})$/i);if(r&&r[1])return r=r[1],{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16)};var n=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(n)return{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};var a=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return a?{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10),a:parseFloat(a[4])}:null}function se(){return/print-pdf/gi.test(window.location.search)}function le(){setTimeout(function(){window.scrollTo(0,1)},10)}function ce(e,t){var r=document.createEvent("HTMLEvents",1,2);r.initEvent(e,!0,!0),G(r,t),x.wrapper.dispatchEvent(r),de(e)}function de(e,t){if(v.postMessageEvents&&window.parent!==window.self){var r={namespace:"reveal",eventName:e,state:yt()};G(r,t),window.parent.postMessage(JSON.stringify(r),"*")}}function ue(e){ee(document.querySelectorAll(e||"a")).forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",ar,!1)})}function pe(e){ee(document.querySelectorAll(e||"a")).forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",ar,!1)})}function fe(e){"boolean"==typeof e?e?he():ve():x.overlay?ve():he()}function he(){if(v.help){ve(),x.overlay=document.createElement("div"),x.overlay.classList.add("overlay"),x.overlay.classList.add("overlay-help"),x.wrapper.appendChild(x.overlay);var e='<p class="title">Keyboard Shortcuts</p><br/>';for(var t in e+="<table><th>KEY</th><th>ACTION</th>",W)e+="<tr><td>"+t+"</td><td>"+W[t]+"</td></tr>";for(var r in F)F[r].key&&F[r].description&&(e+="<tr><td>"+F[r].key+"</td><td>"+F[r].description+"</td></tr>");e+="</table>",x.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>',"</header>",'<div class="viewport">','<div class="viewport-inner">'+e+"</div>","</div>"].join(""),x.overlay.querySelector(".close").addEventListener("click",function(e){ve(),e.preventDefault()},!1),setTimeout(function(){x.overlay.classList.add("visible")},1)}}function ve(){x.overlay&&(x.overlay.parentNode.removeChild(x.overlay),x.overlay=null)}function ge(){if(x.wrapper&&!se()){if(!v.disableLayout){o&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=be(),t=E;me(v.width,v.height),x.slides.style.width=e.width+"px",x.slides.style.height=e.height+"px",E=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),E=Math.max(E,v.minScale),1===(E=Math.min(E,v.maxScale))?(x.slides.style.zoom="",x.slides.style.left="",x.slides.style.top="",x.slides.style.bottom="",x.slides.style.right="",ne({layout:""})):E>1&&N.zoom&&window.devicePixelRatio<2?(x.slides.style.zoom=E,x.slides.style.left="",x.slides.style.top="",x.slides.style.bottom="",x.slides.style.right="",ne({layout:""})):(x.slides.style.zoom="",x.slides.style.left="50%",x.slides.style.top="50%",x.slides.style.bottom="auto",x.slides.style.right="auto",ne({layout:"translate(-50%, -50%) scale("+E+")"}));for(var r=ee(x.wrapper.querySelectorAll(c)),n=0,a=r.length;n<a;n++){var i=r[n];"none"!==i.style.display&&(v.center||i.classList.contains("center")?i.classList.contains("stack")?i.style.top=0:i.style.top=Math.max((e.height-i.scrollHeight)/2,0)+"px":i.style.top="")}t!==E&&ce("resize",{oldScale:t,scale:E,size:e})}Ve(),_e(),xe()&&Le()}}function me(e,t){ee(x.slides.querySelectorAll("section > .stretch")).forEach(function(r){var n=function(e,t){if(t=t||0,e){var r,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",r=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),r}return t}(r,t);if(/(img|video)/gi.test(r.nodeName)){var a=r.naturalWidth||r.videoWidth,i=r.naturalHeight||r.videoHeight,o=Math.min(e/a,n/i);r.style.width=a*o+"px",r.style.height=i*o+"px"}else r.style.width=e+"px",r.style.height=n+"px"})}function be(e,t){var r={width:v.width,height:v.height,presentationWidth:e||x.wrapper.offsetWidth,presentationHeight:t||x.wrapper.offsetHeight};return r.presentationWidth-=r.presentationWidth*v.margin,r.presentationHeight-=r.presentationHeight*v.margin,"string"==typeof r.width&&/%$/.test(r.width)&&(r.width=parseInt(r.width,10)/100*r.presentationWidth),"string"==typeof r.height&&/%$/.test(r.height)&&(r.height=parseInt(r.height,10)/100*r.presentationHeight),r}function ye(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function we(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 Ae(){if(v.overview&&!xe()){b=!0,x.wrapper.classList.add("overview"),x.wrapper.classList.remove("overview-deactivating"),N.overviewTransitions&&setTimeout(function(){x.wrapper.classList.add("overview-animated")},1),xt(),x.slides.appendChild(x.background),ee(x.wrapper.querySelectorAll(c)).forEach(function(e){e.classList.contains("stack")||e.addEventListener("click",nr,!0)});var e=be();y=e.width+70,w=e.height+70,v.rtl&&(y=-y),Fe(),ke(),Le(),ge(),ce("overviewshown",{indexh:t,indexv:r,currentSlide:a})}}function ke(){ee(x.wrapper.querySelectorAll(d)).forEach(function(e,t){e.setAttribute("data-index-h",t),re(e,"translate3d("+t*y+"px, 0, 0)"),e.classList.contains("stack")&&ee(e.querySelectorAll("section")).forEach(function(e,r){e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",r),re(e,"translate3d(0, "+r*w+"px, 0)")})}),ee(x.background.childNodes).forEach(function(e,t){re(e,"translate3d("+t*y+"px, 0, 0)"),ee(e.querySelectorAll(".slide-background")).forEach(function(e,t){re(e,"translate3d(0, "+t*w+"px, 0)")})})}function Le(){var e=Math.min(window.innerWidth,window.innerHeight);ne({overview:["scale("+Math.max(e/5,150)/e+")","translateX("+-t*y+"px)","translateY("+-r*w+"px)"].join(" ")})}function Ee(){v.overview&&(b=!1,x.wrapper.classList.remove("overview"),x.wrapper.classList.remove("overview-animated"),x.wrapper.classList.add("overview-deactivating"),setTimeout(function(){x.wrapper.classList.remove("overview-deactivating")},1),x.wrapper.appendChild(x.background),ee(x.wrapper.querySelectorAll(c)).forEach(function(e){re(e,""),e.removeEventListener("click",nr,!0)}),ee(x.background.querySelectorAll(".slide-background")).forEach(function(e){re(e,"")}),ne({overview:""}),Be(t,r),ge(),St(),ce("overviewhidden",{indexh:t,indexv:r,currentSlide:a}))}function Se(e){"boolean"==typeof e?e?Ae():Ee():xe()?Ee():Ae()}function xe(){return b}function qe(e){var t="/",r=e||a,n=r?r.getAttribute("id"):null;n&&(n=encodeURIComponent(n));var i=ct(e);if(v.fragmentInURL||(i.f=undefined),"string"==typeof n&&n.length&&i.f===undefined)t="/"+n;else{var o=v.hashOneBasedIndex?1:0;(i.h>0||i.v>0||i.f!==undefined)&&(t+=i.h+o),(i.v>0||i.f!==undefined)&&(t+="/"+(i.v+o)),i.f!==undefined&&(t+="/"+i.f)}return t}function Me(e){return(e=e||a)&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Ne(){P&&(P=!1,x.wrapper.style.cursor="")}function Ie(){!1===P&&(P=!0,x.wrapper.style.cursor="none")}function Te(){if(v.pause){var e=x.wrapper.classList.contains("paused");xt(),x.wrapper.classList.add("paused"),!1===e&&ce("paused")}}function Pe(){var e=x.wrapper.classList.contains("paused");x.wrapper.classList.remove("paused"),St(),e&&ce("resumed")}function Ce(e){"boolean"==typeof e?e?Te():Pe():He()?Pe():Te()}function He(){return x.wrapper.classList.contains("paused")}function Re(e){"boolean"==typeof e?e?Mt():qt():D?Mt():qt()}function Be(e,i,o,s){n=a;var l=x.wrapper.querySelectorAll(d);if(0!==l.length){i!==undefined||xe()||(i=we(l[e])),n&&n.parentNode&&n.parentNode.classList.contains("stack")&&ye(n.parentNode,r);var c=L.concat();L.length=0;var f=t||0,h=r||0;t=We(d,e===undefined?t:e),r=We(u,i===undefined?r:i),Fe(),ge(),xe()&&Le();var v=l[t],g=v.querySelectorAll("section");a=g[r]||v,void 0!==o&&kt(o);var m=t!==f||r!==h;m||(n=null),n&&n!==a&&(n.classList.remove("present"),n.setAttribute("aria-hidden","true"),x.wrapper.querySelector(p).classList.contains("present")&&setTimeout(function(){var e,t=ee(x.wrapper.querySelectorAll(d+".stack"));for(e in t)t[e]&&ye(t[e],0)},0));e:for(var b=0,y=L.length;b<y;b++){for(var w=0;w<c.length;w++)if(c[w]===L[b]){c.splice(w,1);continue e}document.documentElement.classList.add(L[b]),ce(L[b])}for(;c.length;)document.documentElement.classList.remove(c.pop());m&&ce("slidechanged",{indexh:t,indexv:r,previousSlide:n,currentSlide:a,origin:s}),!m&&n||(nt(n),et(a)),x.statusDiv.textContent=K(a),Ye(),Ve(),Xe(),_e(),je(),Ue(),At(),lt(),St()}}function ze(){var e;Z(),Q(),ge(),R=v.autoSlide,St(),se(),x.background.innerHTML="",x.background.classList.add("no-transition"),ee(x.wrapper.querySelectorAll(d)).forEach(function(e){var t=_(e,x.background);ee(e.querySelectorAll("section")).forEach(function(e){_(e,t),t.classList.add("stack")})}),v.parallaxBackgroundImage?(x.background.style.backgroundImage='url("'+v.parallaxBackgroundImage+'")',x.background.style.backgroundSize=v.parallaxBackgroundSize,x.background.style.backgroundRepeat=v.parallaxBackgroundRepeat,x.background.style.backgroundPosition=v.parallaxBackgroundPosition,setTimeout(function(){x.wrapper.classList.add("has-parallax-background")},1)):(x.background.style.backgroundImage="",x.wrapper.classList.remove("has-parallax-background")),lt(),ee(x.wrapper.querySelectorAll(d)).forEach(function(e){var t=ee(e.querySelectorAll("section"));t.forEach(function(e,t){wt(e.querySelectorAll(".fragment"))}),0===t.length&&wt(e.querySelectorAll(".fragment"))}),Ye(),Ve(),je(),Fe(),Xe(!0),v.showNotes&&x.slides.querySelectorAll("[data-notes], aside.notes").length>0?x.wrapper.classList.add("show-notes"):x.wrapper.classList.remove("show-notes"),Ue(),(e=function(e,t,r){ee(x.slides.querySelectorAll("iframe["+e+'*="'+t+'"]')).forEach(function(t){var n=t.getAttribute(e);n&&-1===n.indexOf(r)&&t.setAttribute(e,n+(/\?/.test(n)?"&":"?")+r)})})("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1"),!1===v.autoPlayMedia?nt(a,{unloadIframes:!1}):et(a),xe()&&ke()}function De(e){return wt((e=e||a).querySelectorAll(".fragment"))}function Oe(){var e=ee(x.wrapper.querySelectorAll(d));e.forEach(function(t){x.slides.insertBefore(t,e[Math.floor(Math.random()*e.length)])})}function We(e,t){var r=ee(x.wrapper.querySelectorAll(e)),n=r.length,a=se();if(n){v.loop&&(t%=n)<0&&(t=n+t),t=Math.max(Math.min(t,n-1),0);for(var i=0;i<n;i++){var o=r[i],s=v.rtl&&!Me(o);o.classList.remove("past"),o.classList.remove("present"),o.classList.remove("future"),o.setAttribute("hidden",""),o.setAttribute("aria-hidden","true"),o.querySelector("section")&&o.classList.add("stack"),a?o.classList.add("present"):i<t?(o.classList.add(s?"future":"past"),v.fragments&&ee(o.querySelectorAll(".fragment")).forEach(function(e){e.classList.add("visible"),e.classList.remove("current-fragment")})):i>t&&(o.classList.add(s?"past":"future"),v.fragments&&ee(o.querySelectorAll(".fragment.visible")).forEach(function(e){e.classList.remove("visible"),e.classList.remove("current-fragment")}))}r[t].classList.add("present"),r[t].removeAttribute("hidden"),r[t].removeAttribute("aria-hidden");var l=r[t].getAttribute("data-state");l&&(L=L.concat(l.split(" ")))}else t=0;return t}function Fe(){var e,n=ee(x.wrapper.querySelectorAll(d)),a=n.length;if(a&&void 0!==t){var i=xe()?10:v.viewDistance;o&&(i=xe()?6:v.mobileViewDistance),se()&&(i=Number.MAX_VALUE);for(var s=0;s<a;s++){var l=n[s],c=ee(l.querySelectorAll("section")),u=c.length;if(e=Math.abs((t||0)-s)||0,v.loop&&(e=Math.abs(((t||0)-s)%(a-i))||0),e<i?Je(l):Qe(l),u)for(var p=we(l),f=0;f<u;f++){var h=c[f];e+(s===(t||0)?Math.abs((r||0)-f):Math.abs(f-p))<i?Je(h):Qe(h)}}ht()?x.wrapper.classList.add("has-vertical-slides"):x.wrapper.classList.remove("has-vertical-slides"),ft()?x.wrapper.classList.add("has-horizontal-slides"):x.wrapper.classList.remove("has-horizontal-slides")}}function Ue(){v.showNotes&&x.speakerNotes&&a&&!se()&&(x.speakerNotes.innerHTML=bt()||'<span class="notes-placeholder">No notes on this slide.</span>')}function Ve(){v.progress&&x.progressbar&&(x.progressbar.style.width=it()*x.wrapper.offsetWidth+"px")}function je(){v.slideNumber&&x.slideNumber&&(x.slideNumber.innerHTML=Ke())}function Ke(e){var t,r="h.v";if(e===undefined&&(e=a),"function"==typeof v.slideNumber)t=v.slideNumber(e);else switch("string"==typeof v.slideNumber&&(r=v.slideNumber),/c/.test(r)||1!==x.wrapper.querySelectorAll(d).length||(r="c"),t=[],r){case"c":t.push(at(e)+1);break;case"c/t":t.push(at(e)+1,"/",vt());break;default:var n=ct(e);t.push(n.h+1);var i="h/v"===r?"/":".";Me(e)&&t.push(i,n.v+1)}var o="#"+qe(e);return function(e,t,r,n){n===undefined&&(n="#"+qe());return"number"!=typeof r||isNaN(r)?'<a href="'+n+'"><span class="slide-number-a">'+e+"</span></a>":'<a href="'+n+'"><span class="slide-number-a">'+e+'</span><span class="slide-number-delimiter">'+t+'</span><span class="slide-number-b">'+r+"</span></a>"}(t[0],t[1],t[2],o)}function Ye(){var e=Ze(),t=Ge();x.controlsLeft.concat(x.controlsRight).concat(x.controlsUp).concat(x.controlsDown).concat(x.controlsPrev).concat(x.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented"),e.setAttribute("disabled","disabled")}),e.left&&x.controlsLeft.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&x.controlsRight.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&x.controlsUp.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&x.controlsDown.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&x.controlsPrev.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&x.controlsNext.forEach(function(e){e.classList.add("enabled"),e.removeAttribute("disabled")}),a&&(t.prev&&x.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&x.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),Me(a)?(t.prev&&x.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&x.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(t.prev&&x.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&x.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))),v.controlsTutorial&&(!k&&e.down?x.controlsDownArrow.classList.add("highlight"):(x.controlsDownArrow.classList.remove("highlight"),!A&&e.right&&0===r?x.controlsRightArrow.classList.add("highlight"):x.controlsRightArrow.classList.remove("highlight")))}function Xe(e){var n=null,o=v.rtl?"future":"past",s=v.rtl?"past":"future";if(ee(x.background.childNodes).forEach(function(a,i){a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),i<t?a.classList.add(o):i>t?a.classList.add(s):(a.classList.add("present"),n=a),(e||i===t)&&ee(a.querySelectorAll(".slide-background")).forEach(function(e,a){e.classList.remove("past"),e.classList.remove("present"),e.classList.remove("future"),a<r?e.classList.add("past"):a>r?e.classList.add("future"):(e.classList.add("present"),i===t&&(n=e))})}),i&&nt(i,{unloadIframes:!$e(i)}),n){et(n);var l=n.querySelector(".slide-background-content");if(l){var c=l.style.backgroundImage||"";/\.gif/i.test(c)&&(l.style.backgroundImage="",window.getComputedStyle(l).opacity,l.style.backgroundImage=c)}var d=i?i.getAttribute("data-background-hash"):null,u=n.getAttribute("data-background-hash");u&&u===d&&n!==i&&x.background.classList.add("no-transition"),i=n}a&&["has-light-background","has-dark-background"].forEach(function(e){a.classList.contains(e)?x.wrapper.classList.add(e):x.wrapper.classList.remove(e)}),setTimeout(function(){x.background.classList.remove("no-transition")},1)}function _e(){if(v.parallaxBackgroundImage){var e,n,a=x.wrapper.querySelectorAll(d),i=x.wrapper.querySelectorAll(u),o=x.background.style.backgroundSize.split(" ");1===o.length?e=n=parseInt(o[0],10):(e=parseInt(o[0],10),n=parseInt(o[1],10));var s,l=x.background.offsetWidth,c=a.length;s=("number"==typeof v.parallaxBackgroundHorizontal?v.parallaxBackgroundHorizontal:c>1?(e-l)/(c-1):0)*t*-1;var p,f,h=x.background.offsetHeight,g=i.length;p="number"==typeof v.parallaxBackgroundVertical?v.parallaxBackgroundVertical:(n-h)/(g-1),f=g>0?p*r:0,x.background.style.backgroundPosition=s+"px "+-f+"px"}}function $e(e){var t=v.preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}function Je(e,t){t=t||{},e.style.display=v.display,ee(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(function(e){("IFRAME"!==e.tagName||$e(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),ee(e.querySelectorAll("video, audio")).forEach(function(e){var t=0;ee(e.querySelectorAll("source[data-src]")).forEach(function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});var r=e.slideBackgroundElement;if(r){r.style.display="block";var n=e.slideBackgroundContentElement,a=e.getAttribute("data-background-iframe");if(!1===r.hasAttribute("data-loaded")){r.setAttribute("data-loaded","true");var i=e.getAttribute("data-background-image"),s=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),c=e.hasAttribute("data-background-video-muted");if(i)n.style.backgroundImage="url("+encodeURI(i)+")";else if(s&&!ot()){var d=document.createElement("video");l&&d.setAttribute("loop",""),c&&(d.muted=!0),o&&(d.muted=!0,d.autoplay=!0,d.setAttribute("playsinline","")),s.split(",").forEach(function(e){d.innerHTML+='<source src="'+e+'">'}),n.appendChild(d)}else if(a&&!0!==t.excludeIframes){var u=document.createElement("iframe");u.setAttribute("allowfullscreen",""),u.setAttribute("mozallowfullscreen",""),u.setAttribute("webkitallowfullscreen",""),u.setAttribute("allow","autoplay"),u.setAttribute("data-src",a),u.style.width="100%",u.style.height="100%",u.style.maxHeight="100%",u.style.maxWidth="100%",n.appendChild(u)}}var p=n.querySelector("iframe[data-src]");p&&$e(r)&&!/autoplay=(1|true|yes)/gi.test(a)&&p.getAttribute("src")!==a&&p.setAttribute("src",a)}}function Qe(e){e.style.display="none";var t=mt(e);t&&(t.style.display="none",ee(t.querySelectorAll("iframe[src]")).forEach(function(e){e.removeAttribute("src")})),ee(e.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]")).forEach(function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),ee(e.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(function(e){e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}function Ze(){var e=x.wrapper.querySelectorAll(d),n=x.wrapper.querySelectorAll(u),a={left:t>0,right:t<e.length-1,up:r>0,down:r<n.length-1};if(v.loop&&(e.length>1&&(a.left=!0,a.right=!0),n.length>1&&(a.up=!0,a.down=!0)),v.rtl){var i=a.left;a.left=a.right,a.right=i}return a}function Ge(){if(a&&v.fragments){var e=a.querySelectorAll(".fragment"),t=a.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function et(e){e&&!ot()&&(ee(e.querySelectorAll('img[src$=".gif"]')).forEach(function(e){e.setAttribute("src",e.getAttribute("src"))}),ee(e.querySelectorAll("video, audio")).forEach(function(e){if(!ie(e,".fragment")||ie(e,".fragment.visible")){var t=v.autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!ie(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)tt({target:e});else if(o){var r=e.play();r&&"function"==typeof r["catch"]&&!1===e.controls&&r["catch"](function(){e.controls=!0,e.addEventListener("play",function(){e.controls=!1})})}else e.removeEventListener("loadeddata",tt),e.addEventListener("loadeddata",tt)}}),ee(e.querySelectorAll("iframe[src]")).forEach(function(e){ie(e,".fragment")&&!ie(e,".fragment.visible")||rt({target:e})}),ee(e.querySelectorAll("iframe[data-src]")).forEach(function(e){ie(e,".fragment")&&!ie(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",rt),e.addEventListener("load",rt),e.setAttribute("src",e.getAttribute("data-src")))}))}function tt(e){var t=!!ie(e.target,"html"),r=!!ie(e.target,".present");t&&r&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",tt)}function rt(e){var t=e.target;if(t&&t.contentWindow){var r=!!ie(e.target,"html"),n=!!ie(e.target,".present");if(r&&n){var a=v.autoPlayMedia;"boolean"!=typeof a&&(a=t.hasAttribute("data-autoplay")||!!ie(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&a?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}function nt(e,t){t=G({unloadIframes:!0},t||{}),e&&e.parentNode&&(ee(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),ee(e.querySelectorAll("iframe")).forEach(function(e){e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",rt)}),ee(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),ee(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(e){!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&ee(e.querySelectorAll("iframe[data-src]")).forEach(function(e){e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}function at(e){e===undefined&&(e=a);var t=ee(x.wrapper.querySelectorAll(d)),r=0;e:for(var n=0;n<t.length;n++){for(var i=t[n],o=ee(i.querySelectorAll("section")),s=0;s<o.length;s++){if(o[s]===e)break e;r++}if(i===e)break;!1===i.classList.contains("stack")&&r++}return r}function it(){var e=vt(),t=at();if(a){var r=a.querySelectorAll(".fragment");if(r.length>0){t+=a.querySelectorAll(".fragment.visible").length/r.length*.9}}return Math.min(t/(e-1),1)}function ot(){return!!window.location.search.match(/receiver/gi)}function st(){var n=window.location.hash,i=n.slice(2).split("/"),o=n.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(i[0])&&o.length){var s;try{s=document.getElementById(decodeURIComponent(o))}catch(h){}var l=!!a&&a.getAttribute("id")===o;if(s){if(!l){var c=e.getIndices(s);Be(c.h,c.v)}}else Be(t||0,r||0)}else{var d,u=v.hashOneBasedIndex?1:0,p=parseInt(i[0],10)-u||0,f=parseInt(i[1],10)-u||0;v.fragmentInURL&&(d=parseInt(i[2],10),isNaN(d)&&(d=undefined)),p===t&&f===r&&d===undefined||Be(p,f,d)}}function lt(e){clearTimeout(T),"number"==typeof e?T=setTimeout(lt,e):a&&(v.history||!window.history?window.location.hash=qe():v.hash?window.history.replaceState(null,null,"#"+qe()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function ct(e){var n,i=t,o=r;if(e){var s=Me(e),l=s?e.parentNode:e,c=ee(x.wrapper.querySelectorAll(d));i=Math.max(c.indexOf(l),0),o=undefined,s&&(o=Math.max(ee(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&a&&a.querySelectorAll(".fragment").length>0){var u=a.querySelector(".current-fragment");n=u&&u.hasAttribute("data-fragment-index")?parseInt(u.getAttribute("data-fragment-index"),10):a.querySelectorAll(".fragment.visible").length-1}return{h:i,v:o,f:n}}function dt(){return ee(x.wrapper.querySelectorAll(c+":not(.stack)"))}function ut(){return ee(x.wrapper.querySelectorAll(d))}function pt(){return ee(x.wrapper.querySelectorAll(".slides>section>section"))}function ft(){return ut().length>1}function ht(){return pt().length>1}function vt(){return dt().length}function gt(e,t){var r=x.wrapper.querySelectorAll(d)[e],n=r&&r.querySelectorAll("section");return n&&n.length&&"number"==typeof t?n?n[t]:undefined:r}function mt(e,t){var r="number"==typeof e?gt(e,t):e;return r?r.slideBackgroundElement:undefined}function bt(e){if((e=e||a).hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}function yt(){var e=ct();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:He(),overview:xe()}}function wt(e,t){var r=[],n=[],a=[];(e=ee(e)).forEach(function(e,t){if(e.hasAttribute("data-fragment-index")){var a=parseInt(e.getAttribute("data-fragment-index"),10);r[a]||(r[a]=[]),r[a].push(e)}else n.push([e])});var i=0;return(r=r.concat(n)).forEach(function(e){e.forEach(function(e){a.push(e),e.setAttribute("data-fragment-index",i)}),i++}),!0===t?r:a}function At(e,t){var r={shown:[],hidden:[]};if(a&&v.fragments&&(t=t||wt(a.querySelectorAll(".fragment"))).length){var n=0;if("number"!=typeof e){var i=wt(a.querySelectorAll(".fragment.visible")).pop();i&&(e=parseInt(i.getAttribute("data-fragment-index")||0,10))}ee(t).forEach(function(t,a){t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),n=Math.max(n,a),a<=e?(t.classList.contains("visible")||r.shown.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),x.statusDiv.textContent=K(t),a===e&&(t.classList.add("current-fragment"),et(t))):(t.classList.contains("visible")&&r.hidden.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,n),-1),a.setAttribute("data-fragment",e)}return r}function kt(e,t){if(a&&v.fragments){var r=wt(a.querySelectorAll(".fragment"));if(r.length){if("number"!=typeof e){var n=wt(a.querySelectorAll(".fragment.visible")).pop();e=n?parseInt(n.getAttribute("data-fragment-index")||0,10):-1}"number"==typeof t&&(e+=t);var i=At(e,r);return i.hidden.length&&ce("fragmenthidden",{fragment:i.hidden[0],fragments:i.hidden}),i.shown.length&&ce("fragmentshown",{fragment:i.shown[0],fragments:i.shown}),Ye(),Ve(),v.fragmentInURL&<(),!(!i.shown.length&&!i.hidden.length)}}return!1}function Lt(){return kt(null,1)}function Et(){return kt(null,-1)}function St(){if(xt(),a&&!1!==v.autoSlide){var t=a.querySelector(".current-fragment");t||(t=a.querySelector(".fragment"));var r=t?t.getAttribute("data-autoslide"):null,n=a.parentNode?a.parentNode.getAttribute("data-autoslide"):null,i=a.getAttribute("data-autoslide");R=r?parseInt(r,10):i?parseInt(i,10):n?parseInt(n,10):v.autoSlide,0===a.querySelectorAll(".fragment").length&&ee(a.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&R&&1e3*e.duration/e.playbackRate>R&&(R=1e3*e.duration/e.playbackRate+1e3)}),!R||D||He()||xe()||e.isLastSlide()&&!Ge().next&&!0!==v.loop||(B=setTimeout(function(){"function"==typeof v.autoSlideMethod?v.autoSlideMethod():Ht(),St()},R),z=Date.now()),l&&l.setPlaying(-1!==B)}}function xt(){clearTimeout(B),B=-1}function qt(){R&&!D&&(D=!0,ce("autoslidepaused"),clearTimeout(B),l&&l.setPlaying(!1))}function Mt(){R&&D&&(D=!1,ce("autoslideresumed"),St())}function Nt(){v.rtl?(xe()||!1===Lt())&&Ze().left&&Be(t+1,"grid"===v.navigationMode?r:undefined):(xe()||!1===Et())&&Ze().left&&Be(t-1,"grid"===v.navigationMode?r:undefined)}function It(){A=!0,v.rtl?(xe()||!1===Et())&&Ze().right&&Be(t-1,"grid"===v.navigationMode?r:undefined):(xe()||!1===Lt())&&Ze().right&&Be(t+1,"grid"===v.navigationMode?r:undefined)}function Tt(){(xe()||!1===Et())&&Ze().up&&Be(t,r-1)}function Pt(){k=!0,(xe()||!1===Lt())&&Ze().down&&Be(t,r+1)}function Ct(){var e;if(!1===Et())if(Ze().up)Tt();else if(e=v.rtl?ee(x.wrapper.querySelectorAll(d+".future")).pop():ee(x.wrapper.querySelectorAll(d+".past")).pop()){var r=e.querySelectorAll("section").length-1||undefined;Be(t-1,r)}}function Ht(){if(A=!0,k=!0,!1===Lt()){var t=Ze();t.down&&t.right&&v.loop&&e.isLastVerticalSlide(a)&&(t.down=!1),t.down?Pt():v.rtl?Nt():It()}}function Rt(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function Bt(e){v.autoSlideStoppable&&qt()}function zt(e){Ne(),clearTimeout(C),C=setTimeout(Ie,v.hideCursorTime)}function Dt(e){e.shiftKey&&63===e.charCode&&fe()}function Ot(t){if("function"==typeof v.keyboardCondition&&!1===v.keyboardCondition(t))return!0;var r=t.keyCode,n=D;Bt();var a=document.activeElement&&"inherit"!==document.activeElement.contentEditable,i=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),o=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),s=t.shiftKey&&32===t.keyCode,l=t.shiftKey&&37===r,c=t.shiftKey&&39===r,d=!s&&!l&&!c&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(!(a||i||o||d)){var u,p=[66,86,190,191];if("object"==typeof v.keyboard)for(u in v.keyboard)"togglePause"===v.keyboard[u]&&p.push(parseInt(u,10));if(He()&&-1===p.indexOf(r))return!1;var f,h,g="linear"===v.navigationMode||!ft()||!ht(),m=!1;if("object"==typeof v.keyboard)for(u in v.keyboard)if(parseInt(u,10)===r){var b=v.keyboard[u];"function"==typeof b?b.apply(null,[t]):"string"==typeof b&&"function"==typeof e[b]&&e[b].call(),m=!0}if(!1===m)for(u in F)if(parseInt(u,10)===r){var y=F[u].callback;"function"==typeof y?y.apply(null,[t]):"string"==typeof y&&"function"==typeof e[y]&&e[y].call(),m=!0}!1===m&&(m=!0,80===r||33===r?Ct():78===r||34===r?Ht():72===r||37===r?l?Be(0):!xe()&&g?Ct():Nt():76===r||39===r?c?Be(Number.MAX_VALUE):!xe()&&g?Ht():It():75===r||38===r?!xe()&&g?Ct():Tt():74===r||40===r?!xe()&&g?Ht():Pt():36===r?Be(0):35===r?Be(Number.MAX_VALUE):32===r?(xe()&&Ee(),t.shiftKey?Ct():Ht()):58===r||59===r||66===r||86===r||190===r||191===r?Ce():70===r?(f=document.documentElement,(h=f.requestFullscreen||f.webkitRequestFullscreen||f.webkitRequestFullScreen||f.mozRequestFullScreen||f.msRequestFullscreen)&&h.apply(f)):65===r?v.autoSlideStoppable&&Re(n):m=!1),m?t.preventDefault&&t.preventDefault():27!==r&&79!==r||!N.transforms3d||(x.overlay?ve():Se(),t.preventDefault&&t.preventDefault()),St()}}function Wt(e){if(Rt(e.target))return!0;O.startX=e.touches[0].clientX,O.startY=e.touches[0].clientY,O.startCount=e.touches.length}function Ft(e){if(Rt(e.target))return!0;if(O.captured)f.match(/android/gi)&&e.preventDefault();else{Bt();var t=e.touches[0].clientX,r=e.touches[0].clientY;if(1===e.touches.length&&2!==O.startCount){var n=t-O.startX,i=r-O.startY;n>O.threshold&&Math.abs(n)>Math.abs(i)?(O.captured=!0,"linear"===v.navigationMode?v.rtl?Ht():Ct():Nt()):n<-O.threshold&&Math.abs(n)>Math.abs(i)?(O.captured=!0,"linear"===v.navigationMode?v.rtl?Ct():Ht():It()):i>O.threshold?(O.captured=!0,"linear"===v.navigationMode?Ct():Tt()):i<-O.threshold&&(O.captured=!0,"linear"===v.navigationMode?Ht():Pt()),v.embedded?(O.captured||Me(a))&&e.preventDefault():e.preventDefault()}}}function Ut(e){O.captured=!1}function Vt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Wt(e))}function jt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Ft(e))}function Kt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Ut())}function Yt(e){if(Date.now()-I>600){I=Date.now();var t=e.detail||-e.wheelDelta;t>0?Ht():t<0&&Ct()}}function Xt(e){Bt(),e.preventDefault();var t=ee(x.wrapper.querySelectorAll(d)).length,r=Math.floor(e.clientX/x.wrapper.offsetWidth*t);v.rtl&&(r=t-r),Be(r)}function _t(e){e.preventDefault(),Bt(),"linear"===v.navigationMode?Ct():Nt()}function $t(e){e.preventDefault(),Bt(),"linear"===v.navigationMode?Ht():It()}function Jt(e){e.preventDefault(),Bt(),Tt()}function Qt(e){e.preventDefault(),Bt(),Pt()}function Zt(e){e.preventDefault(),Bt(),Ct()}function Gt(e){e.preventDefault(),Bt(),Ht()}function er(e){st()}function tr(e){ge()}function rr(e){!1===(document.webkitHidden||document.msHidden||document.hidden)&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function nr(e){if(H&&xe()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled"))if(Ee(),t.nodeName.match(/section/gi))Be(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}function ar(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(r=t,ve(),x.overlay=document.createElement("div"),x.overlay.classList.add("overlay"),x.overlay.classList.add("overlay-preview"),x.wrapper.appendChild(x.overlay),x.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>','<a class="external" href="'+r+'" target="_blank"><span class="icon"></span></a>',"</header>",'<div class="spinner"></div>','<div class="viewport">','<iframe src="'+r+'"></iframe>','<small class="viewport-inner">','<span class="x-frame-error">Unable to load iframe. This is likely due to the site\'s policy (x-frame-options).</span>',"</small>","</div>"].join(""),x.overlay.querySelector("iframe").addEventListener("load",function(e){x.overlay.classList.add("loaded")},!1),x.overlay.querySelector(".close").addEventListener("click",function(e){ve(),e.preventDefault()},!1),x.overlay.querySelector(".external").addEventListener("click",function(e){ve()},!1),setTimeout(function(){x.overlay.classList.add("visible")},1),e.preventDefault())}var r}function ir(t){e.isLastSlide()&&!1===v.loop?(Be(0,0),Mt()):D?Mt():qt()}function or(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}return or.prototype.setPlaying=function(e){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()},or.prototype.animate=function(){var e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&N.requestAnimationFrameMethod.call(window,this.animate.bind(this))},or.prototype.render=function(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,r=this.diameter2,n=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var a=-Math.PI/2+e*(2*Math.PI),i=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(r,n,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(r,n,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(r,n,t,i,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(r-14,n-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()},or.prototype.on=function(e,t){this.canvas.addEventListener(e,t,!1)},or.prototype.off=function(e,t){this.canvas.removeEventListener(e,t,!1)},or.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},e={VERSION:"3.9.1",initialize:function(t){if(!0!==g)if(g=!0,function(){o=/(iphone|ipod|ipad|android)/gi.test(f)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,s=/chrome/i.test(f)&&!/edge/i.test(f);var e=document.createElement("div");N.transforms3d="WebkitPerspective"in e.style||"MozPerspective"in e.style||"msPerspective"in e.style||"OPerspective"in e.style||"perspective"in e.style,N.transforms2d="WebkitTransform"in e.style||"MozTransform"in e.style||"msTransform"in e.style||"OTransform"in e.style||"transform"in e.style,N.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,N.requestAnimationFrame="function"==typeof N.requestAnimationFrameMethod,N.canvas=!!document.createElement("canvas").getContext,N.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(f),N.zoom="zoom"in e.style&&!o&&(s||/Version\/[\d\.]+.*Safari/.test(f))}(),N.transforms2d||N.transforms3d){x.wrapper=document.querySelector(".reveal"),x.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",ge,!1);var r,n,a=e.getQueryHash();"undefined"!=typeof a.dependencies&&delete a.dependencies,G(v,t),G(v,a),v.hideAddressBar&&o&&(window.addEventListener("load",le,!1),window.addEventListener("orientationchange",le,!1)),r=[],n=0,v.dependencies.forEach(function(e){e.condition&&!e.condition()||(e.async?M.push(e):r.push(e))}),r.length?(n=r.length,r.forEach(function(e){j(e.src,function(){"function"==typeof e.callback&&e.callback(),0==--n&&U()})})):U()}else{document.body.setAttribute("class","no-transforms");for(var i=ee(document.getElementsByTagName("img")),l=ee(document.getElementsByTagName("iframe")),c=i.concat(l),d=0,u=c.length;d<u;d++){var p=c[d];p.getAttribute("data-src")&&(p.setAttribute("src",p.getAttribute("data-src")),p.removeAttribute("data-src"))}}},configure:J,sync:ze,syncSlide:function(e){$(e=e||a),De(e),Je(e),Xe(),Ue()},syncFragments:De,slide:Be,left:Nt,right:It,up:Tt,down:Pt,prev:Ct,next:Ht,navigateFragment:kt,prevFragment:Et,nextFragment:Lt,navigateTo:Be,navigateLeft:Nt,navigateRight:It,navigateUp:Tt,navigateDown:Pt,navigatePrev:Ct,navigateNext:Ht,layout:ge,shuffle:Oe,availableRoutes:Ze,availableFragments:Ge,toggleHelp:fe,toggleOverview:Se,togglePause:Ce,toggleAutoSlide:Re,isOverview:xe,isPaused:He,isAutoSliding:function(){return!(!R||D)},isSpeakerNotes:ot,loadSlide:Je,unloadSlide:Qe,addEventListeners:Q,removeEventListeners:Z,getState:yt,setState:function(e){if("object"==typeof e){Be(te(e.indexh),te(e.indexv),te(e.indexf));var t=te(e.paused),r=te(e.overview);"boolean"==typeof t&&t!==He()&&Ce(t),"boolean"==typeof r&&r!==xe()&&Se(r)}},getSlidePastCount:at,getProgress:it,getIndices:ct,getSlides:dt,getSlidesAttributes:function(){return dt().map(function(e){for(var t={},r=0;r<e.attributes.length;r++){var n=e.attributes[r];t[n.name]=n.value}return t})},getTotalSlides:vt,getSlide:gt,getSlideBackground:mt,getSlideNotes:bt,getHorizontalSlides:ut,getVerticalSlides:pt,hasHorizontalSlides:ft,hasVerticalSlides:ht,getPreviousSlide:function(){return n},getCurrentSlide:function(){return a},getScale:function(){return E},getConfig:function(){return v},getQueryHash:function(){var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e){var r=e[t];e[t]=te(unescape(r))}return e},getRevealElement:function(){return x.wrapper||document.querySelector(".reveal")},getPlugins:function(){return q},isFirstSlide:function(){return 0===t&&0===r},isLastSlide:function(){return!!a&&(!a.nextElementSibling&&(!Me(a)||!a.parentNode.nextElementSibling))},isLastVerticalSlide:function(){return!(!a||!Me(a))&&!a.nextElementSibling},isReady:function(){return m},addEventListener:function(t,r,n){"addEventListener"in window&&e.getRevealElement().addEventListener(t,r,n)},removeEventListener:function(t,r,n){"addEventListener"in window&&e.getRevealElement().removeEventListener(t,r,n)},addKeyBinding:function(e,t){"object"==typeof e&&e.keyCode?F[e.keyCode]={callback:t,key:e.key,description:e.description}:F[e]={callback:t,key:null,description:null}},removeKeyBinding:function(e){delete F[e]},registerPlugin:function(e,t){q[e]===undefined?(q[e]=t,m&&"function"==typeof t.init&&t.init()):console.warn('reveal.js: "'+e+'" plugin has already been registered')},hasPlugin:function(e){return!!q[e]},getPlugin:function(e){return q[e]},triggerKey:function(e){Ot({keyCode:e})},registerKeyboardShortcut:function(e,t){W[e]=t}}});
|