0){let a=.9;t+=s.querySelectorAll(".fragment.visible").length/e.length*a}}return Math.min(t/(e-1),1)}function ct(){return!!window.location.search.match(/receiver/gi)}function ut(){let t=window.location.hash,a=t.slice(2).split("/"),r=t.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(a[0])&&r.length){let t;try{t=document.getElementById(decodeURIComponent(r))}catch(e){}let a=!!s&&s.getAttribute("id")===r;if(t){if(!a){let a=e.getIndices(t);Oe(a.h,a.v)}}else Oe(n||0,i||0)}else{let e,t=f.hashOneBasedIndex?1:0,r=parseInt(a[0],10)-t||0,o=parseInt(a[1],10)-t||0;f.fragmentInURL&&(e=parseInt(a[2],10),isNaN(e)&&(e=void 0)),r===n&&o===i&&void 0===e||Oe(r,o,e)}}function pt(e){clearTimeout(q),"number"==typeof e?q=setTimeout(pt,e):s&&(f.history||!window.history?window.location.hash=Le():f.hash?window.history.replaceState(null,null,"#"+Le()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function ft(e){let t,a=n,r=i;if(e){let t=xe(e),n=t?e.parentNode:e,i=G(S.wrapper.querySelectorAll(".slides>section"));a=Math.max(i.indexOf(n),0),r=void 0,t&&(r=Math.max(G(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&s){if(s.querySelectorAll(".fragment").length>0){let e=s.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):s.querySelectorAll(".fragment.visible").length-1}}return{h:a,v:r,f:t}}function ht(){return G(S.wrapper.querySelectorAll('.slides section:not(.stack):not([data-visibility="uncounted"])'))}function gt(){return G(S.wrapper.querySelectorAll(".slides>section"))}function mt(){return G(S.wrapper.querySelectorAll(".slides>section>section"))}function vt(){return gt().length>1}function bt(){return mt().length>1}function yt(){return ht().length}function wt(e,t){let a=gt()[e],r=a&&a.querySelectorAll("section");return r&&r.length&&"number"==typeof t?r?r[t]:void 0:a}function At(e,t){let a="number"==typeof e?wt(e,t):e;if(a)return a.slideBackgroundElement}function kt(e=s){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}function Et(){let e=ft();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Te(),overview:Se()}}function St(e,t=!1){e=G(e);let a=[],r=[],n=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);a[t]||(a[t]=[]),a[t].push(e)}else r.push([e])}),a=a.concat(r);let i=0;return a.forEach(e=>{e.forEach(e=>{n.push(e),e.setAttribute("data-fragment-index",i)}),i++}),!0===t?a:n}function Lt(e,t){let a={shown:[],hidden:[]};if(s&&f.fragments&&(t=t||St(s.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}G(t).forEach((t,n)=>{t.hasAttribute("data-fragment-index")&&(n=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,n),n<=e?(t.classList.contains("visible")||a.shown.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),S.statusDiv.textContent=U(t),n===e&&(t.classList.add("current-fragment"),nt(t))):(t.classList.contains("visible")&&a.hidden.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),s.setAttribute("data-fragment",e)}return a}function xt(e,t=0){if(s&&f.fragments){let a=St(s.querySelectorAll(".fragment"));if(a.length){if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}let r=Lt(e+=t,a);return r.hidden.length&&se("fragmenthidden",{fragment:r.hidden[0],fragments:r.hidden}),r.shown.length&&se("fragmentshown",{fragment:r.shown[0],fragments:r.shown}),Ue(),$e(),f.fragmentInURL&&pt(),!(!r.shown.length&&!r.hidden.length)}}return!1}function Mt(){return xt(null,1)}function Nt(){return xt(null,-1)}function qt(){if(It(),s&&!1!==f.autoSlide){let t=s.querySelector(".current-fragment");t||(t=s.querySelector(".fragment"));let a=t?t.getAttribute("data-autoslide"):null,r=s.parentNode?s.parentNode.getAttribute("data-autoslide"):null,n=s.getAttribute("data-autoslide");O=a?parseInt(a,10):n?parseInt(n,10):r?parseInt(r,10):f.autoSlide,0===s.querySelectorAll(".fragment").length&&G(s.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-autoplay")&&O&&1e3*e.duration/e.playbackRate>O&&(O=1e3*e.duration/e.playbackRate+1e3)}),!O||B||Te()||Se()||e.isLastSlide()&&!rt().next&&!0!==f.loop||(D=setTimeout(()=>{"function"==typeof f.autoSlideMethod?f.autoSlideMethod():Ht(),qt()},O),R=Date.now()),p&&p.setPlaying(-1!==D)}}function It(){clearTimeout(D),D=-1}function Pt(){O&&!B&&(B=!0,se("autoslidepaused"),clearTimeout(D),p&&p.setPlaying(!1))}function Tt(){O&&B&&(B=!1,se("autoslideresumed"),qt())}function Ct(){y=!0,f.rtl?(Se()||!1===Mt())&&at().left&&Oe(n+1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Nt())&&at().left&&Oe(n-1,"grid"===f.navigationMode?i:void 0)}function Ot(){y=!0,f.rtl?(Se()||!1===Nt())&&at().right&&Oe(n-1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Mt())&&at().right&&Oe(n+1,"grid"===f.navigationMode?i:void 0)}function Dt(){(Se()||!1===Nt())&&at().up&&Oe(n,i-1)}function Rt(){w=!0,(Se()||!1===Mt())&&at().down&&Oe(n,i+1)}function Bt(){if(!1===Nt())if(at().up)Dt();else{let e;if(e=f.rtl?G(S.wrapper.querySelectorAll(".slides>section.future")).pop():G(S.wrapper.querySelectorAll(".slides>section.past")).pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Oe(n-1,t)}}}function Ht(){if(y=!0,w=!0,!1===Mt()){let t=at();t.down&&t.right&&f.loop&&e.isLastVerticalSlide(s)&&(t.down=!1),t.down?Rt():f.rtl?Ct():Ot()}}function zt(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function jt(e){f.autoSlideStoppable&&Pt()}function $t(e){Me(),clearTimeout(P),P=setTimeout(Ne,f.hideCursorTime)}function Wt(e){e.shiftKey&&63===e.charCode&&ue()}function Ft(t){if("function"==typeof f.keyboardCondition&&!1===f.keyboardCondition(t))return!0;let a=t.keyCode,r=B;jt();let n=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===a,d=t.shiftKey&&39===a,c=!s&&!l&&!d&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||i||o||c)return;let u,p=[66,86,190,191];if("object"==typeof f.keyboard)for(u in f.keyboard)"togglePause"===f.keyboard[u]&&p.push(parseInt(u,10));if(Te()&&-1===p.indexOf(a))return!1;let h="linear"===f.navigationMode||!vt()||!bt(),g=!1;if("object"==typeof f.keyboard)for(u in f.keyboard)if(parseInt(u,10)===a){var m=f.keyboard[u];"function"==typeof m?m.apply(null,[t]):"string"==typeof m&&"function"==typeof e[m]&&e[m].call(),g=!0}if(!1===g)for(u in j)if(parseInt(u,10)===a){let a=j[u].callback;"function"==typeof a?a.apply(null,[t]):"string"==typeof a&&"function"==typeof e[a]&&e[a].call(),g=!0}!1===g&&(g=!0,80===a||33===a?Bt():78===a||34===a?Ht():72===a||37===a?l?Oe(0):!Se()&&h?Bt():Ct():76===a||39===a?d?Oe(Number.MAX_VALUE):!Se()&&h?Ht():Ot():75===a||38===a?!Se()&&h?Bt():Dt():74===a||40===a?!Se()&&h?Ht():Rt():36===a?Oe(0):35===a?Oe(Number.MAX_VALUE):32===a?(Se()&&ke(),t.shiftKey?Bt():Ht()):58===a||59===a||66===a||86===a||190===a||191===a?Pe():70===a?function(){let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}():65===a?f.autoSlideStoppable&&Ce(r):g=!1),g?t.preventDefault&&t.preventDefault():27!==a&&79!==a||(S.overlay?fe():Ee(),t.preventDefault&&t.preventDefault()),qt()}function Ut(e){if(zt(e.target))return!0;H.startX=e.touches[0].clientX,H.startY=e.touches[0].clientY,H.startCount=e.touches.length}function Vt(e){if(zt(e.target))return!0;if(H.captured)t.match(/android/gi)&&e.preventDefault();else{jt();let t=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==H.startCount){let r=t-H.startX,n=a-H.startY;r>H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Ht():Bt():Ct()):r<-H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Bt():Ht():Ot()):n>H.threshold?(H.captured=!0,"linear"===f.navigationMode?Bt():Dt()):n<-H.threshold&&(H.captured=!0,"linear"===f.navigationMode?Ht():Rt()),f.embedded?(H.captured||xe(s))&&e.preventDefault():e.preventDefault()}}}function Xt(e){H.captured=!1}function Yt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Ut(e))}function Kt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Vt(e))}function _t(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Xt())}function Jt(e){if(Date.now()-N>600){N=Date.now();let t=e.detail||-e.wheelDelta;t>0?Ht():t<0&&Bt()}}function Qt(e){jt(),e.preventDefault();let t=gt().length,a=Math.floor(e.clientX/S.wrapper.offsetWidth*t);f.rtl&&(a=t-a),Oe(a)}function Zt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Bt():Ct()}function Gt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Ht():Ot()}function ea(e){e.preventDefault(),jt(),Dt()}function ta(e){e.preventDefault(),jt(),Rt()}function aa(e){e.preventDefault(),jt(),Bt()}function ra(e){e.preventDefault(),jt(),Ht()}function na(e){ut()}function ia(e){he()}function oa(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function sa(e){if(T&&Se()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled"))if(ke(),t.nodeName.match(/section/gi))Oe(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}function la(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(!function(e){fe(),S.overlay=document.createElement("div"),S.overlay.classList.add("overlay"),S.overlay.classList.add("overlay-preview"),S.wrapper.appendChild(S.overlay),S.overlay.innerHTML=`\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site's policy (x-frame-options).\n\t\t\t\t\n\t\t\t
`,S.overlay.querySelector("iframe").addEventListener("load",e=>{S.overlay.classList.add("loaded")},!1),S.overlay.querySelector(".close").addEventListener("click",e=>{fe(),e.preventDefault()},!1),S.overlay.querySelector(".external").addEventListener("click",e=>{fe()},!1)}(t),e.preventDefault())}}function da(t){e.isLastSlide()&&!1===f.loop?(Oe(0,0),Tt()):B?Tt():Pt()}return e={VERSION:"4.0.0-dev",initialize:function(a){if(!0===h)return;h=!0,function(){d=/(iphone|ipod|ipad|android)/gi.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,c=/chrome/i.test(t)&&!/edge/i.test(t);let e=document.createElement("div");M.zoom="zoom"in e.style&&!d&&(c||/Version\/[\d\.]+.*Safari/.test(t))}(),S.wrapper=document.querySelector(".reveal"),S.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",he,!1);let r=e.getQueryHash();var n,i;void 0!==r.dependencies&&delete r.dependencies,Z(f,a),Z(f,r),n=[],i=0,f.dependencies.forEach(e=>{e.condition&&!e.condition()||(e.async?x.push(e):n.push(e))}),n.length?(i=n.length,n.forEach(e=>{F(e.src,(function(){"function"==typeof e.callback&&e.callback(),0==--i&&$()}))})):$()},configure:_,sync:De,syncSlide:function(e=s){K(e),Re(e),et(e),Ve(),je()},syncFragments:Re,slide:Oe,left:Ct,right:Ot,up:Dt,down:Rt,prev:Bt,next:Ht,navigateTo:Oe,navigateLeft:Ct,navigateRight:Ot,navigateUp:Dt,navigateDown:Rt,navigatePrev:Bt,navigateNext:Ht,navigateFragment:xt,prevFragment:Nt,nextFragment:Mt,layout:he,shuffle:Be,availableRoutes:at,availableFragments:rt,toggleHelp:ue,toggleOverview:Ee,togglePause:Pe,toggleAutoSlide:Ce,isOverview:Se,isPaused:Te,isAutoSliding:function(){return!(!O||B)},isSpeakerNotes:ct,loadSlide:et,unloadSlide:tt,addEventListeners:J,removeEventListeners:Q,getState:Et,setState:function(e){if("object"==typeof e){Oe(ee(e.indexh),ee(e.indexv),ee(e.indexf));var t=ee(e.paused),a=ee(e.overview);"boolean"==typeof t&&t!==Te()&&Pe(t),"boolean"==typeof a&&a!==Se()&&Ee(a)}},getSlidePastCount:lt,getProgress:dt,getIndices:ft,getSlides:ht,getSlidesAttributes:function(){return ht().map((function(e){let t={};for(let a=0;ao,getCurrentSlide:()=>s,getScale:()=>k,getConfig:()=>f,getQueryHash:()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()});for(let t in e){let a=e[t];e[t]=ee(unescape(a))}return e},getRevealElement:()=>S.wrapper||document.querySelector(".reveal"),getPlugins:()=>L,isFirstSlide:()=>0===n&&0===i,isLastSlide:()=>!!s&&(!s.nextElementSibling&&(!xe(s)||!s.parentNode.nextElementSibling)),isLastVerticalSlide:()=>!(!s||!xe(s))&&!s.nextElementSibling,isReady:()=>g,addEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().addEventListener(t,a,r)},removeEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().removeEventListener(t,a,r)},triggerKey:e=>{Ft({keyCode:e})},registerKeyboardShortcut:(e,t)=>{z[e]=t}},e}()}]);