/*! * reveal.js 4.1.0 * https://revealjs.com * MIT licensed * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ const e=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/,t=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&i.path)}},i.exports),i.exports}var s=function(e){return e&&e.Math==Math&&e},r=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},l=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!d.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:d},h=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g={}.toString,v=function(e){return g.call(e).slice(8,-1)},p="".split,f=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==v(e)?p.call(e,""):Object(e)}:Object,m=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return f(m(e))},y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},w=function(e,t){if(!y(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!y(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!y(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!y(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},E={}.hasOwnProperty,S=function(e,t){return E.call(e,t)},R=r.document,A=y(R)&&y(R.createElement),k=!l&&!o((function(){return 7!=Object.defineProperty((e="div",A?R.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),x=Object.getOwnPropertyDescriptor,L={f:l?x:function(e,t){if(e=b(e),t=w(t,!0),k)try{return x(e,t)}catch(e){}if(S(e,t))return h(!u.f.call(e,t),e[t])}},C=function(e){if(!y(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,N={f:l?P:function(e,t,i){if(C(e),t=w(t,!0),C(i),k)try{return P(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},M=l?function(e,t,i){return N.f(e,t,h(1,i))}:function(e,t,i){return e[t]=i,e},I=function(e,t){try{M(r,e,t)}catch(i){r[e]=t}return t},D=r["__core-js_shared__"]||I("__core-js_shared__",{}),T=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(e){return T.call(e)});var O,z,H,U,B=D.inspectSource,q=r.WeakMap,F="function"==typeof q&&/native code/.test(B(q)),W=a((function(e){(e.exports=function(e,t){return D[e]||(D[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),j=0,$=Math.random(),V=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++j+$).toString(36)},K=W("keys"),_={},X=r.WeakMap;if(F){var Y=D.state||(D.state=new X),G=Y.get,J=Y.has,Q=Y.set;O=function(e,t){return t.facade=e,Q.call(Y,e,t),t},z=function(e){return G.call(Y,e)||{}},H=function(e){return J.call(Y,e)}}else{var Z=K[U="state"]||(K[U]=V(U));_[Z]=!0,O=function(e,t){return t.facade=e,M(e,Z,t),t},z=function(e){return S(e,Z)?e[Z]:{}},H=function(e){return S(e,Z)}}var ee={set:O,get:z,has:H,enforce:function(e){return H(e)?z(e):O(e,{})},getterFor:function(e){return function(t){var i;if(!y(t)||(i=z(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},te=a((function(e){var t=ee.get,i=ee.enforce,n=String(String).split("String");(e.exports=function(e,t,a,s){var o,l=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,c=!!s&&!!s.noTargetGet;"function"==typeof a&&("string"!=typeof t||S(a,"name")||M(a,"name",t),(o=i(a)).source||(o.source=n.join("string"==typeof t?t:""))),e!==r?(l?!c&&e[t]&&(d=!0):delete e[t],d?e[t]=a:M(e,t,a)):d?e[t]=a:I(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||B(this)}))})),ie=r,ne=function(e){return"function"==typeof e?e:void 0},ae=Math.ceil,se=Math.floor,re=function(e){return isNaN(e=+e)?0:(e>0?se:ae)(e)},oe=Math.min,le=function(e){return e>0?oe(re(e),9007199254740991):0},de=Math.max,ce=Math.min,ue=function(e){return function(t,i,n){var a,s=b(t),r=le(s.length),o=function(e,t){var i=re(e);return i<0?de(i+t,0):ce(i,t)}(n,r);if(e&&i!=i){for(;r>o;)if((a=s[o++])!=a)return!0}else for(;r>o;o++)if((e||o in s)&&s[o]===i)return e||o||0;return!e&&-1}},he={includes:ue(!0),indexOf:ue(!1)}.indexOf,ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ve={f:Object.getOwnPropertyNames||function(e){return function(e,t){var i,n=b(e),a=0,s=[];for(i in n)!S(_,i)&&S(n,i)&&s.push(i);for(;t.length>a;)S(n,i=t[a++])&&(~he(s,i)||s.push(i));return s}(e,ge)}},pe={f:Object.getOwnPropertySymbols},fe=function(e,t){return arguments.length<2?ne(ie[e])||ne(r[e]):ie[e]&&ie[e][t]||r[e]&&r[e][t]}("Reflect","ownKeys")||function(e){var t=ve.f(C(e)),i=pe.f;return i?t.concat(i(e)):t},me=function(e,t){for(var i=fe(t),n=N.f,a=L.f,s=0;s0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,d++),i=new RegExp("^(?:"+l+")",o)),ze&&(i=new RegExp("^"+l+"$(?!\\s)",o)),Te&&(t=s.lastIndex),n=Me.call(r?i:s,c),r?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:Te&&n&&(s.lastIndex=s.global?n.index+n[0].length:t),ze&&n&&n.length>1&&Ie.call(n[0],i,(function(){for(a=1;a")})),Ke="$0"==="a".replace(/./,"$0"),_e=je("replace"),Xe=!!/./[_e]&&""===/./[_e]("a","$0"),Ye=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Ge=function(e){return function(t,i){var n,a,s=String(m(t)),r=re(i),o=s.length;return r<0||r>=o?e?"":void 0:(n=s.charCodeAt(r))<55296||n>56319||r+1===o||(a=s.charCodeAt(r+1))<56320||a>57343?e?s.charAt(r):n:e?s.slice(r,r+2):a-56320+(n-55296<<10)+65536}},Je={codeAt:Ge(!1),charAt:Ge(!0)}.charAt,Qe=function(e,t,i){return t+(i?Je(e,t).length:1)},Ze=function(e,t){var i=e.exec;if("function"==typeof i){var n=i.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==v(e))throw TypeError("RegExp#exec called on incompatible receiver");return He.call(e,t)},et=Math.max,tt=Math.min,it=Math.floor,nt=/\$([$&'`]|\d\d?|<[^>]*>)/g,at=/\$([$&'`]|\d\d?)/g;!function(e,t,i,n){var a=je(e),s=!o((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),r=s&&!o((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[$e]=function(){return i},i.flags="",i[a]=/./[a]),i.exec=function(){return t=!0,null},i[a](""),!t}));if(!s||!r||"replace"===e&&(!Ve||!Ke||Xe)||"split"===e&&!Ye){var l=/./[a],d=i(a,""[e],(function(e,t,i,n,a){return t.exec===He?s&&!a?{done:!0,value:l.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Ke,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xe}),c=d[0],u=d[1];te(String.prototype,e,c),te(RegExp.prototype,a,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}n&&M(RegExp.prototype[a],"sham",!0)}("replace",2,(function(e,t,i,n){var a=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,s=n.REPLACE_KEEPS_$0,r=a?"$":"$0";return[function(i,n){var a=m(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,a,n):t.call(String(a),i,n)},function(e,n){if(!a&&s||"string"==typeof n&&-1===n.indexOf(r)){var l=i(t,e,this,n);if(l.done)return l.value}var d=C(e),c=String(this),u="function"==typeof n;u||(n=String(n));var h=d.global;if(h){var g=d.unicode;d.lastIndex=0}for(var v=[];;){var p=Ze(d,c);if(null===p)break;if(v.push(p),!h)break;""===String(p[0])&&(d.lastIndex=Qe(c,le(d.lastIndex),g))}for(var f,m="",b=0,y=0;y=b&&(m+=c.slice(b,E)+x,b=E+w.length)}return m+c.slice(b)}];function o(e,i,n,a,s,r){var o=n+e.length,l=a.length,d=at;return void 0!==s&&(s=Object(m(s)),d=nt),t.call(r,d,(function(t,r){var d;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,n);case"'":return i.slice(o);case"<":d=s[r.slice(1,-1)];break;default:var c=+r;if(0===c)return t;if(c>l){var u=it(c/10);return 0===u?t:u<=l?void 0===a[u-1]?r.charAt(1):a[u-1]+r.charAt(1):t}d=a[c-1]}return void 0===d?"":d}))}}));const st=(e,t)=>{for(let i in t)e[i]=t[i];return e},rt=(e,t)=>Array.from(e.querySelectorAll(t)),ot=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},lt=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},dt=(e,t)=>{e.style.transform=t},ct=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!(!i||!i.call(e,t))},ut=(e,t)=>{if("function"==typeof e.closest)return e.closest(t);for(;e;){if(ct(e,t))return e;e=e.parentNode}return null},ht=(e,t,i,n="")=>{let a=e.querySelectorAll("."+i);for(let t=0;t{let t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},vt=()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(t=>{e[t.split("=").shift()]=t.split("=").pop()}));for(let t in e){let i=e[t];e[t]=lt(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},pt=(e,t=0)=>{if(e){let i,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),i}return t},ft=navigator.userAgent,mt=document.createElement("div"),bt=/(iphone|ipod|ipad|android)/gi.test(ft)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,yt=/chrome/i.test(ft)&&!/edge/i.test(ft),wt=/android/gi.test(ft),Et="zoom"in mt.style&&!bt&&(yt||/Version\/[\d\.]+.*Safari/.test(ft));var St=n(a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?C(t(document.querySelectorAll(e)),i):C([e],i)[0]}}("undefined"==typeof window?null:window)})));class Rt{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){let t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){e.style.display=this.Reveal.getConfig().display,rt(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),rt(e,"video, audio").forEach((e=>{let t=0;rt(e,"source[data-src]").forEach((e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),bt&&"VIDEO"===e.tagName&&e.setAttribute("playsinline",""),t>0&&e.load()}));let i=e.slideBackgroundElement;if(i){i.style.display="block";let n=e.slideBackgroundContentElement,a=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");let s=e.getAttribute("data-background-image"),r=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),l=e.hasAttribute("data-background-video-muted");if(s)n.style.backgroundImage=s.split(",").map((e=>`url(${encodeURI(e.trim())})`)).join(",");else if(r&&!this.Reveal.isSpeakerNotes()){let e=document.createElement("video");o&&e.setAttribute("loop",""),l&&(e.muted=!0),bt&&(e.muted=!0,e.setAttribute("playsinline","")),r.split(",").forEach((t=>{e.innerHTML+=''})),n.appendChild(e)}else if(a&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttribute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribute("data-src",a),e.style.width="100%",e.style.height="100%",e.style.maxHeight="100%",e.style.maxWidth="100%",n.appendChild(e)}}let s=n.querySelector("iframe[data-src]");s&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(a)&&s.getAttribute("src")!==a&&s.setAttribute("src",a)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach((e=>{St(e,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})}))}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",rt(t,"iframe[src]").forEach((e=>{e.removeAttribute("src")}))),rt(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),rt(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}formatEmbeddedContent(){let e=(e,t,i)=>{rt(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+t+'"]').forEach((t=>{let n=t.getAttribute(e);n&&-1===n.indexOf(i)&&t.setAttribute(e,n+(/\?/.test(n)?"&":"?")+i)}))};e("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")}startEmbeddedContent(e){e&&!this.Reveal.isSpeakerNotes()&&(rt(e,'img[src$=".gif"]').forEach((e=>{e.setAttribute("src",e.getAttribute("src"))})),rt(e,"video, audio").forEach((e=>{if(ut(e,".fragment")&&!ut(e,".fragment.visible"))return;let t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!ut(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(bt){let t=e.play();t&&"function"==typeof t.catch&&!1===e.controls&&t.catch((()=>{e.controls=!0,e.addEventListener("play",(()=>{e.controls=!1}))}))}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)})),rt(e,"iframe[src]").forEach((e=>{ut(e,".fragment")&&!ut(e,".fragment.visible")||this.startEmbeddedIframe({target:e})})),rt(e,"iframe[data-src]").forEach((e=>{ut(e,".fragment")&&!ut(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}startEmbeddedMedia(e){let t=!!ut(e.target,"html"),i=!!ut(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&&t.contentWindow){let i=!!ut(e.target,"html"),n=!!ut(e.target,".present");if(i&&n){let e=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribute("data-autoplay")||!!ut(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=st({unloadIframes:!0},t),e&&e.parentNode&&(rt(e,"video, audio").forEach((e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),rt(e,"iframe").forEach((e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)})),rt(e,'iframe[src*="youtube.com/embed/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),rt(e,'iframe[src*="player.vimeo.com/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===t.unloadIframes&&rt(e,"iframe[data-src]").forEach((e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}class At{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t,i=this.Reveal.getConfig(),n="h.v";if("function"==typeof i.slideNumber)t=i.slideNumber(e);else{"string"==typeof i.slideNumber&&(n=i.slideNumber),/c/.test(n)||1!==this.Reveal.getHorizontalSlides().length||(n="c");let a=e&&"uncounted"===e.dataset.visibility?0:1;switch(t=[],n){case"c":t.push(this.Reveal.getSlidePastCount(e)+a);break;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+a,"/",this.Reveal.getTotalSlides());break;default:let i=this.Reveal.getIndices(e);t.push(i.h+a);let s="h/v"===n?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(s,i.v+1)}}let a="#"+this.Reveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],a)}formatNumber(e,t,i,n="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i)?`\n\t\t\t\t\t${e}\n\t\t\t\t\t`:`\n\t\t\t\t\t${e}\n\t\t\t\t\t${t}\n\t\t\t\t\t${i}\n\t\t\t\t\t`}}const kt=e=>{let 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)};let i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};let 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)};let 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};class xt{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach((e=>{let t=this.createBackground(e,this.element);rt(e,"section").forEach((e=>{this.createBackground(e,t),t.classList.add("stack")}))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout((()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(e,t){let i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");let n=document.createElement("div");return n.className="slide-background-content",i.appendChild(n),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=n,this.sync(e),i}sync(e){const t=e.slideBackgroundElement,i=e.slideBackgroundContentElement,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")},a=e.hasAttribute("data-preload");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="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",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),a&&t.setAttribute("data-preload",""),n.backgroundSize&&(i.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(i.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(i.style.backgroundPosition=n.backgroundPosition),n.backgroundOpacity&&(i.style.opacity=n.backgroundOpacity);let s=n.backgroundColor;if(!s||!kt(s)){let e=window.getComputedStyle(t);e&&e.backgroundColor&&(s=e.backgroundColor)}if(s){const t=kt(s);t&&0!==t.a&&("string"==typeof(r=s)&&(r=kt(r)),(r?(299*r.r+587*r.g+114*r.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}var r}update(e=!1){let t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),n=null,a=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach(((t,r)=>{t.classList.remove("past","present","future"),ri.h?t.classList.add(s):(t.classList.add("present"),n=t),(e||r===i.h)&&rt(t,".slide-background").forEach(((e,t)=>{e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),r===i.h&&(n=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),n){this.Reveal.slideContent.startEmbeddedContent(n);let e=n.querySelector(".slide-background-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.style.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImage=t)}let t=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,i=n.getAttribute("data-background-hash");i&&i===t&&n!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=n}t&&["has-light-background","has-dark-background"].forEach((e=>{t.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)}),this),setTimeout((()=>{this.element.classList.remove("no-transition")}),1)}updateParallax(){let e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,n=this.Reveal.getHorizontalSlides(),a=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" ");1===s.length?t=i=parseInt(s[0],10):(t=parseInt(s[0],10),i=parseInt(s[1],10));let r,o,l=this.element.offsetWidth,d=n.length;r="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:d>1?(t-l)/(d-1):0,o=r*e.h*-1;let c,u,h=this.element.offsetHeight,g=a.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-h)/(g-1),u=g>0?c*e.v:0,this.element.style.backgroundPosition=o+"px "+-u+"px"}}}let Lt=0;class Ct{constructor(e){this.Reveal=e}run(e,t){if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||gt();let i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";let n=this.Reveal.getSlides();i.slideDirection=n.indexOf(t)>n.indexOf(e)?"forward":"backward";let a=this.getAutoAnimatableElements(e,t).map((e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,Lt++)));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){let e=.8*i.duration,n=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach((e=>{let t=this.getAutoAnimateOptions(e,i),n="unmatched";t.duration===i.duration&&t.delay===i.delay||(n="unmatched-"+Lt++,a.push(`[data-auto-animate="running"] [data-auto-animate-target="${n}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)),e.dataset.autoAnimateTarget=n}),this),a.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${n}s; }`)}this.autoAnimateStyleSheet.innerHTML=a.join(""),requestAnimationFrame((()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}reset(){rt(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((e=>{e.dataset.autoAnimate=""})),rt(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((e=>{delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e,i,n,a,s){e.dataset.autoAnimateTarget="",i.dataset.autoAnimateTarget=s;let r=this.getAutoAnimateOptions(i,a);void 0!==n.delay&&(r.delay=n.delay),void 0!==n.duration&&(r.duration=n.duration),void 0!==n.easing&&(r.easing=n.easing);let o=this.getAutoAnimatableProperties("from",e,n),l=this.getAutoAnimatableProperties("to",i,n);if(i.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment"))){(e.className.match(t)||[""])[0]===(i.className.match(t)||[""])[0]&&"forward"===a.slideDirection&&i.classList.add("visible","disabled")}if(!1!==n.translate||!1!==n.scale){let e=this.Reveal.getScale(),t={x:(o.x-l.x)/e,y:(o.y-l.y)/e,scaleX:o.width/l.width,scaleY:o.height/l.height};t.x=Math.round(1e3*t.x)/1e3,t.y=Math.round(1e3*t.y)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3;let i=!1!==n.translate&&(0!==t.x||0!==t.y),a=!1!==n.scale&&(0!==t.scaleX||0!==t.scaleY);if(i||a){let e=[];i&&e.push(`translate(${t.x}px, ${t.y}px)`),a&&e.push(`scale(${t.scaleX}, ${t.scaleY})`),o.styles.transform=e.join(" "),o.styles["transform-origin"]="top left",l.styles.transform="none"}}for(let e in l.styles){const t=l.styles[e],i=o.styles[e];t===i?delete l.styles[e]:(!0===t.explicitValue&&(l.styles[e]=t.value),!0===i.explicitValue&&(o.styles[e]=i.value))}let d="",c=Object.keys(l.styles);if(c.length>0){o.styles.transition="none",l.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,l.styles["transition-property"]=c.join(", "),l.styles["will-change"]=c.join(", "),d='[data-auto-animate-target="'+s+'"] {'+Object.keys(o.styles).map((e=>e+": "+o.styles[e]+" !important;")).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+s+'"] {'+Object.keys(l.styles).map((e=>e+": "+l.styles[e]+" !important;")).join("")+"}"}return d}getAutoAnimateOptions(e,t){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=st(i,t),e.parentNode){let t=ut(e.parentNode,"[data-auto-animate-target]");t&&(i=this.getAutoAnimateOptions(t,i))}return e.dataset.autoAnimateEasing&&(i.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(i.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(i.delay=parseFloat(e.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(e,t,i){let n=this.Reveal.getConfig(),a={styles:[]};if(!1!==i.translate||!1!==i.scale){let e;if("function"==typeof i.measure)e=i.measure(t);else if(n.center)e=t.getBoundingClientRect();else{let i=this.Reveal.getScale();e={x:t.offsetLeft*i,y:t.offsetTop*i,width:t.offsetWidth*i,height:t.offsetHeight*i}}a.x=e.x,a.y=e.y,a.width=e.width,a.height=e.height}const s=getComputedStyle(t);return(i.styles||n.autoAnimateStyles).forEach((t=>{let i;"string"==typeof t&&(t={property:t}),i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:s[t.property],""!==i&&(a.styles[t.property]=i)})),a}getAutoAnimatableElements(e,t){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),n=[];return i.filter(((e,t)=>{if(-1===n.indexOf(e.to))return n.push(e.to),!0}))}getAutoAnimatePairs(e,t){let i=[];const n="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",(e=>e.nodeName+":::"+e.getAttribute("data-id"))),this.findAutoAnimateMatches(i,e,t,n,(e=>e.nodeName+":::"+e.innerText)),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",(e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src")))),this.findAutoAnimateMatches(i,e,t,"pre",(e=>e.nodeName+":::"+e.innerText)),i.forEach((e=>{ct(e.from,n)?e.options={scale:!1}:ct(e.from,"pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",(e=>e.textContent),{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(e=>e.getAttribute("data-line-number")),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))}),this),i}getLocalBoundingBox(e){const t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}findAutoAnimateMatches(e,t,i,n,a,s){let r={},o={};[].slice.call(t.querySelectorAll(n)).forEach(((e,t)=>{const i=a(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))})),[].slice.call(i.querySelectorAll(n)).forEach(((t,i)=>{const n=a(t);let l;if(o[n]=o[n]||[],o[n].push(t),r[n]){const e=o[n].length-1,t=r[n].length-1;r[n][e]?(l=r[n][e],r[n][e]=null):r[n][t]&&(l=r[n][t],r[n][t]=null)}l&&e.push({from:l,to:t,options:s})}))}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce(((e,t)=>{const i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e}),[])}}class Pt{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){rt(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classList.add("visible"),e.classList.remove("current-fragment")}))}enable(){rt(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")}))}availableRoutes(){let e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){let t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(e,t=!1){e=Array.from(e);let i=[],n=[],a=[];e.forEach((e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else n.push([e])})),i=i.concat(n);let s=0;return i.forEach((e=>{e.forEach((e=>{a.push(e),e.setAttribute("data-fragment-index",s)})),s++})),!0===t?i:a}sortAll(){this.Reveal.getHorizontalSlides().forEach((e=>{let t=rt(e,"section");t.forEach(((e,t)=>{this.sort(e.querySelectorAll(".fragment"))}),this),0===t.length&&this.sort(e.querySelectorAll(".fragment"))}))}update(e,t){let i={shown:[],hidden:[]},n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments&&(t=t||this.sort(n.querySelectorAll(".fragment"))).length){let a=0;if("number"!=typeof e){let t=this.sort(n.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach(((t,n)=>{if(t.hasAttribute("data-fragment-index")&&(n=parseInt(t.getAttribute("data-fragment-index"),10)),a=Math.max(a,n),n<=e){let a=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),n===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),a||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{let e=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),e&&(this.Reveal.slideContent.stopEmbeddedContent(t),i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,a),-1),n.setAttribute("data-fragment",e)}return i}sync(e=this.Reveal.getCurrentSlide()){return this.sort(e.querySelectorAll(".fragment"))}goto(e,t=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let n=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(n.length){if("number"!=typeof e){let t=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}e+=t;let a=this.update(e,n);return a.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:a.hidden[0],fragments:a.hidden}}),a.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:a.shown[0],fragments:a.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!a.shown.length&&!a.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class Nt{constructor(e){this.Reveal=e,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),rt(this.Reveal.getRevealElement(),".slides section").forEach((e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)}));const e=70,t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+e,this.overviewSlideHeight=t.height+e,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach(((e,t)=>{e.setAttribute("data-index-h",t),dt(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&rt(e,"section").forEach(((e,i)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",i),dt(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0)")}))})),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach(((e,t)=>{dt(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),rt(e,".slide-background").forEach(((e,t)=>{dt(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")}))}))}update(){const e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout((()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")}),1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),rt(this.Reveal.getRevealElement(),".slides section").forEach((e=>{dt(e,""),e.removeEventListener("click",this.onSlideClicked,!0)})),rt(this.Reveal.getBackgroundsElement(),".slide-background").forEach((e=>{dt(e,"")})),this.Reveal.transformSlides({overview:""});const e=this.Reveal.getIndices();this.Reveal.slide(e.h,e.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(e){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){let e=parseInt(t.getAttribute("data-index-h"),10),i=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(e,i)}}}}class Mt{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="Last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(e,t){"object"==typeof e&&e.keyCode?this.bindings[e.keyCode]={callback:t,key:e.key,description:e.description}:this.bindings[e]={callback:t,key:null,description:null}}removeKeyBinding(e){delete this.bindings[e]}triggerKey(e){this.onDocumentKeyDown({keyCode:e})}registerKeyboardShortcut(e,t){this.shortcuts[e]=t}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(e){e.shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){let t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;let i=e.keyCode,n=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);let a=document.activeElement&&!0===document.activeElement.isContentEditable,s=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!o&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(a||s||r||c)return;let u,h=[66,86,190,191];if("object"==typeof t.keyboard)for(u in t.keyboard)"togglePause"===t.keyboard[u]&&h.push(parseInt(u,10));if(this.Reveal.isPaused()&&-1===h.indexOf(i))return!1;let g="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),v=!1;if("object"==typeof t.keyboard)for(u in t.keyboard)if(parseInt(u,10)===i){let i=t.keyboard[u];"function"==typeof i?i.apply(null,[e]):"string"==typeof i&&"function"==typeof this.Reveal[i]&&this.Reveal[i].call(),v=!0}if(!1===v)for(u in this.bindings)if(parseInt(u,10)===i){let t=this.bindings[u].callback;"function"==typeof t?t.apply(null,[e]):"string"==typeof t&&"function"==typeof this.Reveal[t]&&this.Reveal[t].call(),v=!0}!1===v&&(v=!0,80===i||33===i?this.Reveal.prev():78===i||34===i?this.Reveal.next():72===i||37===i?l?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&g?this.Reveal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&g?this.Reveal.next():this.Reveal.right():75===i||38===i?!this.Reveal.overview.isActive()&&g?this.Reveal.prev():this.Reveal.up():74===i||40===i?!this.Reveal.overview.isActive()&&g?this.Reveal.next():this.Reveal.down():36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(Number.MAX_VALUE):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev():this.Reveal.next()):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(e=>{let t=(e=e||document.documentElement).requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)})(t.embedded?this.Reveal.getViewportElement():document.documentElement):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(n):v=!1),v?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class It{constructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}readURL(){let e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),n=window.location.hash,a=n.slice(2).split("/"),s=n.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(a[0])&&s.length){let e,n;/\/[-\d]+$/g.test(s)&&(n=parseInt(s.split("/").pop(),10),n=isNaN(n)?void 0:n,s=s.split("/").shift());try{e=document.getElementById(decodeURIComponent(s))}catch(e){}let a=!!i&&i.getAttribute("id")===s;if(e){if(!a||void 0!==n){let t=this.Reveal.getIndices(e);this.Reveal.slide(t.h,t.v,n)}}else this.Reveal.slide(t.h||0,t.v||0)}else{let i,n=e.hashOneBasedIndex?1:0,s=parseInt(a[0],10)-n||0,r=parseInt(a[1],10)-n||0;e.fragmentInURL&&(i=parseInt(a[2],10),isNaN(i)&&(i=void 0)),s===t.h&&r===t.v&&void 0===i||this.Reveal.slide(s,r,i)}}writeURL(e){let t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof e)this.writeURLTimeout=setTimeout(this.writeURL,e);else if(i){let e=this.getHash();t.history?window.location.hash=e:t.hash&&("/"===e?window.history.replaceState(null,null,window.location.pathname+window.location.search):window.history.replaceState(null,null,"#"+e))}}getHash(e){let t="/",i=e||this.Reveal.getCurrentSlide(),n=i?i.getAttribute("id"):null;n&&(n=encodeURIComponent(n));let a=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(a.f=void 0),"string"==typeof n&&n.length)t="/"+n,a.f>=0&&(t+="/"+a.f);else{let e=this.Reveal.getConfig().hashOneBasedIndex?1:0;(a.h>0||a.v>0||a.f>=0)&&(t+=a.h+e),(a.v>0||a.f>=0)&&(t+="/"+(a.v+e)),a.f>=0&&(t+="/"+a.f)}return t}onWindowHashChange(e){this.readURL()}}class Dt{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=rt(t,".navigate-left"),this.controlsRight=rt(t,".navigate-right"),this.controlsUp=rt(t,".navigate-up"),this.controlsDown=rt(t,".navigate-down"),this.controlsPrev=rt(t,".navigate-prev"),this.controlsNext=rt(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}bind(){let e=["touchstart","click"];wt&&(e=["touchstart"]),e.forEach((e=>{this.controlsLeft.forEach((t=>t.addEventListener(e,this.onNavigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.addEventListener(e,this.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.addEventListener(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.addEventListener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.addEventListener(e,this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.addEventListener(e,this.onNavigateNextClicked,!1)))}))}unbind(){["touchstart","click"].forEach((e=>{this.controlsLeft.forEach((t=>t.removeEventListener(e,this.onNavigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.removeEventListener(e,this.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.removeEventListener(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.removeEventListener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.removeEventListener(e,this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.removeEventListener(e,this.onNavigateNextClicked,!1)))}))}update(){let e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach((e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}));let t=this.Reveal.getCurrentSlide();if(t){let e=this.Reveal.fragments.availableRoutes();e.prev&&this.controlsPrev.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsNext.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(e.prev&&this.controlsUp.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsDown.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(e.prev&&this.controlsLeft.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsRight.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){let t=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===t.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===t.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class Tt{constructor(e){this.Reveal=e,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(e,t){this.element.style.display=e.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let e=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(e=0),this.bar.style.transform="scaleX("+e+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();let t=this.Reveal.getSlides(),i=t.length,n=Math.floor(e.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(n=i-n);let a=this.Reveal.getIndices(t[n]);this.Reveal.slide(a.h,a.v)}}class Ot{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}onDocumentCursorActive(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}const zt=(e,t)=>{const i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});const n=document.querySelector("head");n.insertBefore(i,n.lastChild)};class Ht{constructor(e){this.Reveal=e,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(e,t){return this.state="loading",e.forEach(this.registerPlugin.bind(this)),new Promise((e=>{let i=[],n=0;if(t.forEach((e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))})),i.length){n=i.length;const t=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--n&&this.initPlugins().then(e)};i.forEach((e=>{"string"==typeof e.id?(this.registerPlugin(e),t(e)):"string"==typeof e.src?zt(e.src,(()=>t(e))):(console.warn("Unrecognized plugin format",e),t())}))}else this.initPlugins().then(e)}))}initPlugins(){return new Promise((e=>{let t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{let n,a=()=>{0==--i?this.loadAsync().then(e):n()},s=0;n=()=>{let e=t[s++];if("function"==typeof e.init){let t=e.init(this.Reveal);t&&"function"==typeof t.then?t.then(a):a()}else a()},n()}}))}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach((e=>{zt(e.src,e.callback)})),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());let t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}hasPlugin(e){return!!this.registeredPlugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegisteredPlugins(){return this.registeredPlugins}}class Ut{constructor(e){this.Reveal=e}async setupPDF(){const e=this.Reveal.getConfig(),t=rt(this.Reveal.getRevealElement(),".slides section"),i=e.slideNumber&&/all|print/i.test(e.showSlideNumber),n=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),a=Math.floor(n.width*(1+e.margin)),s=Math.floor(n.height*(1+e.margin)),r=n.width,o=n.height;await new Promise(requestAnimationFrame),gt("@page{size:"+a+"px "+s+"px; margin: 0px;}"),gt(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+r+"px; max-height:"+o+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=a+"px",document.body.style.height=s+"px",await new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(r,o),t.forEach((e=>this.Reveal.slideContent.layout(e))),await new Promise(requestAnimationFrame);const l=t.map((e=>e.scrollHeight)),d=[],c=t[0].parentNode;t.forEach((function(t,n){if(!1===t.classList.contains("stack")){let c=(a-r)/2,u=(s-o)/2;const h=l[n];let g=Math.max(Math.ceil(h/s),1);g=Math.min(g,e.pdfMaxPagesPerSlide),(1===g&&e.center||t.classList.contains("center"))&&(u=Math.max((s-h)/2,0));const v=document.createElement("div");if(d.push(v),v.className="pdf-page",v.style.height=(s+e.pdfPageHeightOffset)*g+"px",v.appendChild(t),t.style.left=c+"px",t.style.top=u+"px",t.style.width=r+"px",t.slideBackgroundElement&&v.insertBefore(t.slideBackgroundElement,t),e.showNotes){const i=this.Reveal.getSlideNotes(t);if(i){const t=8,n="string"==typeof e.showNotes?e.showNotes:"inline",s=document.createElement("div");s.classList.add("speaker-notes"),s.classList.add("speaker-notes-pdf"),s.setAttribute("data-layout",n),s.innerHTML=i,"separate-page"===n?d.push(s):(s.style.left=t+"px",s.style.bottom=t+"px",s.style.width=a-2*t+"px",v.appendChild(s))}}if(i){const e=n+1,t=document.createElement("div");t.classList.add("slide-number"),t.classList.add("slide-number-pdf"),t.innerHTML=e,v.appendChild(t)}if(e.pdfSeparateFragments){const e=this.Reveal.fragments.sort(v.querySelectorAll(".fragment"),!0);let t;e.forEach((function(e){t&&t.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);const i=v.cloneNode(!0);d.push(i),t=e}),this),e.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else rt(v,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),await new Promise(requestAnimationFrame),d.forEach((e=>c.appendChild(e))),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class Bt{constructor(e){this.Reveal=e,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(e){if(ct(e,"video, audio"))return!0;for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevented(e.target))return!0;let t=this.Reveal.getConfig();if(this.touchCaptured)wt&&e.preventDefault();else{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,n=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){let a=this.Reveal.availableRoutes({includeFragments:!0}),s=i-this.touchStartX,r=n-this.touchStartY;s>40&&Math.abs(s)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):s<-40&&Math.abs(s)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&a.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&a.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&e.preventDefault():e.preventDefault()}}}onTouchEnd(e){this.touchCaptured=!1}onPointerDown(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class qt{constructor(e){this.Reveal=e,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(e,t){e.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){let t=ut(e.target,".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class Ft{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){e.showNotes&&this.element.setAttribute("data-layout","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(e=this.Reveal.getCurrentSlide()){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}}class Wt{constructor(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()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,n=this.diameter2,a=28;this.progressOffset+=.1*(1-this.progressOffset);const s=-Math.PI/2+e*(2*Math.PI),r=-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(i,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(i,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(i,n,t,r,s,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,n-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,a),this.context.fillRect(18,0,10,a)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,a),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var jt={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,respondToHashChanges:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,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:[],plugins:[]};function $t(t,i){arguments.length<2&&(i=arguments[0],t=document.querySelector(".reveal"));const n={};let a,s,r,o,l,d={},c=!1,u={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,v={layout:"",overview:""},p={},f="idle",m=0,b=0,y=-1,w=!1,E=new Rt(n),S=new At(n),R=new Ct(n),A=new xt(n),k=new Pt(n),x=new Nt(n),L=new Mt(n),C=new It(n),P=new Dt(n),N=new Tt(n),M=new Ot(n),I=new Ht(n),D=new Ut(n),T=new qt(n),O=new Bt(n),z=new Ft(n);function H(e){return p.wrapper=t,p.slides=t.querySelector(".slides"),d={...jt,...d,...i,...e,...vt()},U(),window.addEventListener("load",oe,!1),I.load(d.plugins,d.dependencies).then(B),new Promise((e=>n.on("ready",e)))}function U(){!0===d.embedded?p.viewport=ut(t,".reveal-viewport")||t:(p.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),p.viewport.classList.add("reveal-viewport")}function B(){c=!0,q(),F(),K(),V(),ke(),_(),C.readURL(),A.update(!0),setTimeout((()=>{p.slides.classList.remove("no-transition"),p.wrapper.classList.add("ready"),Z({type:"ready",data:{indexh:a,indexv:s,currentSlide:o}})}),1),D.isPrintingPDF()&&(Y(),"complete"===document.readyState?D.setupPDF():window.addEventListener("load",(()=>{D.setupPDF()})))}function q(){d.showHiddenSlides||rt(p.wrapper,'section[data-visibility="hidden"]').forEach((e=>{e.parentNode.removeChild(e)}))}function F(){p.slides.classList.add("no-transition"),bt?p.wrapper.classList.add("no-hover"):p.wrapper.classList.remove("no-hover"),A.render(),S.render(),P.render(),N.render(),z.render(),p.pauseOverlay=ht(p.wrapper,"div","pause-overlay",d.controls?'':null),p.statusElement=W(),p.wrapper.setAttribute("role","application")}function W(){let e=p.wrapper.querySelector(".aria-status");return e||(e=document.createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),p.wrapper.appendChild(e)),e}function j(e){p.statusElement.textContent=e}function $(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let i=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===i||n||Array.from(e.childNodes).forEach((e=>{t+=$(e)}))}return t=t.trim(),""===t?"":t+" "}function V(){setInterval((()=>{0===p.wrapper.scrollTop&&0===p.wrapper.scrollLeft||(p.wrapper.scrollTop=0,p.wrapper.scrollLeft=0)}),1e3)}function K(){d.postMessage&&window.addEventListener("message",(t=>{let i=t.data;if("string"==typeof i&&"{"===i.charAt(0)&&"}"===i.charAt(i.length-1)&&(i=JSON.parse(i),i.method&&"function"==typeof n[i.method]))if(!1===e.test(i.method)){const e=n[i.method].apply(n,i.args);ee("callback",{method:i.method,result:e})}else console.warn('reveal.js: "'+i.method+'" is is blacklisted from the postMessage API')}),!1)}function _(e){const t={...d};if("object"==typeof e&&st(d,e),!1===n.isReady())return;const i=p.wrapper.querySelectorAll(".slides section").length;p.wrapper.classList.remove(t.transition),p.wrapper.classList.add(d.transition),p.wrapper.setAttribute("data-transition-speed",d.transitionSpeed),p.wrapper.setAttribute("data-background-transition",d.backgroundTransition),p.viewport.style.setProperty("--slide-width",d.width+"px"),p.viewport.style.setProperty("--slide-height",d.height+"px"),d.shuffle&&xe(),ot(p.wrapper,"embedded",d.embedded),ot(p.wrapper,"rtl",d.rtl),ot(p.wrapper,"center",d.center),!1===d.pause&&me(),d.previewLinks?(te(),ie("[data-preview-link=false]")):(ie(),te("[data-preview-link]:not([data-preview-link=false])")),R.reset(),l&&(l.destroy(),l=null),i>1&&d.autoSlide&&d.autoSlideStoppable&&(l=new Wt(p.wrapper,(()=>Math.min(Math.max((Date.now()-y)/m,0),1))),l.on("click",gt),w=!1),"default"!==d.navigationMode?p.wrapper.setAttribute("data-navigation-mode",d.navigationMode):p.wrapper.removeAttribute("data-navigation-mode"),z.configure(d,t),T.configure(d,t),M.configure(d,t),P.configure(d,t),N.configure(d,t),L.configure(d,t),k.configure(d,t),S.configure(d,t),Re()}function X(){window.addEventListener("resize",nt,!1),d.touch&&O.bind(),d.keyboard&&L.bind(),d.progress&&N.bind(),d.respondToHashChanges&&C.bind(),P.bind(),T.bind(),p.slides.addEventListener("transitionend",it,!1),p.pauseOverlay.addEventListener("click",me,!1),d.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",at,!1)}function Y(){O.unbind(),T.unbind(),L.unbind(),P.unbind(),N.unbind(),C.unbind(),window.removeEventListener("resize",nt,!1),p.slides.removeEventListener("transitionend",it,!1),p.pauseOverlay.removeEventListener("click",me,!1)}function G(e,i,n){t.addEventListener(e,i,n)}function J(e,i,n){t.removeEventListener(e,i,n)}function Q(e){"string"==typeof e.layout&&(v.layout=e.layout),"string"==typeof e.overview&&(v.overview=e.overview),v.layout?dt(p.slides,v.layout+" "+v.overview):dt(p.slides,v.overview)}function Z({target:e=p.wrapper,type:t,data:i,bubbles:n=!0}){let a=document.createEvent("HTMLEvents",1,2);a.initEvent(t,n,!0),st(a,i),e.dispatchEvent(a),e===p.wrapper&&ee(t)}function ee(e,t){if(d.postMessageEvents&&window.parent!==window.self){let i={namespace:"reveal",eventName:e,state:je()};st(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function te(e="a"){Array.from(p.wrapper.querySelectorAll(e)).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",ct,!1)}))}function ie(e="a"){Array.from(p.wrapper.querySelectorAll(e)).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",ct,!1)}))}function ne(e){re(),p.overlay=document.createElement("div"),p.overlay.classList.add("overlay"),p.overlay.classList.add("overlay-preview"),p.wrapper.appendChild(p.overlay),p.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
`,p.overlay.querySelector("iframe").addEventListener("load",(e=>{p.overlay.classList.add("loaded")}),!1),p.overlay.querySelector(".close").addEventListener("click",(e=>{re(),e.preventDefault()}),!1),p.overlay.querySelector(".external").addEventListener("click",(e=>{re()}),!1)}function ae(e){"boolean"==typeof e?e?se():re():p.overlay?re():se()}function se(){if(d.help){re(),p.overlay=document.createElement("div"),p.overlay.classList.add("overlay"),p.overlay.classList.add("overlay-help"),p.wrapper.appendChild(p.overlay);let e='

Keyboard Shortcuts


',t=L.getShortcuts(),i=L.getBindings();e+="";for(let i in t)e+=``;for(let t in i)i[t].key&&i[t].description&&(e+=``);e+="
KEYACTION
${i}${t[i]}
${i[t].key}${i[t].description}
",p.overlay.innerHTML=`\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${e}
\n\t\t\t\t
\n\t\t\t`,p.overlay.querySelector(".close").addEventListener("click",(e=>{re(),e.preventDefault()}),!1)}}function re(){return!!p.overlay&&(p.overlay.parentNode.removeChild(p.overlay),p.overlay=null,!0)}function oe(){if(p.wrapper&&!D.isPrintingPDF()){if(!d.disableLayout){bt&&!d.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const e=de(),t=g;le(d.width,d.height),p.slides.style.width=e.width+"px",p.slides.style.height=e.height+"px",g=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),g=Math.max(g,d.minScale),g=Math.min(g,d.maxScale),1===g?(p.slides.style.zoom="",p.slides.style.left="",p.slides.style.top="",p.slides.style.bottom="",p.slides.style.right="",Q({layout:""})):g>1&&Et&&window.devicePixelRatio<2?(p.slides.style.zoom=g,p.slides.style.left="",p.slides.style.top="",p.slides.style.bottom="",p.slides.style.right="",Q({layout:""})):(p.slides.style.zoom="",p.slides.style.left="50%",p.slides.style.top="50%",p.slides.style.bottom="auto",p.slides.style.right="auto",Q({layout:"translate(-50%, -50%) scale("+g+")"}));const i=Array.from(p.wrapper.querySelectorAll(".slides section"));for(let t=0,n=i.length;t .stretch, section > .r-stretch").forEach((i=>{let n=pt(i,t);if(/(img|video)/gi.test(i.nodeName)){const t=i.naturalWidth||i.videoWidth,a=i.naturalHeight||i.videoHeight,s=Math.min(e/t,n/a);i.style.width=t*s+"px",i.style.height=a*s+"px"}else i.style.width=e+"px",i.style.height=n+"px"}))}function de(e,t){const i={width:d.width,height:d.height,presentationWidth:e||p.wrapper.offsetWidth,presentationHeight:t||p.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*d.margin,i.presentationHeight-=i.presentationHeight*d.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function ce(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function ue(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function he(e=o){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function ge(){return!(!o||!he(o))&&!o.nextElementSibling}function ve(){return 0===a&&0===s}function pe(){return!!o&&(!o.nextElementSibling&&(!he(o)||!o.parentNode.nextElementSibling))}function fe(){if(d.pause){const e=p.wrapper.classList.contains("paused");Ke(),p.wrapper.classList.add("paused"),!1===e&&Z({type:"paused"})}}function me(){const e=p.wrapper.classList.contains("paused");p.wrapper.classList.remove("paused"),Ve(),e&&Z({type:"resumed"})}function be(e){"boolean"==typeof e?e?fe():me():ye()?me():fe()}function ye(){return p.wrapper.classList.contains("paused")}function we(e){"boolean"==typeof e?e?Xe():_e():w?Xe():_e()}function Ee(){return!(!m||w)}function Se(e,t,i,n){r=o;const l=p.wrapper.querySelectorAll(".slides>section");if(0===l.length)return;void 0!==t||x.isActive()||(t=ue(l[e])),r&&r.parentNode&&r.parentNode.classList.contains("stack")&&ce(r.parentNode,s);const c=h.concat();h.length=0;let u=a||0,g=s||0;a=Le(".slides>section",void 0===e?a:e),s=Le(".slides>section.present>section",void 0===t?s:t);let v=a!==u||s!==g;v||(r=null);let m=l[a],b=m.querySelectorAll("section");o=b[s]||m;let y=!1;v&&r&&o&&!x.isActive()&&(r.hasAttribute("data-auto-animate")&&o.hasAttribute("data-auto-animate")&&(y=!0,p.slides.classList.add("disable-slide-transitions")),f="running"),Ce(),oe(),x.isActive()&&x.update(),void 0!==i&&k.goto(i),r&&r!==o&&(r.classList.remove("present"),r.setAttribute("aria-hidden","true"),ve()&&setTimeout((()=>{ze().forEach((e=>{ce(e,0)}))}),0));e:for(let e=0,t=h.length;e{j($(o))})),N.update(),P.update(),z.update(),A.update(),A.updateParallax(),S.update(),k.update(),C.writeURL(),Ve(),y&&(setTimeout((()=>{p.slides.classList.remove("disable-slide-transitions")}),0),d.autoAnimate&&R.run(r,o))}function Re(){Y(),X(),oe(),m=d.autoSlide,Ve(),A.create(),C.writeURL(),k.sortAll(),P.update(),N.update(),Ce(),z.update(),z.updateVisibility(),A.update(!0),S.update(),E.formatEmbeddedContent(),!1===d.autoPlayMedia?E.stopEmbeddedContent(o,{unloadIframes:!1}):E.startEmbeddedContent(o),x.isActive()&&x.layout()}function Ae(e=o){A.sync(e),k.sync(e),E.load(e),A.update(),z.update()}function ke(){Te().forEach((e=>{rt(e,"section").forEach(((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))}))}function xe(e=Te()){e.forEach(((t,i)=>{let n=e[Math.floor(Math.random()*e.length)];n.parentNode===t.parentNode&&t.parentNode.insertBefore(t,n);let a=t.querySelectorAll("section");a.length&&xe(a)}))}function Le(e,t){let i=rt(p.wrapper,e),n=i.length,a=D.isPrintingPDF();if(n){d.loop&&(t%=n)<0&&(t=n+t),t=Math.max(Math.min(t,n-1),0);for(let e=0;e{e.classList.add("visible"),e.classList.remove("current-fragment")}))):e>t&&(n.classList.add(s?"past":"future"),d.fragments&&rt(n,".fragment.visible").forEach((e=>{e.classList.remove("visible","current-fragment")})))}let e=i[t],s=e.classList.contains("present");e.classList.add("present"),e.removeAttribute("hidden"),e.removeAttribute("aria-hidden"),s||Z({target:e,type:"visible",bubbles:!1});let r=e.getAttribute("data-state");r&&(h=h.concat(r.split(" ")))}else t=0;return t}function Ce(){let e,t,i=Te(),n=i.length;if(n&&void 0!==a){let r=x.isActive()?10:d.viewDistance;bt&&(r=x.isActive()?6:d.mobileViewDistance),D.isPrintingPDF()&&(r=Number.MAX_VALUE);for(let o=0;osection"),i=p.wrapper.querySelectorAll(".slides>section.present>section"),n={left:a>0,right:a0,down:s1&&(n.left=!0,n.right=!0),i.length>1&&(n.up=!0,n.down=!0)),t.length>1&&"linear"===d.navigationMode&&(n.right=n.right||n.down,n.left=n.left||n.up),!0===e){let e=k.availableRoutes();n.left=n.left||e.prev,n.up=n.up||e.prev,n.down=n.down||e.next,n.right=n.right||e.next}if(d.rtl){let e=n.left;n.left=n.right,n.right=e}return n}function Ne(e=o){let t=Te(),i=0;e:for(let n=0;n0){let i=.9;t+=o.querySelectorAll(".fragment.visible").length/e.length*i}}return Math.min(t/(e-1),1)}function Ie(e){let t,i=a,n=s;if(e){let t=he(e),a=t?e.parentNode:e,s=Te();i=Math.max(s.indexOf(a),0),n=void 0,t&&(n=Math.max(rt(e.parentNode,"section").indexOf(e),0))}if(!e&&o){if(o.querySelectorAll(".fragment").length>0){let e=o.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}}return{h:i,v:n,f:t}}function De(){return rt(p.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function Te(){return rt(p.wrapper,".slides>section")}function Oe(){return rt(p.wrapper,".slides>section>section")}function ze(){return rt(p.wrapper,".slides>section.stack")}function He(){return Te().length>1}function Ue(){return Oe().length>1}function Be(){return De().map((e=>{let t={};for(let i=0;i{e.hasAttribute("data-autoplay")&&m&&1e3*e.duration/e.playbackRate>m&&(m=1e3*e.duration/e.playbackRate+1e3)}))),!m||w||ye()||x.isActive()||pe()&&!k.availableRoutes().next&&!0!==d.loop||(b=setTimeout((()=>{"function"==typeof d.autoSlideMethod?d.autoSlideMethod():et(),Ve()}),m),y=Date.now()),l&&l.setPlaying(-1!==b)}}function Ke(){clearTimeout(b),b=-1}function _e(){m&&!w&&(w=!0,Z({type:"autoslidepaused"}),clearTimeout(b),l&&l.setPlaying(!1))}function Xe(){m&&w&&(w=!1,Z({type:"autoslideresumed"}),Ve())}function Ye(){u.hasNavigatedHorizontally=!0,d.rtl?(x.isActive()||!1===k.next())&&Pe().left&&Se(a+1,"grid"===d.navigationMode?s:void 0):(x.isActive()||!1===k.prev())&&Pe().left&&Se(a-1,"grid"===d.navigationMode?s:void 0)}function Ge(){u.hasNavigatedHorizontally=!0,d.rtl?(x.isActive()||!1===k.prev())&&Pe().right&&Se(a-1,"grid"===d.navigationMode?s:void 0):(x.isActive()||!1===k.next())&&Pe().right&&Se(a+1,"grid"===d.navigationMode?s:void 0)}function Je(){(x.isActive()||!1===k.prev())&&Pe().up&&Se(a,s-1)}function Qe(){u.hasNavigatedVertically=!0,(x.isActive()||!1===k.next())&&Pe().down&&Se(a,s+1)}function Ze(){if(!1===k.prev())if(Pe().up)Je();else{let e;if(e=d.rtl?rt(p.wrapper,".slides>section.future").pop():rt(p.wrapper,".slides>section.past").pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Se(a-1,t)}}}function et(){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,!1===k.next()){let e=Pe();e.down&&e.right&&d.loop&&ge()&&(e.down=!1),e.down?Qe():d.rtl?Ye():Ge()}}function tt(e){d.autoSlideStoppable&&_e()}function it(e){"running"===f&&/section/gi.test(e.target.nodeName)&&(f="idle",Z({type:"slidetransitionend",data:{indexh:a,indexv:s,previousSlide:r,currentSlide:o}}))}function nt(e){oe()}function at(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function ct(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(ne(t),e.preventDefault())}}function gt(e){pe()&&!1===d.loop?(Se(0,0),Xe()):w?Xe():_e()}const ft={VERSION:"4.1.0",initialize:H,configure:_,sync:Re,syncSlide:Ae,syncFragments:k.sync.bind(k),slide:Se,left:Ye,right:Ge,up:Je,down:Qe,prev:Ze,next:et,navigateLeft:Ye,navigateRight:Ge,navigateUp:Je,navigateDown:Qe,navigatePrev:Ze,navigateNext:et,navigateFragment:k.goto.bind(k),prevFragment:k.prev.bind(k),nextFragment:k.next.bind(k),on:G,off:J,addEventListener:G,removeEventListener:J,layout:oe,shuffle:xe,availableRoutes:Pe,availableFragments:k.availableRoutes.bind(k),toggleHelp:ae,toggleOverview:x.toggle.bind(x),togglePause:be,toggleAutoSlide:we,isFirstSlide:ve,isLastSlide:pe,isLastVerticalSlide:ge,isVerticalSlide:he,isPaused:ye,isAutoSliding:Ee,isSpeakerNotes:z.isSpeakerNotesWindow.bind(z),isOverview:x.isActive.bind(x),isFocused:T.isFocused.bind(T),isPrintingPDF:D.isPrintingPDF.bind(D),isReady:()=>c,loadSlide:E.load.bind(E),unloadSlide:E.unload.bind(E),showPreview:ne,hidePreview:re,addEventListeners:X,removeEventListeners:Y,dispatchEvent:Z,getState:je,setState:$e,getProgress:Me,getIndices:Ie,getSlidesAttributes:Be,getSlidePastCount:Ne,getTotalSlides:qe,getSlide:Fe,getPreviousSlide:()=>r,getCurrentSlide:()=>o,getSlideBackground:We,getSlideNotes:z.getSlideNotes.bind(z),getSlides:De,getHorizontalSlides:Te,getVerticalSlides:Oe,hasHorizontalSlides:He,hasVerticalSlides:Ue,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,addKeyBinding:L.addKeyBinding.bind(L),removeKeyBinding:L.removeKeyBinding.bind(L),triggerKey:L.triggerKey.bind(L),registerKeyboardShortcut:L.registerKeyboardShortcut.bind(L),getComputedSlideSize:de,getScale:()=>g,getConfig:()=>d,getQueryHash:vt,getRevealElement:()=>t,getSlidesElement:()=>p.slides,getViewportElement:()=>p.viewport,getBackgroundsElement:()=>A.element,registerPlugin:I.registerPlugin.bind(I),hasPlugin:I.hasPlugin.bind(I),getPlugin:I.getPlugin.bind(I),getPlugins:I.getRegisteredPlugins.bind(I)};return st(n,{...ft,announceStatus:j,getStatusText:$,print:D,focus:T,progress:N,controls:P,location:C,overview:x,fragments:k,slideContent:E,slideNumber:S,onUserInput:tt,closeOverlay:re,updateSlidesVisibility:Ce,layoutSlideContents:le,transformSlides:Q,cueAutoSlide:Ve,cancelAutoSlide:Ke}),ft}let Vt=$t,Kt=[];Vt.initialize=e=>(Object.assign(Vt,new $t(document.querySelector(".reveal"),e)),Kt.map((e=>e(Vt))),Vt.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach((e=>{Vt[e]=(...t)=>{Kt.push((i=>i[e].call(null,...t)))}})),Vt.isReady=()=>!1,Vt.VERSION="4.1.0";export default Vt; //# sourceMappingURL=reveal.esm.js.map