"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/reveal.esm.js" between
reveal.js-4.1.1.tar.gz and reveal.js-4.1.2.tar.gz

About: reveal.js is a HTML presentation framework including nested slides, Markdown contents, PDF export, speaker notes and a JavaScript API.

reveal.esm.js  (reveal.js-4.1.1):reveal.esm.js  (reveal.js-4.1.2)
/*! /*!
* reveal.js 4.1.0 * reveal.js 4.1.1
* https://revealjs.com * https://revealjs.com
* MIT licensed * MIT licensed
* *
* Copyright (C) 2020 Hakim El Hattab, https://hakim.se * 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|cur rent-visible|shrink|grow/,i=(e,t)=>{for(let i in t)e[i]=t[i];return e},a=(e,t)=> Array.from(e.querySelectorAll(t)),n=(e,t,i)=>{i?e.classList.add(t):e.classList.r emove(t)},s=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)r eturn!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}r eturn e},o=(e,t)=>{e.style.transform=t},r=(e,t)=>{let i=e.matches||e.matchesSele ctor||e.msMatchesSelector;return!(!i||!i.call(e,t))},l=(e,t)=>{if("function"==ty peof e.closest)return e.closest(t);for(;e;){if(r(e,t))return e;e=e.parentNode}re turn null},d=(e,t,i,a="")=>{let n=e.querySelectorAll("."+i);for(let t=0;t<n.leng th;t++){let i=n[t];if(i.parentNode===e)return i}let s=document.createElement(t); return s.className=i,s.innerHTML=a,e.appendChild(s),s},c=e=>{let t=document.crea teElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.style Sheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendC hild(t),t},h=()=>{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] =s(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},u=(e,t= 0)=>{if(e){let i,a=e.style.height;return e.style.height="0px",e.parentNode.style .height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode. style.removeProperty("height"),i}return t},g=navigator.userAgent,v=document.crea teElement("div"),p=/(iphone|ipod|ipad|android)/gi.test(g)||"MacIntel"===navigato r.platform&&navigator.maxTouchPoints>1,m=/chrome/i.test(g)&&!/edge/i.test(g),f=/ android/gi.test(g),b="zoom"in v.style&&!p&&(m||/Version\/[\d\.]+.*Safari/.test(g ));var y={};Object.defineProperty(y,"__esModule",{value:!0});var w=Object.assign ||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a i n i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},R=y.default =function(e){if(e){var t=function(e){return[].slice.call(e)},i=0,a=1,n=2,s=3,o=[ ],r=null,l="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(r),r=e. requestAnimationFrame((function(){return c(o.filter((function(e){return e.dirty& &e.active})))}))}:function(){},d=function(e){return function(){o.forEach((functi on(t){return t.dirty=e})),l()}},c=function(e){e.filter((function(e){return!e.sty leComputed})).forEach((function(e){e.styleComputed=v(e)})),e.filter(p).forEach(m );var t=e.filter(g);t.forEach(u),t.forEach((function(e){m(e),h(e)})),t.forEach(f )},h=function(e){return e.dirty=i},u=function(e){e.availableWidth=e.element.pare ntNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.cur rentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.cu rrentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFon tSize===e.minSize?"normal":"nowrap"},g=function(e){return e.dirty!==n||e.dirty== =n&&e.element.parentNode.clientWidth!==e.availableWidth},v=function(t){var i=e.g etComputedStyle(t.element,null);t.currentFontSize=parseFloat(i.getPropertyValue( "font-size")),t.display=i.getPropertyValue("display"),t.whiteSpace=i.getProperty Value("white-space")},p=function(e){var t=!1;return!e.preStyleTestCompleted&&(/i nline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace &&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},m=function(e){e.el ement.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element. style.fontSize=e.currentFontSize+"px"},f=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSi ze,scaleFactor:e.currentFontSize/e.previousFontSize}}))},b=function(e,t){return function(){e.dirty=t,e.active&&l()}},y=function(e){return function(){o=o.filter( (function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disc onnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.d isplay=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize }},R=function(e){return function(){e.active||(e.active=!0,l())}},S=function(e){r eturn function(){return e.active=!1}},E=function(e){e.observeMutations&&(e.obser ver=new MutationObserver(b(e,a)),e.observer.observe(e.element,e.observeMutations ))},A={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},k=null,L=function(){e.clearTimeo ut(k),k=e.setTimeout(d(n),P.observeWindowDelay)},x=["resize","orientationchange" ];return Object.defineProperty(P,"observeWindow",{set:function(t){var i=(t?"add" :"remove")+"EventListener";x.forEach((function(t){e[i](t,L)}))}}),P.observeWindo w=!0,P.observeWindowDelay=100,P.fitAll=d(s),P}function C(e,t){var i=w({},A,t),a= e.map((function(e){var t=w({},i,{element:e,active:!0});return function(e){e.orig inalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display ,fontSize:e.element.style.fontSize},E(e),e.newbie=!0,e.dirty=!0,o.push(e)}(t),{e lement:e,fit:b(t,s),unfreeze:R(t),freeze:S(t),unsubscribe:y(t)}}));return l(),a} function P(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re turn"string"==typeof e?C(t(document.querySelectorAll(e)),i):C([e],i)[0]}}("undef ined"==typeof window?null:window);class S{constructor(e){this.Reveal=e,this.star tEmbeddedIframe=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,a (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.getA ttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("d ata-src"))})),a(e,"video, audio").forEach((e=>{let t=0;a(e,"source[data-src]").f orEach((e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute(" data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),p&&"VIDEO"===e.tagName& &e.setAttribute("playsinline",""),t>0&&e.load()}));let i=e.slideBackgroundElemen t;if(i){i.style.display="block";let a=e.slideBackgroundContentElement,n=e.getAtt ribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAtt ribute("data-loaded","true");let s=e.getAttribute("data-background-image"),o=e.g etAttribute("data-background-video"),r=e.hasAttribute("data-background-video-loo p"),l=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage =s.split(",").map((e=>`url(${encodeURI(e.trim())})`)).join(",");else if(o&&!this .Reveal.isSpeakerNotes()){let e=document.createElement("video");r&&e.setAttribut e("loop",""),l&&(e.muted=!0),p&&(e.muted=!0,e.setAttribute("playsinline","")),o. split(",").forEach((t=>{e.innerHTML+='<source src="'+t+'">'})),a.appendChild(e)} else if(n&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAt tribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttri bute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribu te("data-src",n),e.style.width="100%",e.style.height="100%",e.style.maxHeight="1 00%",e.style.maxWidth="100%",a.appendChild(e)}}let s=a.querySelector("iframe[dat a-src]");s&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(n)&&s.getAttr ibute("src")!==n&&s.setAttribute("src",n)}this.layout(e)}layout(e){Array.from(e. querySelectorAll(".r-fit-text")).forEach((e=>{R(e,{minSize:24,maxSize:.8*this.Re veal.getConfig().height,observeMutations:!1,observeWindow:!1})}))}unload(e){e.st yle.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display=" none",a(t,"iframe[src]").forEach((e=>{e.removeAttribute("src")}))),a(e,"video[da ta-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src ]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttrib ute("src")})),a(e,"video[data-lazy-loaded] source[src], audio source[src]").forE ach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src ")}))}formatEmbeddedContent(){let e=(e,t,i)=>{a(this.Reveal.getSlidesElement()," iframe["+e+'*="'+t+'"]').forEach((t=>{let a=t.getAttribute(e);a&&-1===a.indexOf( i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)}))};e("src","youtube.com/embed/ ","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","p layer.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbedd edContent(e){e&&!this.Reveal.isSpeakerNotes()&&(a(e,'img[src$=".gif"]').forEach( (e=>{e.setAttribute("src",e.getAttribute("src"))})),a(e,"video, audio").forEach( (e=>{if(l(e,".fragment")&&!l(e,".fragment.visible"))return;let t=this.Reveal.get Config().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay" )||!!l(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)th is.startEmbeddedMedia({target:e});else if(p){let t=e.play();t&&"function"==typeo f t.catch&&!1===e.controls&&t.catch((()=>{e.controls=!0,e.addEventListener("play ",(()=>{e.controls=!1}))}))}else e.removeEventListener("loadeddata",this.startEm beddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)})),a(e,"if rame[src]").forEach((e=>{l(e,".fragment")&&!l(e,".fragment.visible")||this.start EmbeddedIframe({target:e})})),a(e,"iframe[data-src]").forEach((e=>{l(e,".fragmen t")&&!l(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=!!l(e.target,"html"),i=!!l(e.target,".present" );t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("l oadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&& t.contentWindow){let i=!!l(e.target,"html"),a=!!l(e.target,".present");if(i&&a){ let e=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribu te("data-autoplay")||!!l(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.postMessa ge("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=i({unloadIframes:!0},t),e& &e.parentNode&&(a(e,"video, audio").forEach((e=>{e.hasAttribute("data-ignore")|| "function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause( ))})),a(e,"iframe").forEach((e=>{e.contentWindow&&e.contentWindow.postMessage("s lide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)})),a(e,'i frame[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":""}',"*")})),a(e,'if rame[src*="player.vimeo.com/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e. contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.p ostMessage('{"method":"pause"}',"*")})),!0===t.unloadIframes&&a(e,"iframe[data-s rc]").forEach((e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")} )))}}class E{constructor(e){this.Reveal=e}render(){this.element=document.createE lement("div"),this.element.className="slide-number",this.Reveal.getRevealElement ().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Re veal.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=thi s.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t,i=this .Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)t=i.slideNumber( e);else{"string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this. Reveal.getHorizontalSlides().length||(a="c");let n=e&&"uncounted"===e.dataset.vi sibility?0:1;switch(t=[],a){case"c":t.push(this.Reveal.getSlidePastCount(e)+n);b reak;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+n,"/",this.Reveal.getTota lSlides());break;default:let i=this.Reveal.getIndices(e);t.push(i.h+n);let s="h/ v"===a?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(s,i.v+1)}}let n="#"+this.R eveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],n)}formatNumbe r(e,t,i,a="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i) ?`<a href="${a}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\t\t\t\ t</a>`:`<a href="${a}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\ t\t\t\t<span class="slide-number-delimiter">${t}</span>\n\t\t\t\t\t<span class=" slide-number-b">${i}</span>\n\t\t\t\t\t</a>`}}const A=e=>{let t=e.match(/^#([0-9 a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseI nt(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 a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\ d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:p arseInt(a[3],10)};let n=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\, \s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10 ),b:parseInt(n[3],10),a:parseFloat(n[4])}:null};class k{constructor(e){this.Reve al=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.Revea l.getHorizontalSlides().forEach((e=>{let t=this.createBackground(e,this.element) ;a(e,"section").forEach((e=>{this.createBackground(e,t),t.classList.add("stack") }))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backg roundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.ele ment.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.el ement.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,th is.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPo sition,setTimeout((()=>{this.Reveal.getRevealElement().classList.add("has-parall ax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getReve alElement().classList.remove("has-parallax-background"))}createBackground(e,t){l et i=document.createElement("div");i.className="slide-background "+e.className.r eplace(/present|past|future/,"");let a=document.createElement("div");return a.cl assName="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBack groundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){const t =e.slideBackgroundElement,i=e.slideBackgroundContentElement,a={background:e.getA ttribute("data-background"),backgroundSize:e.getAttribute("data-background-size" ),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getA ttribute("data-background-video"),backgroundIframe:e.getAttribute("data-backgrou nd-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRe peat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute( "data-background-position"),backgroundTransition:e.getAttribute("data-background -transition"),backgroundOpacity:e.getAttribute("data-background-opacity")},n=e.h asAttribute("data-preload");e.classList.remove("has-dark-background"),e.classLis t.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttrib ute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAt tribute("data-background-transition"),t.style.backgroundColor="",i.style.backgro undSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.bac kgroundImage="",i.style.opacity="",i.innerHTML="",a.background&&(/^(http|file|\/ \/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.bac kground)?e.setAttribute("data-background-image",a.background):t.style.background =a.background),(a.background||a.backgroundColor||a.backgroundImage||a.background Video||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a .backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgro undColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgr oundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroun dSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgrou ndTransition&&t.setAttribute("data-background-transition",a.backgroundTransition ),n&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize =a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRep eat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.b ackgroundOpacity&&(i.style.opacity=a.backgroundOpacity);let s=a.backgroundColor; if(!s||!A(s)){let e=window.getComputedStyle(t);e&&e.backgroundColor&&(s=e.backgr oundColor)}if(s){const t=A(s);t&&0!==t.a&&("string"==typeof(o=s)&&(o=A(o)),(o?(2 99*o.r+587*o.g+114*o.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.c lassList.add("has-light-background"))}var o}update(e=!1){let t=this.Reveal.getCu rrentSlide(),i=this.Reveal.getIndices(),n=null,s=this.Reveal.getConfig().rtl?"fu ture":"past",o=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.el ement.childNodes).forEach(((t,r)=>{t.classList.remove("past","present","future") ,r<i.h?t.classList.add(s):r>i.h?t.classList.add(o):(t.classList.add("present"),n =t),(e||r===i.h)&&a(t,".slide-background").forEach(((e,t)=>{e.classList.remove(" past","present","future"),t<i.v?e.classList.add("past"):t>i.v?e.classList.add("f uture"):(e.classList.add("present"),r===i.h&&(n=e))}))})),this.previousBackgroun d&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadI frames:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),n){thi s.Reveal.slideContent.startEmbeddedContent(n);let e=n.querySelector(".slide-back ground-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.st yle.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImag e=t)}let t=this.previousBackground?this.previousBackground.getAttribute("data-ba ckground-hash"):null,i=n.getAttribute("data-background-hash");i&&i===t&&n!==this .previousBackground&&this.element.classList.add("no-transition"),this.previousBa ckground=n}t&&["has-light-background","has-dark-background"].forEach((e=>{t.clas sList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.ge tRevealElement().classList.remove(e)}),this),setTimeout((()=>{this.element.class List.remove("no-transition")}),1)}updateParallax(){let e=this.Reveal.getIndices( );if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,a=this.Reveal.getH orizontalSlides(),n=this.Reveal.getVerticalSlides(),s=this.element.style.backgro undSize.split(" ");1===s.length?t=i=parseInt(s[0],10):(t=parseInt(s[0],10),i=par seInt(s[1],10));let o,r,l=this.element.offsetWidth,d=a.length;o="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().pa rallaxBackgroundHorizontal:d>1?(t-l)/(d-1):0,r=o*e.h*-1;let c,h,u=this.element.o ffsetHeight,g=n.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgr oundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-u)/(g-1),h=g> 0?c*e.v:0,this.element.style.backgroundPosition=r+"px "+-h+"px"}}}let L=0;class x{constructor(e){this.Reveal=e}run(e,t){if(this.reset(),e.hasAttribute("data-aut o-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=thi s.autoAnimateStyleSheet||c();let i=this.getAutoAnimateOptions(t);e.dataset.autoA nimate="pending",t.dataset.autoAnimate="pending";let a=this.Reveal.getSlides();i .slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";let n=this.getAut oAnimatableElements(e,t).map((e=>this.autoAnimateElements(e.from,e.to,e.options| |{},i,L++)));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getCo nfig().autoAnimateUnmatched){let e=.8*i.duration,a=.2*i.duration;this.getUnmatch edAutoAnimateElements(t).forEach((e=>{let t=this.getAutoAnimateOptions(e,i),a="u nmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+L++,n.push (`[data-auto-animate="running"] [data-auto-animate-target="${a}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)),e.dataset.autoAnimateTarget=a}),th is),n.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${a}s; }`)}this.autoAnimateStyleSheet.innerHTM L=n.join(""),requestAnimationFrame((()=>{this.autoAnimateStyleSheet&&(getCompute dStyle(this.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")}) ),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,shee t:this.autoAnimateStyleSheet}})}}reset(){a(this.Reveal.getRevealElement(),'[data -auto-animate]:not([data-auto-animate=""])').forEach((e=>{e.dataset.autoAnimate= ""})),a(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((e= >{delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAni mateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(th is.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e ,i,a,n,s){e.dataset.autoAnimateTarget="",i.dataset.autoAnimateTarget=s;let o=thi s.getAutoAnimateOptions(i,n);void 0!==a.delay&&(o.delay=a.delay),void 0!==a.dura tion&&(o.duration=a.duration),void 0!==a.easing&&(o.easing=a.easing);let r=this. getAutoAnimatableProperties("from",e,a),l=this.getAutoAnimatableProperties("to", i,a);if(i.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.c ontains("fragment"))){(e.className.match(t)||[""])[0]===(i.className.match(t)||[ ""])[0]&&"forward"===n.slideDirection&&i.classList.add("visible","disabled")}if( !1!==a.translate||!1!==a.scale){let e=this.Reveal.getScale(),t={x:(r.x-l.x)/e,y: (r.y-l.y)/e,scaleX:r.width/l.width,scaleY:r.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.sca leX=Math.round(1e3*t.scaleX)/1e3;let i=!1!==a.translate&&(0!==t.x||0!==t.y),n=!1 !==a.scale&&(0!==t.scaleX||0!==t.scaleY);if(i||n){let e=[];i&&e.push(`translate( ${t.x}px, ${t.y}px)`),n&&e.push(`scale(${t.scaleX}, ${t.scaleY})`),r.styles.tran sform=e.join(" "),r.styles["transform-origin"]="top left",l.styles.transform="no ne"}}for(let e in l.styles){const t=l.styles[e],i=r.styles[e];t===i?delete l.sty les[e]:(!0===t.explicitValue&&(l.styles[e]=t.value),!0===i.explicitValue&&(r.sty les[e]=i.value))}let d="",c=Object.keys(l.styles);if(c.length>0){r.styles.transi tion="none",l.styles.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,l.s tyles["transition-property"]=c.join(", "),l.styles["will-change"]=c.join(", "),d ='[data-auto-animate-target="'+s+'"] {'+Object.keys(r.styles).map((e=>e+": "+r.s tyles[e]+" !important;")).join("")+'}[data-auto-animate="running"] [data-auto-an imate-target="'+s+'"] {'+Object.keys(l.styles).map((e=>e+": "+l.styles[e]+" !imp ortant;")).join("")+"}"}return d}getAutoAnimateOptions(e,t){let a={easing:this.R eveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimate Duration,delay:0};if(a=i(a,t),e.parentNode){let t=l(e.parentNode,"[data-auto-ani mate-target]");t&&(a=this.getAutoAnimateOptions(t,a))}return e.dataset.autoAnima teEasing&&(a.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&& (a.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDela y&&(a.delay=parseFloat(e.dataset.autoAnimateDelay)),a}getAutoAnimatablePropertie s(e,t,i){let a=this.Reveal.getConfig(),n={styles:[]};if(!1!==i.translate||!1!==i .scale){let e;if("function"==typeof i.measure)e=i.measure(t);else if(a.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}}n.x=e.x,n.y=e.y,n .width=e.width,n.height=e.height}const s=getComputedStyle(t);return(i.styles||a. autoAnimateStyles).forEach((t=>{let i;"string"==typeof t&&(t={property:t}),i=voi d 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&&(n.styles[t.property]=i)})) ,n}getAutoAnimatableElements(e,t){let i=("function"==typeof this.Reveal.getConfi g().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAn imatePairs).call(this,e,t),a=[];return i.filter(((e,t)=>{if(-1===a.indexOf(e.to) )return a.push(e.to),!0}))}getAutoAnimatePairs(e,t){let i=[];const a="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,a,( 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=>{r(e.from,a)?e.options={scale:!1}:r(e.from,"pre")&&(e.options={scal e:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",(e=>e.textContent),{scale:!1,styles:[],measure:this.getLocalBoun dingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-l ine[data-line-number]",(e=>e.getAttribute("data-line-number")),{scale:!1,styles: ["width"],measure:this.getLocalBoundingBox.bind(this)}))}),this),i}getLocalBound ingBox(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)/1 00,height:Math.round(e.offsetHeight*t*100)/100}}findAutoAnimateMatches(e,t,i,a,n ,s){let o={},r={};[].slice.call(t.querySelectorAll(a)).forEach(((e,t)=>{const i= n(e);"string"==typeof i&&i.length&&(o[i]=o[i]||[],o[i].push(e))})),[].slice.call (i.querySelectorAll(a)).forEach(((t,i)=>{const a=n(t);let l;if(r[a]=r[a]||[],r[a ].push(t),o[a]){const e=r[a].length-1,t=o[a].length-1;o[a][e]?(l=o[a][e],o[a][e] =null):o[a][t]&&(l=o[a][t],o[a][t]=null)}l&&e.push({from:l,to:t,options:s})}))}g etUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce(((e,t)= >{const i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("d ata-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-targ et]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e}),[])}}class C{co nstructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t .fragments&&this.enable()}disable(){a(this.Reveal.getSlidesElement(),".fragment" ).forEach((e=>{e.classList.add("visible"),e.classList.remove("current-fragment") }))}enable(){a(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classL ist.remove("visible"),e.classList.remove("current-fragment")}))}availableRoutes( ){let e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){l et t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragm ent:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.leng th}}return{prev:!1,next:!1}}sort(e,t=!1){e=Array.from(e);let i=[],a=[],n=[];e.fo rEach((e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribu te("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])})),i =i.concat(a);let s=0;return i.forEach((e=>{e.forEach((e=>{n.push(e),e.setAttribu te("data-fragment-index",s)})),s++})),!0===t?i:n}sortAll(){this.Reveal.getHorizo ntalSlides().forEach((e=>{let t=a(e,"section");t.forEach(((e,t)=>{this.sort(e.qu erySelectorAll(".fragment"))}),this),0===t.length&&this.sort(e.querySelectorAll( ".fragment"))}))}update(e,t){let i={shown:[],hidden:[]},a=this.Reveal.getCurrent Slide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelector All(".fragment"))).length){let n=0;if("number"!=typeof e){let t=this.sort(a.quer ySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fra gment-index")||0,10))}Array.from(t).forEach(((t,a)=>{if(t.hasAttribute("data-fra gment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),n=Math.max (n,a),a<=e){let n=t.classList.contains("visible");t.classList.add("visible"),t.c lassList.remove("current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reve al.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideConten t.startEmbeddedContent(t)),n||(i.shown.push(t),this.Reveal.dispatchEvent({target :t,type:"visible",bubbles:!1}))}else{let e=t.classList.contains("visible");t.cla ssList.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(Ma th.min(e,n),-1),a.setAttribute("data-fragment",e)}return i}sync(e=this.Reveal.ge tCurrentSlide()){return this.sort(e.querySelectorAll(".fragment"))}goto(e,t=0){l et i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if("num ber"!=typeof e){let t=this.sort(i.querySelectorAll(".fragment:not(.disabled).vis ible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}e+=t; let n=this.update(e,a);return n.hidden.length&&this.Reveal.dispatchEvent({type:" fragmenthidden",data:{fragment:n.hidden[0],fragments:n.hidden}}),n.shown.length& &this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:n.shown[0],fragm ents:n.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this .Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!n.shown.le ngth&&!n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class P{constructor(e){this.Reveal=e,this.active=!1,this.onS lideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig() .overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().class List.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement( ).appendChild(this.Reveal.getBackgroundsElement()),a(this.Reveal.getRevealElemen t(),".slides section").forEach((e=>{e.classList.contains("stack")||e.addEventLis tener("click",this.onSlideClicked,!0)}));const e=70,t=this.Reveal.getComputedSli deSize();this.overviewSlideWidth=t.width+e,this.overviewSlideHeight=t.height+e,t his.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),t his.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layo ut();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviews hown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})} }layout(){this.Reveal.getHorizontalSlides().forEach(((e,t)=>{e.setAttribute("dat a-index-h",t),o(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classL ist.contains("stack")&&a(e,"section").forEach(((e,i)=>{e.setAttribute("data-inde x-h",t),e.setAttribute("data-index-v",i),o(e,"translate3d(0, "+i*this.overviewSl ideHeight+"px, 0)")}))})),Array.from(this.Reveal.getBackgroundsElement().childNo des).forEach(((e,t)=>{o(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"), a(e,".slide-background").forEach(((e,t)=>{o(e,"translate3d(0, "+t*this.overviewS lideHeight+"px, 0)")}))}))}update(){const e=Math.min(window.innerWidth,window.in nerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transfor mSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px )","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){i f(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement( ).classList.remove("overview"),this.Reveal.getRevealElement().classList.add("ove rview-deactivating"),setTimeout((()=>{this.Reveal.getRevealElement().classList.r emove("overview-deactivating")}),1),this.Reveal.getRevealElement().appendChild(t his.Reveal.getBackgroundsElement()),a(this.Reveal.getRevealElement(),".slides se ction").forEach((e=>{o(e,""),e.removeEventListener("click",this.onSlideClicked,! 0)})),a(this.Reveal.getBackgroundsElement(),".slide-background").forEach((e=>{o( e,"")})),this.Reveal.transformSlides({overview:""});const e=this.Reveal.getIndic es();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,cur rentSlide: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.preventDef ault();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(/secti on/gi))){let e=parseInt(t.getAttribute("data-index-h"),10),i=parseInt(t.getAttri bute("data-index-v"),10);this.Reveal.slide(e,i)}}}}class N{constructor(e){this.R eveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumen tKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}c onfigure(e,t){"linear"===e.navigationMode?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide", this.shortcuts.P="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left ",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K "]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts ["Home , Shift &#8592;"]="First slide",this.shortcuts["End , Shift &#8594;"] ="Last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",th is.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydow n",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocume ntKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKe yDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}ad dKeyBinding(e,t){"object"==typeof e&&e.keyCode?this.bindings[e.keyCode]={callbac k:t,key:e.key,description:e.description}:this.bindings[e]={callback:t,key:null,d escription: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}onDocum entKeyPress(e){e.shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentK eyDown(e){let t=this.Reveal.getConfig();if("function"==typeof t.keyboardConditio n&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!thi s.Reveal.isFocused())return!0;let i=e.keyCode,a=!this.Reveal.isAutoSliding();thi s.Reveal.onUserInput(e);let n=document.activeElement&&!0===document.activeElemen t.isContentEditable,s=document.activeElement&&document.activeElement.tagName&&/i nput|textarea/i.test(document.activeElement.tagName),o=document.activeElement&&d ocument.activeElement.className&&/speaker-notes/i.test(document.activeElement.cl assName),r=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i, c=!r&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(n||s||o||c)return; let h,u=[66,86,190,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togg lePause"===t.keyboard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1== =u.indexOf(i))return!1;let g="linear"===t.navigationMode||!this.Reveal.hasHorizo ntalSlides()||!this.Reveal.hasVerticalSlides(),v=!1;if("object"==typeof t.keyboa rd)for(h in t.keyboard)if(parseInt(h,10)===i){let i=t.keyboard[h];"function"==ty peof i?i.apply(null,[e]):"string"==typeof i&&"function"==typeof this.Reveal[i]&& this.Reveal[i].call(),v=!0}if(!1===v)for(h in this.bindings)if(parseInt(h,10)=== i){let t=this.bindings[h].callback;"function"==typeof t?t.apply(null,[e]):"strin g"==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.Rev eal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALU E):!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_VA LUE):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.do cumentElement).requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFull Screen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)})(t.embedded ?this.Reveal.getViewportElement():document.documentElement):65===i?t.autoSlideSt oppable&&this.Reveal.toggleAutoSlide(a):v=!1),v?e.preventDefault&&e.preventDefau lt():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.togg le(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class M{c onstructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this. onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.o nWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWi ndowHashChange,!1)}readURL(){let e=this.Reveal.getConfig(),t=this.Reveal.getIndi ces(),i=this.Reveal.getCurrentSlide(),a=window.location.hash,n=a.slice(2).split( "/"),s=a.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(n[0])&&s.length){let e,a;/\/[- \d]+$/g.test(s)&&(a=parseInt(s.split("/").pop(),10),a=isNaN(a)?void 0:a,s=s.spli t("/").shift());try{e=document.getElementById(decodeURIComponent(s))}catch(e){}l et n=!!i&&i.getAttribute("id")===s;if(e){if(!n||void 0!==a){let t=this.Reveal.ge tIndices(e);this.Reveal.slide(t.h,t.v,a)}}else this.Reveal.slide(t.h||0,t.v||0)} else{let i,a=e.hashOneBasedIndex?1:0,s=parseInt(n[0],10)-a||0,o=parseInt(n[1],10 )-a||0;e.fragmentInURL&&(i=parseInt(n[2],10),isNaN(i)&&(i=void 0)),s===t.h&&o=== t.v&&void 0===i||this.Reveal.slide(s,o,i)}}writeURL(e){let t=this.Reveal.getConf ig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"numb er"==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.h istory.replaceState(null,null,"#"+e))}}getHash(e){let t="/",i=e||this.Reveal.get CurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));let n= this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0) ,"string"==typeof a&&a.length)t="/"+a,n.f>=0&&(t+="/"+n.f);else{let e=this.Revea l.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(t+=n.h+e),(n.v>0||n .f>=0)&&(t+="/"+(n.v+e)),n.f>=0&&(t+="/"+n.f)}return t}onWindowHashChange(e){thi s.readURL()}}class D{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=thi s.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRi ghtClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(thi s),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavig atePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked= this.onNavigateNextClicked.bind(this)}render(){const e=this.Reveal.getConfig().r tl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside") ,this.element.className="controls",this.element.innerHTML=`<button class="naviga te-left" aria-label="${e?"next slide":"previous slide"}"><div class="controls-ar row"></div></button>\n\t\t\t<button class="navigate-right" aria-label="${e?"prev ious slide":"next slide"}"><div class="controls-arrow"></div></button>\n\t\t\t<b utton class="navigate-up" aria-label="above slide"><div class="controls-arrow">< /div></button>\n\t\t\t<button class="navigate-down" aria-label="below slide"><di v class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendC hild(this.element),this.controlsLeft=a(t,".navigate-left"),this.controlsRight=a( t,".navigate-right"),this.controlsUp=a(t,".navigate-up"),this.controlsDown=a(t," .navigate-down"),this.controlsPrev=a(t,".navigate-prev"),this.controlsNext=a(t," .navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-r ight"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this. controlsDownArrow=this.element.querySelector(".navigate-down")}configure(e,t){th is.element.style.display=e.controls?"block":"none",this.element.setAttribute("da ta-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-b ack-arrows",e.controlsBackArrows)}bind(){let e=["touchstart","click"];f&&(e=["to uchstart"]),e.forEach((e=>{this.controlsLeft.forEach((t=>t.addEventListener(e,th is.onNavigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.addEventListener (e,this.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.addEventListe ner(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.addEventLis tener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.addEven tListener(e,this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.add EventListener(e,this.onNavigateNextClicked,!1)))}))}unbind(){["touchstart","clic k"].forEach((e=>{this.controlsLeft.forEach((t=>t.removeEventListener(e,this.onNa vigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.removeEventListener(e,t his.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.removeEventListen er(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.removeEventL istener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.remov eEventListener(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.con trolsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach( (e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disab led")})),e.left&&this.controlsLeft.forEach((e=>{e.classList.add("enabled"),e.rem oveAttribute("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.con trolsDown.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")} )),(e.left||e.up)&&this.controlsPrev.forEach((e=>{e.classList.add("enabled"),e.r emoveAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((e=>{ e.classList.add("enabled"),e.removeAttribute("disabled")}));let t=this.Reveal.ge tCurrentSlide();if(t){let e=this.Reveal.fragments.availableRoutes();e.prev&&this .controlsPrev.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttri bute("disabled")})),e.next&&this.controlsNext.forEach((e=>{e.classList.add("frag mented","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.class List.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(e.prev&&this .controlsLeft.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttri bute("disabled")})),e.next&&this.controlsRight.forEach((e=>{e.classList.add("fra gmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig() .controlsTutorial){let t=this.Reveal.getIndices();!this.Reveal.hasNavigatedVerti cally()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controls DownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal .hasNavigatedHorizontally()&&e.left&&0===t.v?this.controlsLeftArrow.classList.ad d("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal .hasNavigatedHorizontally()&&e.right&&0===t.v?this.controlsRightArrow.classList. add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavig ateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.R eveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigat eRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Re veal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigat eUpClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNa vigateDownClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.do wn()}onNavigatePrevClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this. Reveal.prev()}onNavigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInpu t(),this.Reveal.next()}}class I{constructor(e){this.Reveal=e,this.onProgressClic ked=this.onProgressClicked.bind(this)}render(){this.element=document.createEleme nt("div"),this.element.className="progress",this.Reveal.getRevealElement().appen dChild(this.element),this.bar=document.createElement("span"),this.element.append Child(this.bar)}configure(e,t){this.element.style.display=e.progress?"block":"no ne"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEvent Listener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().pro gress&&this.element&&this.element.removeEventListener("click",this.onProgressCli cked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let e=this.Reve al.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.R eveal.getSlides(),i=t.length,a=Math.floor(e.clientX/this.getMaxWidth()*i);this.R eveal.getConfig().rtl&&(a=i-a);let n=this.Reveal.getIndices(t[a]);this.Reveal.sl ide(n.h,n.v)}}class T{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,thi s.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this. onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMous eScroll.bind(this)}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMo useScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel" ,this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll", this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.on DocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousem ove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this. onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mou semove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown" ,this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHi dden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.c ursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor=" none")}onDocumentCursorActive(e){this.showCursor(),clearTimeout(this.cursorInact iveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),thi s.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this .lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.w heelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}const z=(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.on error=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(ne w Error("Failed loading script: "+i.src+"\n"+e))});const a=document.querySelecto r("head");a.insertBefore(i,a.lastChild)};class H{constructor(e){this.Reveal=e,th is.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(e,t){re turn this.state="loading",e.forEach(this.registerPlugin.bind(this)),new Promise( (e=>{let i=[],a=0;if(t.forEach((e=>{e.condition&&!e.condition()||(e.async?this.a syncDependencies.push(e):i.push(e))})),i.length){a=i.length;const t=t=>{t&&"func tion"==typeof t.callback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.for Each((e=>{"string"==typeof e.id?(this.registerPlugin(e),t(e)):"string"==typeof e .src?z(e.src,(()=>t(e))):(console.warn("Unrecognized plugin format",e),t())}))}e lse this.initPlugins().then(e)}))}initPlugins(){return new Promise((e=>{let t=Ob ject.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e) ;else{let a,n=()=>{0==--i?this.loadAsync().then(e):a()},s=0;a=()=>{let e=t[s++]; if("function"==typeof e.init){let t=e.init(this.Reveal);t&&"function"==typeof t. then?t.then(n):n()}else n()},a()}}))}loadAsync(){return this.state="loaded",this .asyncDependencies.length&&this.asyncDependencies.forEach((e=>{z(e.src,e.callbac k)})),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,"l oaded"===this.state&&"function"==typeof e.init&&e.init(this.Reveal)):console.war n('reveal.js: "'+t+'" plugin has already been registered')}hasPlugin(e){return!! this.registeredPlugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegis teredPlugins(){return this.registeredPlugins}}class B{constructor(e){this.Reveal =e}async setupPDF(){const e=this.Reveal.getConfig(),t=a(this.Reveal.getRevealEle ment(),".slides section"),i=e.slideNumber&&/all|print/i.test(e.showSlideNumber), n=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),s=Math. floor(n.width*(1+e.margin)),o=Math.floor(n.height*(1+e.margin)),r=n.width,l=n.he ight;await new Promise(requestAnimationFrame),c("@page{size:"+s+"px "+o+"px; mar gin: 0px;}"),c(".reveal section>img, .reveal section>video, .reveal section>ifra me{max-width: "+r+"px; max-height:"+l+"px}"),document.documentElement.classList. add("print-pdf"),document.body.style.width=s+"px",document.body.style.height=o+" px",await new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(r,l ),t.forEach((e=>this.Reveal.slideContent.layout(e))),await new Promise(requestAn imationFrame);const d=t.map((e=>e.scrollHeight)),h=[],u=t[0].parentNode;t.forEac h((function(t,n){if(!1===t.classList.contains("stack")){let c=(s-r)/2,u=(o-l)/2; const g=d[n];let v=Math.max(Math.ceil(g/o),1);v=Math.min(v,e.pdfMaxPagesPerSlide ),(1===v&&e.center||t.classList.contains("center"))&&(u=Math.max((o-g)/2,0));con st p=document.createElement("div");if(h.push(p),p.className="pdf-page",p.style.h eight=(o+e.pdfPageHeightOffset)*v+"px",p.appendChild(t),t.style.left=c+"px",t.st yle.top=u+"px",t.style.width=r+"px",t.slideBackgroundElement&&p.insertBefore(t.s lideBackgroundElement,t),e.showNotes){const i=this.Reveal.getSlideNotes(t);if(i) {const t=8,a="string"==typeof e.showNotes?e.showNotes:"inline",n=document.create Element("div");n.classList.add("speaker-notes"),n.classList.add("speaker-notes-p df"),n.setAttribute("data-layout",a),n.innerHTML=i,"separate-page"===a?h.push(n) :(n.style.left=t+"px",n.style.bottom=t+"px",n.style.width=s-2*t+"px",p.appendChi ld(n))}}if(i){const e=n+1,t=document.createElement("div");t.classList.add("slide -number"),t.classList.add("slide-number-pdf"),t.innerHTML=e,p.appendChild(t)}if( e.pdfSeparateFragments){const e=this.Reveal.fragments.sort(p.querySelectorAll(". fragment"),!0);let t;e.forEach((function(e){t&&t.forEach((function(e){e.classLis t.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible" ,"current-fragment")}),this);const i=p.cloneNode(!0);h.push(i),t=e}),this),e.for Each((function(e){e.forEach((function(e){e.classList.remove("visible","current-f ragment")}))}))}else a(p,".fragment:not(.fade-out)").forEach((function(e){e.clas sList.add("visible")}))}}),this),await new Promise(requestAnimationFrame),h.forE ach((e=>u.appendChild(e))),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrint ingPDF(){return/print-pdf/gi.test(window.location.search)}}class q{constructor(e ){this.Reveal=e,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,thi s.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPoint erMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this ),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMo ve.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let e=this.Revea l.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown", this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e .addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEn abled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListe ner("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this .onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEv entListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this. onTouchEnd,!1))}unbind(){let e=this.Reveal.getRevealElement();e.removeEventListe ner("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",thi s.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.rem oveEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("M SPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.on PointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeE ventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",t his.onTouchEnd,!1)}isSwipePrevented(e){if(r(e,"video, audio"))return!0;for(;e&&" function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))retur n!0;e=e.parentNode}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))r eturn!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clie ntY,this.touchStartCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevente d(e.target))return!0;let t=this.Reveal.getConfig();if(this.touchCaptured)f&&e.pr eventDefault();else{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,a=e.to uches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){let n=this.R eveal.availableRoutes({includeFragments:!0}),s=i-this.touchStartX,o=a-this.touch StartY;s>40&&Math.abs(s)>Math.abs(o)?(this.touchCaptured=!0,"linear"===t.navigat ionMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):s<-40&&M ath.abs(s)>Math.abs(o)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl? this.Reveal.prev():this.Reveal.next():this.Reveal.right()):o>40&&n.up?(this.touc hCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):o< -40&&n.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next ():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSli de())&&e.preventDefault():e.preventDefault()}}}onTouchEnd(e){this.touchCaptured= !1}onPointerDown(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerT ype||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}on PointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType|| (e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointe rUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touch es=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class F{construc tor(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.getConf ig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",thi s.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventLis tener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("p ointerdown",this.onDocumentPointerDown,!1)}focus(){"focus"!==this.state&&(this.R eveal.getRevealElement().classList.add("focused"),document.addEventListener("poi nterdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==thi s.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.re moveEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur "}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onD ocumentPointerDown(e){let t=l(e.target,".reveal");t&&t===this.Reveal.getRevealEl ement()||this.blur()}}class U{constructor(e){this.Reveal=e}render(){this.element =document.createElement("div"),this.element.className="speaker-notes",this.eleme nt.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0 "),this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){e.sho wNotes&&this.element.setAttribute("data-layout","string"==typeof e.showNotes?e.s howNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&thi s.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.in nerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNo tes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classLi st.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes ")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-note s], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search .match(/receiver/gi)}getSlideNotes(e=this.Reveal.getCurrentSlide()){if(e.hasAttr ibute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("a side.notes");return t?t.innerHTML:null}}class O{constructor(e,t){this.diameter=1 00,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=docum ent.createElement("canvas"),this.canvas.className="playback",this.canvas.width=t his.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diame ter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas. getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlayin g(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.re nder()}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?thi s.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,a=this.diameter2,n =28;this.progressOffset+=.1*(1-this.progressOffset);const s=-Math.PI/2+e*(2*Math .PI),o=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.conte xt.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.cont ext.arc(i,a,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",th is.context.fill(),this.context.beginPath(),this.context.arc(i,a,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,a,t,o,s,!1),this.context.lineWidth=this.thickness,this.context.st rokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.p laying?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,n),this.conte xt.fillRect(18,0,10,n)):(this.context.beginPath(),this.context.translate(4,0),th is.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,n),this. context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(e,t){thi s.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 W={width:960,height:700,margin:.04,minScale:.2,maxScale:2,cont rols:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"fa ded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash: !1,respondToHashChanges:!0,history:!1,keyboard:!0,keyboardCondition:null,disable Layout:!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,au toAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimate Unmatched:!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,autoSlideM ethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postM essageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transition Speed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxB ackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",paral laxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide :Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDis tance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTim e:5e3,dependencies:[],plugins:[]};function V(t,r){arguments.length<2&&(r=argumen ts[0],t=document.querySelector(".reveal"));const c={};let g,v,m,f,y,w={},R=!1,A= {hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},L=[],z=1,V={layout:"",ov erview:""},$={},K="idle",j=0,X=0,Y=-1,_=!1,J=new S(c),Q=new E(c),Z=new x(c),G=ne w k(c),ee=new C(c),te=new P(c),ie=new N(c),ae=new M(c),ne=new D(c),se=new I(c),o e=new T(c),re=new H(c),le=new B(c),de=new F(c),ce=new q(c),he=new U(c);function ue(e){return $.wrapper=t,$.slides=t.querySelector(".slides"),w={...W,...w,...r,. ..e,...h()},ge(),window.addEventListener("load",He,!1),re.load(w.plugins,w.depen dencies).then(ve),new Promise((e=>c.on("ready",e)))}function ge(){!0===w.embedde d?$.viewport=l(t,".reveal-viewport")||t:($.viewport=document.body,document.docum entElement.classList.add("reveal-full-page")),$.viewport.classList.add("reveal-v iewport")}function ve(){R=!0,pe(),me(),Re(),we(),et(),Se(),ae.readURL(),G.update (!0),setTimeout((()=>{$.slides.classList.remove("no-transition"),$.wrapper.class List.add("ready"),Ce({type:"ready",data:{indexh:g,indexv:v,currentSlide:f}})}),1 ),le.isPrintingPDF()&&(Ae(),"complete"===document.readyState?le.setupPDF():windo w.addEventListener("load",(()=>{le.setupPDF()})))}function pe(){w.showHiddenSlid es||a($.wrapper,'section[data-visibility="hidden"]').forEach((e=>{e.parentNode.r emoveChild(e)}))}function me(){$.slides.classList.add("no-transition"),p?$.wrapp er.classList.add("no-hover"):$.wrapper.classList.remove("no-hover"),G.render(),Q .render(),ne.render(),se.render(),he.render(),$.pauseOverlay=d($.wrapper,"div"," pause-overlay",w.controls?'<button class="resume-button">Resume presentation</bu tton>':null),$.statusElement=fe(),$.wrapper.setAttribute("role","application")}f unction fe(){let e=$.wrapper.querySelector(".aria-status");return e||(e=document .createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.w idth="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e .classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribut e("aria-atomic","true"),$.wrapper.appendChild(e)),e}function be(e){$.statusEleme nt.textContent=e}function ye(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let i=e.getAttribute("aria-hidden"),a="none"===window.getCom putedStyle(e).display;"true"===i||a||Array.from(e.childNodes).forEach((e=>{t+=ye (e)}))}return t=t.trim(),""===t?"":t+" "}function we(){setInterval((()=>{0===$.w rapper.scrollTop&&0===$.wrapper.scrollLeft||($.wrapper.scrollTop=0,$.wrapper.scr ollLeft=0)}),1e3)}function Re(){w.postMessage&&window.addEventListener("message" ,(t=>{let i=t.data;if("string"==typeof i&&"{"===i.charAt(0)&&"}"===i.charAt(i.le ngth-1)&&(i=JSON.parse(i),i.method&&"function"==typeof c[i.method]))if(!1===e.te st(i.method)){const e=c[i.method].apply(c,i.args);Pe("callback",{method:i.method ,result:e})}else console.warn('reveal.js: "'+i.method+'" is is blacklisted from the postMessage API')}),!1)}function Se(e){const t={...w};if("object"==typeof e& &i(w,e),!1===c.isReady())return;const a=$.wrapper.querySelectorAll(".slides sect ion").length;$.wrapper.classList.remove(t.transition),$.wrapper.classList.add(w. transition),$.wrapper.setAttribute("data-transition-speed",w.transitionSpeed),$. wrapper.setAttribute("data-background-transition",w.backgroundTransition),$.view port.style.setProperty("--slide-width",w.width+"px"),$.viewport.style.setPropert y("--slide-height",w.height+"px"),w.shuffle&&tt(),n($.wrapper,"embedded",w.embed ded),n($.wrapper,"rtl",w.rtl),n($.wrapper,"center",w.center),!1===w.pause&&je(), w.previewLinks?(Ne(),Me("[data-preview-link=false]")):(Me(),Ne("[data-preview-li nk]:not([data-preview-link=false])")),Z.reset(),y&&(y.destroy(),y=null),a>1&&w.a utoSlide&&w.autoSlideStoppable&&(y=new O($.wrapper,(()=>Math.min(Math.max((Date. now()-Y)/j,0),1))),y.on("click",zt),_=!1),"default"!==w.navigationMode?$.wrapper .setAttribute("data-navigation-mode",w.navigationMode):$.wrapper.removeAttribute ("data-navigation-mode"),he.configure(w,t),de.configure(w,t),oe.configure(w,t),n e.configure(w,t),se.configure(w,t),ie.configure(w,t),ee.configure(w,t),Q.configu re(w,t),Ze()}function Ee(){window.addEventListener("resize",Dt,!1),w.touch&&ce.b ind(),w.keyboard&&ie.bind(),w.progress&&se.bind(),w.respondToHashChanges&&ae.bin d(),ne.bind(),de.bind(),$.slides.addEventListener("transitionend",Mt,!1),$.pause Overlay.addEventListener("click",je,!1),w.focusBodyOnPageVisibilityChange&&docum ent.addEventListener("visibilitychange",It,!1)}function Ae(){ce.unbind(),de.unbi nd(),ie.unbind(),ne.unbind(),se.unbind(),ae.unbind(),window.removeEventListener( "resize",Dt,!1),$.slides.removeEventListener("transitionend",Mt,!1),$.pauseOverl ay.removeEventListener("click",je,!1)}function ke(e,i,a){t.addEventListener(e,i, a)}function Le(e,i,a){t.removeEventListener(e,i,a)}function xe(e){"string"==type of e.layout&&(V.layout=e.layout),"string"==typeof e.overview&&(V.overview=e.over view),V.layout?o($.slides,V.layout+" "+V.overview):o($.slides,V.overview)}functi on Ce({target:e=$.wrapper,type:t,data:a,bubbles:n=!0}){let s=document.createEven t("HTMLEvents",1,2);s.initEvent(t,n,!0),i(s,a),e.dispatchEvent(s),e===$.wrapper& &Pe(t)}function Pe(e,t){if(w.postMessageEvents&&window.parent!==window.self){let a={namespace:"reveal",eventName:e,state:bt()};i(a,t),window.parent.postMessage( JSON.stringify(a),"*")}}function Ne(e="a"){Array.from($.wrapper.querySelectorAll (e)).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListen er("click",Tt,!1)}))}function Me(e="a"){Array.from($.wrapper.querySelectorAll(e) ).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListen er("click",Tt,!1)}))}function De(e){ze(),$.overlay=document.createElement("div") ,$.overlay.classList.add("overlay"),$.overlay.classList.add("overlay-preview"),$ .wrapper.appendChild($.overlay),$.overlay.innerHTML=`<header>\n\t\t\t\t<a class= "close" href="#"><span class="icon"></span></a>\n\t\t\t\t<a class="external" hre f="${e}" target="_blank"><span class="icon"></span></a>\n\t\t\t</header>\n\t\t\t <div class="spinner"></div>\n\t\t\t<div class="viewport">\n\t\t\t\t<iframe src=" ${e}"></iframe>\n\t\t\t\t<small class="viewport-inner">\n\t\t\t\t\t<span class=" x-frame-error">Unable to load iframe. This is likely due to the site's policy (x -frame-options).</span>\n\t\t\t\t</small>\n\t\t\t</div>`,$.overlay.querySelector ("iframe").addEventListener("load",(e=>{$.overlay.classList.add("loaded")}),!1), $.overlay.querySelector(".close").addEventListener("click",(e=>{ze(),e.preventDe fault()}),!1),$.overlay.querySelector(".external").addEventListener("click",(e=> {ze()}),!1)}function Ie(e){"boolean"==typeof e?e?Te():ze():$.overlay?ze():Te()}f unction Te(){if(w.help){ze(),$.overlay=document.createElement("div"),$.overlay.c lassList.add("overlay"),$.overlay.classList.add("overlay-help"),$.wrapper.append Child($.overlay);let e='<p class="title">Keyboard Shortcuts</p><br/>',t=ie.getSh ortcuts(),i=ie.getBindings();e+="<table><th>KEY</th><th>ACTION</th>";for(let i i n t)e+=`<tr><td>${i}</td><td>${t[i]}</td></tr>`;for(let t in i)i[t].key&&i[t].de scription&&(e+=`<tr><td>${i[t].key}</td><td>${i[t].description}</td></tr>`);e+=" </table>",$.overlay.innerHTML=`\n\t\t\t\t<header>\n\t\t\t\t\t<a class="close" hr ef="#"><span class="icon"></span></a>\n\t\t\t\t</header>\n\t\t\t\t<div class="vi ewport">\n\t\t\t\t\t<div class="viewport-inner">${e}</div>\n\t\t\t\t</div>\n\t\t \t`,$.overlay.querySelector(".close").addEventListener("click",(e=>{ze(),e.preve ntDefault()}),!1)}}function ze(){return!!$.overlay&&($.overlay.parentNode.remove Child($.overlay),$.overlay=null,!0)}function He(){if($.wrapper&&!le.isPrintingPD F()){if(!w.disableLayout){p&&!w.embedded&&document.documentElement.style.setProp erty("--vh",.01*window.innerHeight+"px");const e=qe(),t=z;Be(w.width,w.height),$ .slides.style.width=e.width+"px",$.slides.style.height=e.height+"px",z=Math.min( e.presentationWidth/e.width,e.presentationHeight/e.height),z=Math.max(z,w.minSca le),z=Math.min(z,w.maxScale),1===z?($.slides.style.zoom="",$.slides.style.left=" ",$.slides.style.top="",$.slides.style.bottom="",$.slides.style.right="",xe({lay out:""})):z>1&&b&&window.devicePixelRatio<2?($.slides.style.zoom=z,$.slides.styl e.left="",$.slides.style.top="",$.slides.style.bottom="",$.slides.style.right="" ,xe({layout:""})):($.slides.style.zoom="",$.slides.style.left="50%",$.slides.sty le.top="50%",$.slides.style.bottom="auto",$.slides.style.right="auto",xe({layout :"translate(-50%, -50%) scale("+z+")"}));const i=Array.from($.wrapper.querySelec torAll(".slides section"));for(let t=0,a=i.length;t<a;t++){const a=i[t];"none"!= =a.style.display&&(w.center||a.classList.contains("center")?a.classList.contains ("stack")?a.style.top=0:a.style.top=Math.max((e.height-a.scrollHeight)/2,0)+"px" :a.style.top="")}t!==z&&Ce({type:"resize",data:{oldScale:t,scale:z,size:e}})}se. update(),G.updateParallax(),te.isActive()&&te.update()}}function Be(e,t){a($.sli des,"section > .stretch, section > .r-stretch").forEach((i=>{let a=u(i,t);if(/(i mg|video)/gi.test(i.nodeName)){const t=i.naturalWidth||i.videoWidth,n=i.naturalH eight||i.videoHeight,s=Math.min(e/t,a/n);i.style.width=t*s+"px",i.style.height=n *s+"px"}else i.style.width=e+"px",i.style.height=a+"px"}))}function qe(e,t){cons t i={width:w.width,height:w.height,presentationWidth:e||$.wrapper.offsetWidth,pr esentationHeight:t||$.wrapper.offsetHeight};return i.presentationWidth-=i.presen tationWidth*w.margin,i.presentationHeight-=i.presentationHeight*w.margin,"string "==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.prese ntationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt (i.height,10)/100*i.presentationHeight),i}function Fe(e,t){"object"==typeof e&&" function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}fu nction Ue(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classLi st.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-in dexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}f unction Oe(e=f){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i )}function We(){return!(!f||!Oe(f))&&!f.nextElementSibling}function Ve(){return 0===g&&0===v}function $e(){return!!f&&(!f.nextElementSibling&&(!Oe(f)||!f.parent Node.nextElementSibling))}function Ke(){if(w.pause){const e=$.wrapper.classList. contains("paused");Rt(),$.wrapper.classList.add("paused"),!1===e&&Ce({type:"paus ed"})}}function je(){const e=$.wrapper.classList.contains("paused");$.wrapper.cl assList.remove("paused"),wt(),e&&Ce({type:"resumed"})}function Xe(e){"boolean"== typeof e?e?Ke():je():Ye()?je():Ke()}function Ye(){return $.wrapper.classList.con tains("paused")}function _e(e){"boolean"==typeof e?e?Et():St():_?Et():St()}funct ion Je(){return!(!j||_)}function Qe(e,t,i,a){m=f;const n=$.wrapper.querySelector All(".slides>section");if(0===n.length)return;void 0!==t||te.isActive()||(t=Ue(n [e])),m&&m.parentNode&&m.parentNode.classList.contains("stack")&&Fe(m.parentNode ,v);const s=L.concat();L.length=0;let o=g||0,r=v||0;g=it(".slides>section",void 0===e?g:e),v=it(".slides>section.present>section",void 0===t?v:t);let l=g!==o||v !==r;l||(m=null);let d=n[g],c=d.querySelectorAll("section");f=c[v]||d;let h=!1;l &&m&&f&&!te.isActive()&&(m.hasAttribute("data-auto-animate")&&f.hasAttribute("da ta-auto-animate")&&(h=!0,$.slides.classList.add("disable-slide-transitions")),K= "running"),at(),He(),te.isActive()&&te.update(),void 0!==i&&ee.goto(i),m&&m!==f& &(m.classList.remove("present"),m.setAttribute("aria-hidden","true"),Ve()&&setTi meout((()=>{ht().forEach((e=>{Fe(e,0)}))}),0));e:for(let e=0,t=L.length;e<t;e++) {for(let t=0;t<s.length;t++)if(s[t]===L[e]){s.splice(t,1);continue e}$.viewport. classList.add(L[e]),Ce({type:L[e]})}for(;s.length;)$.viewport.classList.remove(s .pop());l&&Ce({type:"slidechanged",data:{indexh:g,indexv:v,previousSlide:m,curre ntSlide:f,origin:a}}),!l&&m||(J.stopEmbeddedContent(m),J.startEmbeddedContent(f) ),requestAnimationFrame((()=>{be(ye(f))})),se.update(),ne.update(),he.update(),G .update(),G.updateParallax(),Q.update(),ee.update(),ae.writeURL(),wt(),h&&(setTi meout((()=>{$.slides.classList.remove("disable-slide-transitions")}),0),w.autoAn imate&&Z.run(m,f))}function Ze(){Ae(),Ee(),He(),j=w.autoSlide,wt(),G.create(),ae .writeURL(),ee.sortAll(),ne.update(),se.update(),at(),he.update(),he.updateVisib ility(),G.update(!0),Q.update(),J.formatEmbeddedContent(),!1===w.autoPlayMedia?J .stopEmbeddedContent(f,{unloadIframes:!1}):J.startEmbeddedContent(f),te.isActive ()&&te.layout()}function Ge(e=f){G.sync(e),ee.sync(e),J.load(e),G.update(),he.up date()}function et(){dt().forEach((e=>{a(e,"section").forEach(((e,t)=>{t>0&&(e.c lassList.remove("present"),e.classList.remove("past"),e.classList.add("future"), e.setAttribute("aria-hidden","true"))}))}))}function tt(e=dt()){e.forEach(((t,i) =>{let a=e[Math.floor(Math.random()*e.length)];a.parentNode===t.parentNode&&t.pa rentNode.insertBefore(t,a);let n=t.querySelectorAll("section");n.length&&tt(n)}) )}function it(e,t){let i=a($.wrapper,e),n=i.length,s=le.isPrintingPDF();if(n){w. loop&&(t%=n)<0&&(t=n+t),t=Math.max(Math.min(t,n-1),0);for(let e=0;e<n;e++){let n =i[e],o=w.rtl&&!Oe(n);n.classList.remove("past"),n.classList.remove("present"),n .classList.remove("future"),n.setAttribute("hidden",""),n.setAttribute("aria-hid den","true"),n.querySelector("section")&&n.classList.add("stack"),s?n.classList. add("present"):e<t?(n.classList.add(o?"future":"past"),w.fragments&&a(n,".fragme nt").forEach((e=>{e.classList.add("visible"),e.classList.remove("current-fragmen t")}))):e>t&&(n.classList.add(o?"past":"future"),w.fragments&&a(n,".fragment.vis ible").forEach((e=>{e.classList.remove("visible","current-fragment")})))}let e=i [t],o=e.classList.contains("present");e.classList.add("present"),e.removeAttribu te("hidden"),e.removeAttribute("aria-hidden"),o||Ce({target:e,type:"visible",bub bles:!1});let r=e.getAttribute("data-state");r&&(L=L.concat(r.split(" ")))}else t=0;return t}function at(){let e,t,i=dt(),n=i.length;if(n&&void 0!==g){let s=te. isActive()?10:w.viewDistance;p&&(s=te.isActive()?6:w.mobileViewDistance),le.isPr intingPDF()&&(s=Number.MAX_VALUE);for(let o=0;o<n;o++){let r=i[o],l=a(r,"section "),d=l.length;if(e=Math.abs((g||0)-o)||0,w.loop&&(e=Math.abs(((g||0)-o)%(n-s))|| 0),e<s?J.load(r):J.unload(r),d){let i=Ue(r);for(let a=0;a<d;a++){let n=l[a];t=o= ==(g||0)?Math.abs((v||0)-a):Math.abs(a-i),e+t<s?J.load(n):J.unload(n)}}}gt()?$.w rapper.classList.add("has-vertical-slides"):$.wrapper.classList.remove("has-vert ical-slides"),ut()?$.wrapper.classList.add("has-horizontal-slides"):$.wrapper.cl assList.remove("has-horizontal-slides")}}function nt({includeFragments:e=!1}={}) {let t=$.wrapper.querySelectorAll(".slides>section"),i=$.wrapper.querySelectorAl l(".slides>section.present>section"),a={left:g>0,right:g<t.length-1,up:v>0,down: v<i.length-1};if(w.loop&&(t.length>1&&(a.left=!0,a.right=!0),i.length>1&&(a.up=! 0,a.down=!0)),t.length>1&&"linear"===w.navigationMode&&(a.right=a.right||a.down, a.left=a.left||a.up),!0===e){let e=ee.availableRoutes();a.left=a.left||e.prev,a. up=a.up||e.prev,a.down=a.down||e.next,a.right=a.right||e.next}if(w.rtl){let e=a. left;a.left=a.right,a.right=e}return a}function st(e=f){let t=dt(),i=0;e:for(let a=0;a<t.length;a++){let n=t[a],s=n.querySelectorAll("section");for(let t=0;t<s. length;t++){if(s[t]===e)break e;"uncounted"!==s[t].dataset.visibility&&i++}if(n= ==e)break;!1===n.classList.contains("stack")&&"uncounted"!==n.dataset.visibility &&i++}return i}function ot(){let e=pt(),t=st();if(f){let e=f.querySelectorAll(". fragment");if(e.length>0){let i=.9;t+=f.querySelectorAll(".fragment.visible").le ngth/e.length*i}}return Math.min(t/(e-1),1)}function rt(e){let t,i=g,n=v;if(e){l et t=Oe(e),s=t?e.parentNode:e,o=dt();i=Math.max(o.indexOf(s),0),n=void 0,t&&(n=M ath.max(a(e.parentNode,"section").indexOf(e),0))}if(!e&&f){if(f.querySelectorAll (".fragment").length>0){let e=f.querySelector(".current-fragment");t=e&&e.hasAtt ribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10) :f.querySelectorAll(".fragment.visible").length-1}}return{h:i,v:n,f:t}}function lt(){return a($.wrapper,'.slides section:not(.stack):not([data-visibility="uncou nted"])')}function dt(){return a($.wrapper,".slides>section")}function ct(){retu rn a($.wrapper,".slides>section>section")}function ht(){return a($.wrapper,".sli des>section.stack")}function ut(){return dt().length>1}function gt(){return ct() .length>1}function vt(){return lt().map((e=>{let t={};for(let i=0;i<e.attributes .length;i++){let a=e.attributes[i];t[a.name]=a.value}return t}))}function pt(){r eturn lt().length}function mt(e,t){let i=dt()[e],a=i&&i.querySelectorAll("sectio n");return a&&a.length&&"number"==typeof t?a?a[t]:void 0:i}function ft(e,t){let i="number"==typeof e?mt(e,t):e;if(i)return i.slideBackgroundElement}function bt( ){let e=rt();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Ye(),overview:te.isA ctive()}}function yt(e){if("object"==typeof e){Qe(s(e.indexh),s(e.indexv),s(e.in dexf));let t=s(e.paused),i=s(e.overview);"boolean"==typeof t&&t!==Ye()&&Xe(t),"b oolean"==typeof i&&i!==te.isActive()&&te.toggle(i)}}function wt(){if(Rt(),f&&!1! ==w.autoSlide){let e=f.querySelector(".current-fragment");e||(e=f.querySelector( ".fragment"));let t=e?e.getAttribute("data-autoslide"):null,i=f.parentNode?f.par entNode.getAttribute("data-autoslide"):null,n=f.getAttribute("data-autoslide");t ?j=parseInt(t,10):n?j=parseInt(n,10):i?j=parseInt(i,10):(j=w.autoSlide,0===f.que rySelectorAll(".fragment").length&&a(f,"video, audio").forEach((e=>{e.hasAttribu te("data-autoplay")&&j&&1e3*e.duration/e.playbackRate>j&&(j=1e3*e.duration/e.pla ybackRate+1e3)}))),!j||_||Ye()||te.isActive()||$e()&&!ee.availableRoutes().next& &!0!==w.loop||(X=setTimeout((()=>{"function"==typeof w.autoSlideMethod?w.autoSli deMethod():Pt(),wt()}),j),Y=Date.now()),y&&y.setPlaying(-1!==X)}}function Rt(){c learTimeout(X),X=-1}function St(){j&&!_&&(_=!0,Ce({type:"autoslidepaused"}),clea rTimeout(X),y&&y.setPlaying(!1))}function Et(){j&&_&&(_=!1,Ce({type:"autoslidere sumed"}),wt())}function At(){A.hasNavigatedHorizontally=!0,w.rtl?(te.isActive()| |!1===ee.next())&&nt().left&&Qe(g+1,"grid"===w.navigationMode?v:void 0):(te.isAc tive()||!1===ee.prev())&&nt().left&&Qe(g-1,"grid"===w.navigationMode?v:void 0)}f unction kt(){A.hasNavigatedHorizontally=!0,w.rtl?(te.isActive()||!1===ee.prev()) &&nt().right&&Qe(g-1,"grid"===w.navigationMode?v:void 0):(te.isActive()||!1===ee .next())&&nt().right&&Qe(g+1,"grid"===w.navigationMode?v:void 0)}function Lt(){( te.isActive()||!1===ee.prev())&&nt().up&&Qe(g,v-1)}function xt(){A.hasNavigatedV ertically=!0,(te.isActive()||!1===ee.next())&&nt().down&&Qe(g,v+1)}function Ct() {if(!1===ee.prev())if(nt().up)Lt();else{let e;if(e=w.rtl?a($.wrapper,".slides>se ction.future").pop():a($.wrapper,".slides>section.past").pop(),e){let t=e.queryS electorAll("section").length-1||void 0;Qe(g-1,t)}}}function Pt(){if(A.hasNavigat edHorizontally=!0,A.hasNavigatedVertically=!0,!1===ee.next()){let e=nt();e.down& &e.right&&w.loop&&We()&&(e.down=!1),e.down?xt():w.rtl?At():kt()}}function Nt(e){ w.autoSlideStoppable&&St()}function Mt(e){"running"===K&&/section/gi.test(e.targ et.nodeName)&&(K="idle",Ce({type:"slidetransitionend",data:{indexh:g,indexv:v,pr eviousSlide:m,currentSlide:f}}))}function Dt(e){He()}function It(e){!1===documen t.hidden&&document.activeElement!==document.body&&("function"==typeof document.a ctiveElement.blur&&document.activeElement.blur(),document.body.focus())}function Tt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.current Target.getAttribute("href");t&&(De(t),e.preventDefault())}}function zt(e){$e()&& !1===w.loop?(Qe(0,0),Et()):_?Et():St()}const Ht={VERSION:"4.1.0",initialize:ue,c onfigure:Se,sync:Ze,syncSlide:Ge,syncFragments:ee.sync.bind(ee),slide:Qe,left:At ,right:kt,up:Lt,down:xt,prev:Ct,next:Pt,navigateLeft:At,navigateRight:kt,navigat eUp:Lt,navigateDown:xt,navigatePrev:Ct,navigateNext:Pt,navigateFragment:ee.goto. bind(ee),prevFragment:ee.prev.bind(ee),nextFragment:ee.next.bind(ee),on:ke,off:L e,addEventListener:ke,removeEventListener:Le,layout:He,shuffle:tt,availableRoute s:nt,availableFragments:ee.availableRoutes.bind(ee),toggleHelp:Ie,toggleOverview :te.toggle.bind(te),togglePause:Xe,toggleAutoSlide:_e,isFirstSlide:Ve,isLastSlid e:$e,isLastVerticalSlide:We,isVerticalSlide:Oe,isPaused:Ye,isAutoSliding:Je,isSp eakerNotes:he.isSpeakerNotesWindow.bind(he),isOverview:te.isActive.bind(te),isFo cused:de.isFocused.bind(de),isPrintingPDF:le.isPrintingPDF.bind(le),isReady:()=> R,loadSlide:J.load.bind(J),unloadSlide:J.unload.bind(J),showPreview:De,hidePrevi ew:ze,addEventListeners:Ee,removeEventListeners:Ae,dispatchEvent:Ce,getState:bt, setState:yt,getProgress:ot,getIndices:rt,getSlidesAttributes:vt,getSlidePastCoun t:st,getTotalSlides:pt,getSlide:mt,getPreviousSlide:()=>m,getCurrentSlide:()=>f, getSlideBackground:ft,getSlideNotes:he.getSlideNotes.bind(he),getSlides:lt,getHo rizontalSlides:dt,getVerticalSlides:ct,hasHorizontalSlides:ut,hasVerticalSlides: gt,hasNavigatedHorizontally:()=>A.hasNavigatedHorizontally,hasNavigatedVerticall y:()=>A.hasNavigatedVertically,addKeyBinding:ie.addKeyBinding.bind(ie),removeKey Binding:ie.removeKeyBinding.bind(ie),triggerKey:ie.triggerKey.bind(ie),registerK eyboardShortcut:ie.registerKeyboardShortcut.bind(ie),getComputedSlideSize:qe,get Scale:()=>z,getConfig:()=>w,getQueryHash:h,getRevealElement:()=>t,getSlidesEleme nt:()=>$.slides,getViewportElement:()=>$.viewport,getBackgroundsElement:()=>G.el ement,registerPlugin:re.registerPlugin.bind(re),hasPlugin:re.hasPlugin.bind(re), getPlugin:re.getPlugin.bind(re),getPlugins:re.getRegisteredPlugins.bind(re)};ret urn i(c,{...Ht,announceStatus:be,getStatusText:ye,print:le,focus:de,progress:se, controls:ne,location:ae,overview:te,fragments:ee,slideContent:J,slideNumber:Q,on UserInput:Nt,closeOverlay:ze,updateSlidesVisibility:at,layoutSlideContents:Be,tr ansformSlides:xe,cueAutoSlide:wt,cancelAutoSlide:Rt}),Ht}let $=V,K=[];$.initiali ze=e=>(Object.assign($,new V(document.querySelector(".reveal"),e)),K.map((e=>e($ ))),$.initialize()),["configure","on","off","addEventListener","removeEventListe ner","registerPlugin"].forEach((e=>{$[e]=(...t)=>{K.push((i=>i[e].call(null,...t )))}})),$.isReady=()=>!1,$.VERSION="4.1.0";export default $; const e=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/ ,t=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|cur rent-visible|shrink|grow/,i=(e,t)=>{for(let i in t)e[i]=t[i];return e},a=(e,t)=> Array.from(e.querySelectorAll(t)),n=(e,t,i)=>{i?e.classList.add(t):e.classList.r emove(t)},s=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)r eturn!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}r eturn e},o=(e,t)=>{e.style.transform=t},r=(e,t)=>{let i=e.matches||e.matchesSele ctor||e.msMatchesSelector;return!(!i||!i.call(e,t))},l=(e,t)=>{if("function"==ty peof e.closest)return e.closest(t);for(;e;){if(r(e,t))return e;e=e.parentNode}re turn null},d=(e,t,i,a="")=>{let n=e.querySelectorAll("."+i);for(let t=0;t<n.leng th;t++){let i=n[t];if(i.parentNode===e)return i}let s=document.createElement(t); return s.className=i,s.innerHTML=a,e.appendChild(s),s},c=e=>{let t=document.crea teElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.style Sheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendC hild(t),t},h=()=>{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] =s(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},u=(e,t= 0)=>{if(e){let i,a=e.style.height;return e.style.height="0px",e.parentNode.style .height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode. style.removeProperty("height"),i}return t},g=navigator.userAgent,v=document.crea teElement("div"),p=/(iphone|ipod|ipad|android)/gi.test(g)||"MacIntel"===navigato r.platform&&navigator.maxTouchPoints>1,m=/chrome/i.test(g)&&!/edge/i.test(g),f=/ android/gi.test(g),b="zoom"in v.style&&!p&&(m||/Version\/[\d\.]+.*Safari/.test(g ));var y={};Object.defineProperty(y,"__esModule",{value:!0});var w=Object.assign ||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a i n i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},R=y.default =function(e){if(e){var t=function(e){return[].slice.call(e)},i=0,a=1,n=2,s=3,o=[ ],r=null,l="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(r),r=e. requestAnimationFrame((function(){return c(o.filter((function(e){return e.dirty& &e.active})))}))}:function(){},d=function(e){return function(){o.forEach((functi on(t){return t.dirty=e})),l()}},c=function(e){e.filter((function(e){return!e.sty leComputed})).forEach((function(e){e.styleComputed=v(e)})),e.filter(p).forEach(m );var t=e.filter(g);t.forEach(u),t.forEach((function(e){m(e),h(e)})),t.forEach(f )},h=function(e){return e.dirty=i},u=function(e){e.availableWidth=e.element.pare ntNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.cur rentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.cu rrentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFon tSize===e.minSize?"normal":"nowrap"},g=function(e){return e.dirty!==n||e.dirty== =n&&e.element.parentNode.clientWidth!==e.availableWidth},v=function(t){var i=e.g etComputedStyle(t.element,null);t.currentFontSize=parseFloat(i.getPropertyValue( "font-size")),t.display=i.getPropertyValue("display"),t.whiteSpace=i.getProperty Value("white-space")},p=function(e){var t=!1;return!e.preStyleTestCompleted&&(/i nline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace &&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},m=function(e){e.el ement.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element. style.fontSize=e.currentFontSize+"px"},f=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSi ze,scaleFactor:e.currentFontSize/e.previousFontSize}}))},b=function(e,t){return function(){e.dirty=t,e.active&&l()}},y=function(e){return function(){o=o.filter( (function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disc onnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.d isplay=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize }},R=function(e){return function(){e.active||(e.active=!0,l())}},A=function(e){r eturn function(){return e.active=!1}},S=function(e){e.observeMutations&&(e.obser ver=new MutationObserver(b(e,a)),e.observer.observe(e.element,e.observeMutations ))},E={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},k=null,L=function(){e.clearTimeo ut(k),k=e.setTimeout(d(n),P.observeWindowDelay)},x=["resize","orientationchange" ];return Object.defineProperty(P,"observeWindow",{set:function(t){var i=(t?"add" :"remove")+"EventListener";x.forEach((function(t){e[i](t,L)}))}}),P.observeWindo w=!0,P.observeWindowDelay=100,P.fitAll=d(s),P}function C(e,t){var i=w({},E,t),a= e.map((function(e){var t=w({},i,{element:e,active:!0});return function(e){e.orig inalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display ,fontSize:e.element.style.fontSize},S(e),e.newbie=!0,e.dirty=!0,o.push(e)}(t),{e lement:e,fit:b(t,s),unfreeze:R(t),freeze:A(t),unsubscribe:y(t)}}));return l(),a} function P(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re turn"string"==typeof e?C(t(document.querySelectorAll(e)),i):C([e],i)[0]}}("undef ined"==typeof window?null:window);class A{constructor(e){this.Reveal=e,this.star tEmbeddedIframe=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,a (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.getA ttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("d ata-src"))})),a(e,"video, audio").forEach((e=>{let t=0;a(e,"source[data-src]").f orEach((e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute(" data-src"),e.setAttribute("data-lazy-loaded",""),t+=1})),p&&"VIDEO"===e.tagName& &e.setAttribute("playsinline",""),t>0&&e.load()}));let i=e.slideBackgroundElemen t;if(i){i.style.display="block";let a=e.slideBackgroundContentElement,n=e.getAtt ribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAtt ribute("data-loaded","true");let s=e.getAttribute("data-background-image"),o=e.g etAttribute("data-background-video"),r=e.hasAttribute("data-background-video-loo p"),l=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage =s.split(",").map((e=>`url(${encodeURI(e.trim())})`)).join(",");else if(o&&!this .Reveal.isSpeakerNotes()){let e=document.createElement("video");r&&e.setAttribut e("loop",""),l&&(e.muted=!0),p&&(e.muted=!0,e.setAttribute("playsinline","")),o. split(",").forEach((t=>{e.innerHTML+='<source src="'+t+'">'})),a.appendChild(e)} else if(n&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAt tribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttri bute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribu te("data-src",n),e.style.width="100%",e.style.height="100%",e.style.maxHeight="1 00%",e.style.maxWidth="100%",a.appendChild(e)}}let s=a.querySelector("iframe[dat a-src]");s&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(n)&&s.getAttr ibute("src")!==n&&s.setAttribute("src",n)}this.layout(e)}layout(e){Array.from(e. querySelectorAll(".r-fit-text")).forEach((e=>{R(e,{minSize:24,maxSize:.8*this.Re veal.getConfig().height,observeMutations:!1,observeWindow:!1})}))}unload(e){e.st yle.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display=" none",a(t,"iframe[src]").forEach((e=>{e.removeAttribute("src")}))),a(e,"video[da ta-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src ]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttrib ute("src")})),a(e,"video[data-lazy-loaded] source[src], audio source[src]").forE ach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src ")}))}formatEmbeddedContent(){let e=(e,t,i)=>{a(this.Reveal.getSlidesElement()," iframe["+e+'*="'+t+'"]').forEach((t=>{let a=t.getAttribute(e);a&&-1===a.indexOf( i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)}))};e("src","youtube.com/embed/ ","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","p layer.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbedd edContent(e){e&&!this.Reveal.isSpeakerNotes()&&(a(e,'img[src$=".gif"]').forEach( (e=>{e.setAttribute("src",e.getAttribute("src"))})),a(e,"video, audio").forEach( (e=>{if(l(e,".fragment")&&!l(e,".fragment.visible"))return;let t=this.Reveal.get Config().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay" )||!!l(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)th is.startEmbeddedMedia({target:e});else if(p){let t=e.play();t&&"function"==typeo f t.catch&&!1===e.controls&&t.catch((()=>{e.controls=!0,e.addEventListener("play ",(()=>{e.controls=!1}))}))}else e.removeEventListener("loadeddata",this.startEm beddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)})),a(e,"if rame[src]").forEach((e=>{l(e,".fragment")&&!l(e,".fragment.visible")||this.start EmbeddedIframe({target:e})})),a(e,"iframe[data-src]").forEach((e=>{l(e,".fragmen t")&&!l(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=!!l(e.target,"html"),i=!!l(e.target,".present" );t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("l oadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&& t.contentWindow){let i=!!l(e.target,"html"),a=!!l(e.target,".present");if(i&&a){ let e=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribu te("data-autoplay")||!!l(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.postMessa ge("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=i({unloadIframes:!0},t),e& &e.parentNode&&(a(e,"video, audio").forEach((e=>{e.hasAttribute("data-ignore")|| "function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause( ))})),a(e,"iframe").forEach((e=>{e.contentWindow&&e.contentWindow.postMessage("s lide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)})),a(e,'i frame[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":""}',"*")})),a(e,'if rame[src*="player.vimeo.com/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e. contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.p ostMessage('{"method":"pause"}',"*")})),!0===t.unloadIframes&&a(e,"iframe[data-s rc]").forEach((e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")} )))}}class S{constructor(e){this.Reveal=e}render(){this.element=document.createE lement("div"),this.element.className="slide-number",this.Reveal.getRevealElement ().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Re veal.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=thi s.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t,i=this .Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)t=i.slideNumber( e);else{"string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this. Reveal.getHorizontalSlides().length||(a="c");let n=e&&"uncounted"===e.dataset.vi sibility?0:1;switch(t=[],a){case"c":t.push(this.Reveal.getSlidePastCount(e)+n);b reak;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+n,"/",this.Reveal.getTota lSlides());break;default:let i=this.Reveal.getIndices(e);t.push(i.h+n);let s="h/ v"===a?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(s,i.v+1)}}let n="#"+this.R eveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],n)}formatNumbe r(e,t,i,a="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i) ?`<a href="${a}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\t\t\t\ t</a>`:`<a href="${a}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\ t\t\t\t<span class="slide-number-delimiter">${t}</span>\n\t\t\t\t\t<span class=" slide-number-b">${i}</span>\n\t\t\t\t\t</a>`}}const E=e=>{let t=e.match(/^#([0-9 a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseI nt(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 a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\ d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:p arseInt(a[3],10)};let n=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\, \s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10 ),b:parseInt(n[3],10),a:parseFloat(n[4])}:null};class k{constructor(e){this.Reve al=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.Revea l.getHorizontalSlides().forEach((e=>{let t=this.createBackground(e,this.element) ;a(e,"section").forEach((e=>{this.createBackground(e,t),t.classList.add("stack") }))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backg roundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.ele ment.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.el ement.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,th is.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPo sition,setTimeout((()=>{this.Reveal.getRevealElement().classList.add("has-parall ax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getReve alElement().classList.remove("has-parallax-background"))}createBackground(e,t){l et i=document.createElement("div");i.className="slide-background "+e.className.r eplace(/present|past|future/,"");let a=document.createElement("div");return a.cl assName="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBack groundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){const t =e.slideBackgroundElement,i=e.slideBackgroundContentElement,a={background:e.getA ttribute("data-background"),backgroundSize:e.getAttribute("data-background-size" ),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getA ttribute("data-background-video"),backgroundIframe:e.getAttribute("data-backgrou nd-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRe peat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute( "data-background-position"),backgroundTransition:e.getAttribute("data-background -transition"),backgroundOpacity:e.getAttribute("data-background-opacity")},n=e.h asAttribute("data-preload");e.classList.remove("has-dark-background"),e.classLis t.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttrib ute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAt tribute("data-background-transition"),t.style.backgroundColor="",i.style.backgro undSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.bac kgroundImage="",i.style.opacity="",i.innerHTML="",a.background&&(/^(http|file|\/ \/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.bac kground)?e.setAttribute("data-background-image",a.background):t.style.background =a.background),(a.background||a.backgroundColor||a.backgroundImage||a.background Video||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a .backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgro undColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgr oundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroun dSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgrou ndTransition&&t.setAttribute("data-background-transition",a.backgroundTransition ),n&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize =a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRep eat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.b ackgroundOpacity&&(i.style.opacity=a.backgroundOpacity);let s=a.backgroundColor; if(!s||!E(s)){let e=window.getComputedStyle(t);e&&e.backgroundColor&&(s=e.backgr oundColor)}if(s){const t=E(s);t&&0!==t.a&&("string"==typeof(o=s)&&(o=E(o)),(o?(2 99*o.r+587*o.g+114*o.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.c lassList.add("has-light-background"))}var o}update(e=!1){let t=this.Reveal.getCu rrentSlide(),i=this.Reveal.getIndices(),n=null,s=this.Reveal.getConfig().rtl?"fu ture":"past",o=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.el ement.childNodes).forEach(((t,r)=>{t.classList.remove("past","present","future") ,r<i.h?t.classList.add(s):r>i.h?t.classList.add(o):(t.classList.add("present"),n =t),(e||r===i.h)&&a(t,".slide-background").forEach(((e,t)=>{e.classList.remove(" past","present","future"),t<i.v?e.classList.add("past"):t>i.v?e.classList.add("f uture"):(e.classList.add("present"),r===i.h&&(n=e))}))})),this.previousBackgroun d&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadI frames:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),n){thi s.Reveal.slideContent.startEmbeddedContent(n);let e=n.querySelector(".slide-back ground-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.st yle.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImag e=t)}let t=this.previousBackground?this.previousBackground.getAttribute("data-ba ckground-hash"):null,i=n.getAttribute("data-background-hash");i&&i===t&&n!==this .previousBackground&&this.element.classList.add("no-transition"),this.previousBa ckground=n}t&&["has-light-background","has-dark-background"].forEach((e=>{t.clas sList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.ge tRevealElement().classList.remove(e)}),this),setTimeout((()=>{this.element.class List.remove("no-transition")}),1)}updateParallax(){let e=this.Reveal.getIndices( );if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,a=this.Reveal.getH orizontalSlides(),n=this.Reveal.getVerticalSlides(),s=this.element.style.backgro undSize.split(" ");1===s.length?t=i=parseInt(s[0],10):(t=parseInt(s[0],10),i=par seInt(s[1],10));let o,r,l=this.element.offsetWidth,d=a.length;o="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().pa rallaxBackgroundHorizontal:d>1?(t-l)/(d-1):0,r=o*e.h*-1;let c,h,u=this.element.o ffsetHeight,g=n.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgr oundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-u)/(g-1),h=g> 0?c*e.v:0,this.element.style.backgroundPosition=r+"px "+-h+"px"}}}let L=0;class x{constructor(e){this.Reveal=e}run(e,t){this.reset();let i=this.Reveal.getSlides (),a=i.indexOf(t),n=i.indexOf(e);if(e.hasAttribute("data-auto-animate")&&t.hasAt tribute("data-auto-animate")&&e.getAttribute("data-auto-animate-id")===t.getAttr ibute("data-auto-animate-id")&&!(a>n?t:e).hasAttribute("data-auto-animate-restar t")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||c();let i=this.getAu toAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pendi ng",i.slideDirection=a>n?"forward":"backward";let s=this.getAutoAnimatableElemen ts(e,t).map((e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,L++)));if(" false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimat eUnmatched){let e=.8*i.duration,a=.2*i.duration;this.getUnmatchedAutoAnimateElem ents(t).forEach((e=>{let t=this.getAutoAnimateOptions(e,i),a="unmatched";t.durat ion===i.duration&&t.delay===i.delay||(a="unmatched-"+L++,s.push(`[data-auto-anim ate="running"] [data-auto-animate-target="${a}"] { transition: opacity ${t.durat ion}s ease ${t.delay}s; }`)),e.dataset.autoAnimateTarget=a}),this),s.push(`[data -auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: op acity ${e}s ease ${a}s; }`)}this.autoAnimateStyleSheet.innerHTML=s.join(""),requ estAnimationFrame((()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoA nimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dis patchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimat eStyleSheet}})}}reset(){a(this.Reveal.getRevealElement(),'[data-auto-animate]:no t([data-auto-animate=""])').forEach((e=>{e.dataset.autoAnimate=""})),a(this.Reve al.getRevealElement(),"[data-auto-animate-target]").forEach((e=>{delete e.datase t.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.pa rentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateSty leSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e,i,a,n,s){e.datas et.autoAnimateTarget="",i.dataset.autoAnimateTarget=s;let o=this.getAutoAnimateO ptions(i,n);void 0!==a.delay&&(o.delay=a.delay),void 0!==a.duration&&(o.duration =a.duration),void 0!==a.easing&&(o.easing=a.easing);let r=this.getAutoAnimatable Properties("from",e,a),l=this.getAutoAnimatableProperties("to",i,a);if(i.classLi st.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment "))){(e.className.match(t)||[""])[0]===(i.className.match(t)||[""])[0]&&"forward "===n.slideDirection&&i.classList.add("visible","disabled")}if(!1!==a.translate| |!1!==a.scale){let e=this.Reveal.getScale(),t={x:(r.x-l.x)/e,y:(r.y-l.y)/e,scale X:r.width/l.width,scaleY:r.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(1e 3*t.scaleX)/1e3;let i=!1!==a.translate&&(0!==t.x||0!==t.y),n=!1!==a.scale&&(0!== t.scaleX||0!==t.scaleY);if(i||n){let e=[];i&&e.push(`translate(${t.x}px, ${t.y}p x)`),n&&e.push(`scale(${t.scaleX}, ${t.scaleY})`),r.styles.transform=e.join(" ") ,r.styles["transform-origin"]="top left",l.styles.transform="none"}}for(let e in l.styles){const t=l.styles[e],i=r.styles[e];t===i?delete l.styles[e]:(!0===t.ex plicitValue&&(l.styles[e]=t.value),!0===i.explicitValue&&(r.styles[e]=i.value))} let d="",c=Object.keys(l.styles);if(c.length>0){r.styles.transition="none",l.sty les.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,l.styles["transition -property"]=c.join(", "),l.styles["will-change"]=c.join(", "),d='[data-auto-anim ate-target="'+s+'"] {'+Object.keys(r.styles).map((e=>e+": "+r.styles[e]+" !impor tant;")).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 a={easing:this.Reveal.getConfig() .autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0} ;if(a=i(a,t),e.parentNode){let t=l(e.parentNode,"[data-auto-animate-target]");t& &(a=this.getAutoAnimateOptions(t,a))}return e.dataset.autoAnimateEasing&&(a.easi ng=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(a.duration=parse Float(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(a.delay=parse Float(e.dataset.autoAnimateDelay)),a}getAutoAnimatableProperties(e,t,i){let a=th is.Reveal.getConfig(),n={styles:[]};if(!1!==i.translate||!1!==i.scale){let e;if( "function"==typeof i.measure)e=i.measure(t);else if(a.center)e=t.getBoundingClie ntRect();else{let i=this.Reveal.getScale();e={x:t.offsetLeft*i,y:t.offsetTop*i,w idth:t.offsetWidth*i,height:t.offsetHeight*i}}n.x=e.x,n.y=e.y,n.width=e.width,n. height=e.height}const s=getComputedStyle(t);return(i.styles||a.autoAnimateStyles ).forEach((t=>{let i;"string"==typeof t&&(t={property:t}),i=void 0!==t.from&&"fr om"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,expl icitValue:!0}:s[t.property],""!==i&&(n.styles[t.property]=i)})),n}getAutoAnimata bleElements(e,t){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMa tcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call( this,e,t),a=[];return i.filter(((e,t)=>{if(-1===a.indexOf(e.to))return a.push(e. to),!0}))}getAutoAnimatePairs(e,t){let i=[];const a="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,a,(e=>e.nodeName+":: :"+e.innerText)),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",(e=>e.no deName+":::"+(e.getAttribute("src")||e.getAttribute("data-src")))),this.findAuto AnimateMatches(i,e,t,"pre",(e=>e.nodeName+":::"+e.innerText)),i.forEach((e=>{r(e .from,a)?e.options={scale:!1}:r(e.from,"pre")&&(e.options={scale:!1,styles:["wid th","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-num ber]",(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.ro und(e.offsetHeight*t*100)/100}}findAutoAnimateMatches(e,t,i,a,n,s){let o={},r={} ;[].slice.call(t.querySelectorAll(a)).forEach(((e,t)=>{const i=n(e);"string"==ty peof i&&i.length&&(o[i]=o[i]||[],o[i].push(e))})),[].slice.call(i.querySelectorA ll(a)).forEach(((t,i)=>{const a=n(t);let l;if(r[a]=r[a]||[],r[a].push(t),o[a]){c onst e=r[a].length-1,t=o[a].length-1;o[a][e]?(l=o[a][e],o[a][e]=null):o[a][t]&&( l=o[a][t],o[a][t]=null)}l&&e.push({from:l,to:t,options:s})}))}getUnmatchedAutoAn imateElements(e){return[].slice.call(e.children).reduce(((e,t)=>{const i=t.query Selector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate- target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.conca t(this.getUnmatchedAutoAnimateElements(t))),e}),[])}}class C{constructor(e){this .Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this. enable()}disable(){a(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e. classList.add("visible"),e.classList.remove("current-fragment")}))}enable(){a(th is.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classList.remove("visib le"),e.classList.remove("current-fragment")}))}availableRoutes(){let e=this.Reve al.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){let t=e.querySelec torAll(".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=[],a=[],n=[];e.forEach((e=>{if(e.h asAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment -index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])})),i=i.concat(a);let s=0;return i.forEach((e=>{e.forEach((e=>{n.push(e),e.setAttribute("data-fragment -index",s)})),s++})),!0===t?i:n}sortAll(){this.Reveal.getHorizontalSlides().forE ach((e=>{let t=a(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:[]},a=this.Reveal.getCurrentSlide();if(a&&thi s.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment")) ).length){let n=0;if("number"!=typeof e){let t=this.sort(a.querySelectorAll(".fr agment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0, 10))}Array.from(t).forEach(((t,a)=>{if(t.hasAttribute("data-fragment-index")&&(a =parseInt(t.getAttribute("data-fragment-index"),10)),n=Math.max(n,a),a<=e){let n =t.classList.contains("visible");t.classList.add("visible"),t.classList.remove(" current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText( t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedCo ntent(t)),n||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible" ,bubbles:!1}))}else{let e=t.classList.contains("visible");t.classList.remove("vi sible"),t.classList.remove("current-fragment"),e&&(this.Reveal.slideContent.stop EmbeddedContent(t),i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hi dden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,n),-1),a .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 a=this.sort(i.que rySelectorAll(".fragment:not(.disabled)"));if(a.length){if("number"!=typeof e){l et t=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=t ?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}e+=t;let n=this.update (e,a);return n.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",d ata:{fragment:n.hidden[0],fragments:n.hidden}}),n.shown.length&&this.Reveal.disp atchEvent({type:"fragmentshown",data:{fragment:n.shown[0],fragments:n.shown}}),t his.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig ().fragmentInURL&&this.Reveal.location.writeURL(),!(!n.shown.length&&!n.hidden.l ength)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1 )}}class P{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("overvie w"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(thi s.Reveal.getBackgroundsElement()),a(this.Reveal.getRevealElement(),".slides sect ion").forEach((e=>{e.classList.contains("stack")||e.addEventListener("click",thi s.onSlideClicked,!0)}));const e=70,t=this.Reveal.getComputedSlideSize();this.ove rviewSlideWidth=t.width+e,this.overviewSlideHeight=t.height+e,this.Reveal.getCon fig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.update SlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this .Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{index h:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Re veal.getHorizontalSlides().forEach(((e,t)=>{e.setAttribute("data-index-h",t),o(e ,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("sta ck")&&a(e,"section").forEach(((e,i)=>{e.setAttribute("data-index-h",t),e.setAttr ibute("data-index-v",i),o(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0) ")}))})),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach(((e, t)=>{o(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),a(e,".slide-backg round").forEach(((e,t)=>{o(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.get Config().overview){this.active=!1,this.Reveal.getRevealElement().classList.remov e("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivatin g"),setTimeout((()=>{this.Reveal.getRevealElement().classList.remove("overview-d eactivating")}),1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBac kgroundsElement()),a(this.Reveal.getRevealElement(),".slides section").forEach(( e=>{o(e,""),e.removeEventListener("click",this.onSlideClicked,!0)})),a(this.Reve al.getBackgroundsElement(),".slide-background").forEach((e=>{o(e,"")})),this.Rev eal.transformSlides({overview:""});const e=this.Reveal.getIndices();this.Reveal. slide(e.h,e.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispa tchEvent({type:"overviewhidden",data:{indexh:e.h,indexv:e.v,currentSlide:this.Re veal.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.ta rget;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.c ontains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){let e=pa rseInt(t.getAttribute("data-index-h"),10),i=parseInt(t.getAttribute("data-index- v"),10);this.Reveal.slide(e,i)}}}}class N{constructor(e){this.Reveal=e,this.shor tcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(thi s),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"li near"===e.navigationMode?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"] ="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P= "Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts[ "&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up", this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Home , Shift &#8592;"]="First slide",this.shortcuts["End , Shift &#8594;"]="Last slide",thi s.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC , O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumen tKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}un bind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),documen t.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(e,t){ "object"==typeof e&&e.keyCode?this.bindings[e.keyCode]={callback:t,key:e.key,des cription: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(){r eturn this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(e){e. shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){let t=t his.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboar dCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocuse d())return!0;let i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserIn put(e);let n=document.activeElement&&!0===document.activeElement.isContentEditab le,s=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.t est(document.activeElement.tagName),o=document.activeElement&&document.activeEle ment.className&&/speaker-notes/i.test(document.activeElement.className),r=e.shif tKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!r&&!l&&!d&&(e. shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(n||s||o||c)return;let h,u=[66,86,19 0,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togglePause"===t.keyb oard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===u.indexOf(i))ret urn!1;let g="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!th is.Reveal.hasVerticalSlides(),v=!1;if("object"==typeof t.keyboard)for(h in t.key board)if(parseInt(h,10)===i){let i=t.keyboard[h];"function"==typeof i?i.apply(nu ll,[e]):"string"==typeof i&&"function"==typeof this.Reveal[i]&&this.Reveal[i].ca ll(),v=!0}if(!1===v)for(h in this.bindings)if(parseInt(h,10)===i){let t=this.bin dings[h].callback;"function"==typeof t?t.apply(null,[e]):"string"==typeof t&&"fu nction"==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?th is.Reveal.slide(0):!this.Reveal.overview.isActive()&&g?this.Reveal.prev():this.R eveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.o verview.isActive()&&g?this.Reveal.next():this.Reveal.right():75===i||38===i?!thi s.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.R eveal.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).re questFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequ estFullScreen||e.msRequestFullscreen;t&&t.apply(e)})(t.embedded?this.Reveal.getV iewportElement():document.documentElement):65===i?t.autoSlideStoppable&&this.Rev eal.toggleAutoSlide(a):v=!1),v?e.preventDefault&&e.preventDefault():27!==i&&79!= =i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDef ault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class M{constructor(e){thi s.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChang e.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.Reve al.getCurrentSlide(),a=window.location.hash,n=a.slice(2).split("/"),s=a.replace( /#\/?/gi,"");if(!/^[0-9]*$/.test(n[0])&&s.length){let e,a;/\/[-\d]+$/g.test(s)&& (a=parseInt(s.split("/").pop(),10),a=isNaN(a)?void 0:a,s=s.split("/").shift());t ry{e=document.getElementById(decodeURIComponent(s))}catch(e){}let n=!!i&&i.getAt tribute("id")===s;if(e){if(!n||void 0!==a){let t=this.Reveal.getIndices(e);this. Reveal.slide(t.h,t.v,a)}}else this.Reveal.slide(t.h||0,t.v||0)}else{let i,a=e.ha shOneBasedIndex?1:0,s=parseInt(n[0],10)-a||0,o=parseInt(n[1],10)-a||0;e.fragment InURL&&(i=parseInt(n[2],10),isNaN(i)&&(i=void 0)),s===t.h&&o===t.v&&void 0===i|| this.Reveal.slide(s,o,i)}}writeURL(e){let t=this.Reveal.getConfig(),i=this.Revea l.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof e)thi s.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.replaceSta te(null,null,"#"+e))}}getHash(e){let t="/",i=e||this.Reveal.getCurrentSlide(),a= i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));let n=this.Reveal.getIn dices(e);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),"string"==typeof a&&a.length)t="/"+a,n.f>=0&&(t+="/"+n.f);else{let e=this.Reveal.getConfig().has hOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(t+=n.h+e),(n.v>0||n.f>=0)&&(t+="/"+( n.v+e)),n.f>=0&&(t+="/"+n.f)}return t}onWindowHashChange(e){this.readURL()}}clas s D{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=this.onNavigateLeftC licked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(t his),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigat eDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=th is.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNe xtClicked.bind(this)}render(){const e=this.Reveal.getConfig().rtl,t=this.Reveal. getRevealElement();this.element=document.createElement("aside"),this.element.cla ssName="controls",this.element.innerHTML=`<button class="navigate-left" aria-lab el="${e?"next slide":"previous slide"}"><div class="controls-arrow"></div></butt on>\n\t\t\t<button class="navigate-right" aria-label="${e?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>\n\t\t\t<button class="navi gate-up" aria-label="above slide"><div class="controls-arrow"></div></button>\n\ t\t\t<button class="navigate-down" aria-label="below slide"><div class="controls -arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element ),this.controlsLeft=a(t,".navigate-left"),this.controlsRight=a(t,".navigate-righ t"),this.controlsUp=a(t,".navigate-up"),this.controlsDown=a(t,".navigate-down"), this.controlsPrev=a(t,".navigate-prev"),this.controlsNext=a(t,".navigate-next"), this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.contr olsLeftArrow=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-layou t",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.con trolsBackArrows)}bind(){let e=["touchstart","click"];f&&(e=["touchstart"]),e.for Each((e=>{this.controlsLeft.forEach((t=>t.addEventListener(e,this.onNavigateLeft Clicked,!1))),this.controlsRight.forEach((t=>t.addEventListener(e,this.onNavigat eRightClicked,!1))),this.controlsUp.forEach((t=>t.addEventListener(e,this.onNavi gateUpClicked,!1))),this.controlsDown.forEach((t=>t.addEventListener(e,this.onNa vigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.addEventListener(e,this. onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.addEventListener(e,t his.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.onNavigateRig htClicked,!1))),this.controlsUp.forEach((t=>t.removeEventListener(e,this.onNavig ateUpClicked,!1))),this.controlsDown.forEach((t=>t.removeEventListener(e,this.on NavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.removeEventListener(e, this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.removeEventList ener(e,this.onNavigateNextClicked,!1)))}))}update(){let e=this.Reveal.availableR outes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.c ontrolsDown,...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("dis abled")})),e.right&&this.controlsRight.forEach((e=>{e.classList.add("enabled"),e .removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((e=>{e.classList.a dd("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("d isabled")})),(e.right||e.down)&&this.controlsNext.forEach((e=>{e.classList.add(" enabled"),e.removeAttribute("disabled")}));let t=this.Reveal.getCurrentSlide();i f(t){let e=this.Reveal.fragments.availableRoutes();e.prev&&this.controlsPrev.for Each((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.removeAttribut e("disabled")})),e.next&&this.controlsDown.forEach((e=>{e.classList.add("fragmen ted","enabled"),e.removeAttribute("disabled")}))):(e.prev&&this.controlsLeft.for Each((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?t his.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classLi st.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHori zontally()&&e.left&&0===t.v?this.controlsLeftArrow.classList.add("highlight"):th is.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHori zontally()&&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.p reventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked (e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePr evClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onN avigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.n ext()}}class I{constructor(e){this.Reveal=e,this.onProgressClicked=this.onProgre ssClicked.bind(this)}render(){this.element=document.createElement("div"),this.el ement.className="progress",this.Reveal.getRevealElement().appendChild(this.eleme nt),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}c onfigure(e,t){this.element.style.display=e.progress?"block":"none"}bind(){this.R eveal.getConfig().progress&&this.element&&this.element.addEventListener("click", this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.eleme nt&&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}onProgressClicke d(e){this.Reveal.onUserInput(e),e.preventDefault();let t=this.Reveal.getSlides() ,i=t.length,a=Math.floor(e.clientX/this.getMaxWidth()*i);this.Reveal.getConfig() .rtl&&(a=i-a);let n=this.Reveal.getIndices(t[a]);this.Reveal.slide(n.h,n.v)}}cla ss T{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,this.cursorHidden=!1 ,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorA ctive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this )}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.o nDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentM ouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMo useScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScro ll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocum entCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorA ctive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDo cumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentC ursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reve al.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(thi s.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}onDocument CursorActive(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this. cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfi g().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this.lastMouseWheelSt ep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.wheelDelta;t>0?thi s.Reveal.next():t<0&&this.Reveal.prev()}}}const z=(e,t)=>{const i=document.creat eElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"funct ion"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|com plete/.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 l oading script: "+i.src+"\n"+e))});const a=document.querySelector("head");a.inser tBefore(i,a.lastChild)};class H{constructor(e){this.Reveal=e,this.state="idle",t his.registeredPlugins={},this.asyncDependencies=[]}load(e,t){return this.state=" loading",e.forEach(this.registerPlugin.bind(this)),new Promise((e=>{let i=[],a=0 ;if(t.forEach((e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies. push(e):i.push(e))})),i.length){a=i.length;const t=t=>{t&&"function"==typeof t.c allback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.forEach((e=>{"string "==typeof e.id?(this.registerPlugin(e),t(e)):"string"==typeof e.src?z(e.src,(()= >t(e))):(console.warn("Unrecognized plugin format",e),t())}))}else this.initPlug ins().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 a,n=()= >{0==--i?this.loadAsync().then(e):a()},s=0;a=()=>{let e=t[s++];if("function"==ty peof e.init){let t=e.init(this.Reveal);t&&"function"==typeof t.then?t.then(n):n( )}else n()},a()}}))}loadAsync(){return this.state="loaded",this.asyncDependencie s.length&&this.asyncDependencies.forEach((e=>{z(e.src,e.callback)})),Promise.res olve()}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):voi d 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.sta te&&"function"==typeof e.init&&e.init(this.Reveal)):console.warn('reveal.js: "'+ t+'" plugin has already been registered')}hasPlugin(e){return!!this.registeredPl ugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegisteredPlugins(){re turn this.registeredPlugins}}class B{constructor(e){this.Reveal=e}async setupPDF (){const e=this.Reveal.getConfig(),t=a(this.Reveal.getRevealElement(),".slides s ection"),i=e.slideNumber&&/all|print/i.test(e.showSlideNumber),n=this.Reveal.get ComputedSlideSize(window.innerWidth,window.innerHeight),s=Math.floor(n.width*(1+ e.margin)),o=Math.floor(n.height*(1+e.margin)),r=n.width,l=n.height;await new Pr omise(requestAnimationFrame),c("@page{size:"+s+"px "+o+"px; margin: 0px;}"),c(". reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+r +"px; max-height:"+l+"px}"),document.documentElement.classList.add("print-pdf"), document.body.style.width=s+"px",document.body.style.height=o+"px",await new Pro mise(requestAnimationFrame),this.Reveal.layoutSlideContents(r,l),t.forEach((e=>t his.Reveal.slideContent.layout(e))),await new Promise(requestAnimationFrame);con st d=t.map((e=>e.scrollHeight)),h=[],u=t[0].parentNode;t.forEach((function(t,n){ if(!1===t.classList.contains("stack")){let c=(s-r)/2,u=(o-l)/2;const g=d[n];let v=Math.max(Math.ceil(g/o),1);v=Math.min(v,e.pdfMaxPagesPerSlide),(1===v&&e.cente r||t.classList.contains("center"))&&(u=Math.max((o-g)/2,0));const p=document.cre ateElement("div");if(h.push(p),p.className="pdf-page",p.style.height=(o+e.pdfPag eHeightOffset)*v+"px",p.appendChild(t),t.style.left=c+"px",t.style.top=u+"px",t. style.width=r+"px",t.slideBackgroundElement&&p.insertBefore(t.slideBackgroundEle ment,t),e.showNotes){const i=this.Reveal.getSlideNotes(t);if(i){const t=8,a="str ing"==typeof e.showNotes?e.showNotes:"inline",n=document.createElement("div");n. classList.add("speaker-notes"),n.classList.add("speaker-notes-pdf"),n.setAttribu te("data-layout",a),n.innerHTML=i,"separate-page"===a?h.push(n):(n.style.left=t+ "px",n.style.bottom=t+"px",n.style.width=s-2*t+"px",p.appendChild(n))}}if(i){con st e=n+1,t=document.createElement("div");t.classList.add("slide-number"),t.class List.add("slide-number-pdf"),t.innerHTML=e,p.appendChild(t)}if(e.pdfSeparateFrag ments){const e=this.Reveal.fragments.sort(p.querySelectorAll(".fragment"),!0);le t t;e.forEach((function(e){t&&t.forEach((function(e){e.classList.remove("current -fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragmen t")}),this);const i=p.cloneNode(!0);h.push(i),t=e}),this),e.forEach((function(e) {e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}e lse a(p,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visibl e")}))}}),this),await new Promise(requestAnimationFrame),h.forEach((e=>u.appendC hild(e))),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/p rint-pdf/gi.test(window.location.search)}}class q{constructor(e){this.Reveal=e,t his.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=! 1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPoi nterMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchSta rt=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),thi s.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let e=this.Reveal.getRevealElemen t();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDow n,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener ("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEvent Listener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMov e",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)) :(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touc hmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}u nbind(){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",thi s.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.r emoveEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("tou chmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1 )}isSwipePrevented(e){if(r(e,"video, audio"))return!0;for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNod e}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))return!0;this.touc hStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchSta rtCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevented(e.target))retur n!0;let t=this.Reveal.getConfig();if(this.touchCaptured)f&&e.preventDefault();el se{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,a=e.touches[0].clientY; if(1===e.touches.length&&2!==this.touchStartCount){let n=this.Reveal.availableRo utes({includeFragments:!0}),s=i-this.touchStartX,o=a-this.touchStartY;s>40&&Math .abs(s)>Math.abs(o)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?thi s.Reveal.next():this.Reveal.prev():this.Reveal.left()):s<-40&&Math.abs(s)>Math.a bs(o)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev( ):this.Reveal.next():this.Reveal.right()):o>40&&n.up?(this.touchCaptured=!0,"lin ear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):o<-40&&n.down&&(thi s.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.do wn()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&e.preventD efault():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=[{clie ntX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerT ype!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.cl ientX,clientY:e.clientY}],this.onTouchEnd(e))}}class F{constructor(e){this.Revea l=e,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocument PointerDown=this.onDocumentPointerDown.bind(this)}configure(e,t){e.embedded?this .blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&th is.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointer Down,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdow n",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this. onDocumentPointerDown,!1)}focus(){"focus"!==this.state&&(this.Reveal.getRevealEl ement().classList.add("focused"),document.addEventListener("pointerdown",this.on DocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Re veal.getRevealElement().classList.remove("focused"),document.removeEventListener ("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){ret urn"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDow n(e){let t=l(e.target,".reveal");t&&t===this.Reveal.getRevealElement()||this.blu r()}}class U{constructor(e){this.Reveal=e}render(){this.element=document.createE lement("div"),this.element.className="speaker-notes",this.element.setAttribute(" data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.ge tRevealElement().appendChild(this.element)}configure(e,t){e.showNotes&&this.elem ent.setAttribute("data-layout","string"==typeof e.showNotes?e.showNotes:"inline" )}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurre ntSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getS lideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}u pdateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reve al.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-note s"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){ret urn 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");retu rn t?t.innerHTML:null}}class O{constructor(e,t){this.diameter=100,this.diameter2 =this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressO ffset=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.ca nvas.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&&requestAnimatio nFrame(this.animate.bind(this))}render(){let e=this.playing?this.progress:0,t=th is.diameter2-this.thickness,i=this.diameter2,a=this.diameter2,n=28;this.progress Offset+=.1*(1-this.progressOffset);const s=-Math.PI/2+e*(2*Math.PI),o=-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,a,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,a,t,0,2*Math.PI,!1),this.context.li neWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",thi s.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,a, t,o,s,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff", this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.cont ext.fillStyle="#fff",this.context.fillRect(0,0,10,n),this.context.fillRect(18,0, 10,n)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo (0,0),this.context.lineTo(24,14),this.context.lineTo(0,n),this.context.fillStyle ="#fff",this.context.fill()),this.context.restore()}on(e,t){this.canvas.addEvent Listener(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 W={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsT utorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0, slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashC hanges:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overvie w:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragm ents:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSli des:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher: null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,auto AnimateStyles:["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,defaul tTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,f ocusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",b ackgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"", parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHori zontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_ INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileVie wDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencie s:[],plugins:[]};function V(t,r){arguments.length<2&&(r=arguments[0],t=document. querySelector(".reveal"));const c={};let g,v,m,f,y,w={},R=!1,E={hasNavigatedHori zontally:!1,hasNavigatedVertically:!1},L=[],z=1,V={layout:"",overview:""},$={},K ="idle",j=0,X=0,Y=-1,_=!1,J=new A(c),Q=new S(c),Z=new x(c),G=new k(c),ee=new C(c ),te=new P(c),ie=new N(c),ae=new M(c),ne=new D(c),se=new I(c),oe=new T(c),re=new H(c),le=new B(c),de=new F(c),ce=new q(c),he=new U(c);function ue(e){return $.wr apper=t,$.slides=t.querySelector(".slides"),w={...W,...w,...r,...e,...h()},ge(), window.addEventListener("load",He,!1),re.load(w.plugins,w.dependencies).then(ve) ,new Promise((e=>c.on("ready",e)))}function ge(){!0===w.embedded?$.viewport=l(t, ".reveal-viewport")||t:($.viewport=document.body,document.documentElement.classL ist.add("reveal-full-page")),$.viewport.classList.add("reveal-viewport")}functio n ve(){R=!0,pe(),me(),Re(),we(),et(),Ae(),ae.readURL(),G.update(!0),setTimeout(( ()=>{$.slides.classList.remove("no-transition"),$.wrapper.classList.add("ready") ,Ce({type:"ready",data:{indexh:g,indexv:v,currentSlide:f}})}),1),le.isPrintingPD F()&&(Ee(),"complete"===document.readyState?le.setupPDF():window.addEventListene r("load",(()=>{le.setupPDF()})))}function pe(){w.showHiddenSlides||a($.wrapper,' section[data-visibility="hidden"]').forEach((e=>{e.parentNode.removeChild(e)}))} function me(){$.slides.classList.add("no-transition"),p?$.wrapper.classList.add( "no-hover"):$.wrapper.classList.remove("no-hover"),G.render(),Q.render(),ne.rend er(),se.render(),he.render(),$.pauseOverlay=d($.wrapper,"div","pause-overlay",w. controls?'<button class="resume-button">Resume presentation</button>':null),$.st atusElement=fe(),$.wrapper.setAttribute("role","application")}function fe(){let e=$.wrapper.querySelector(".aria-status");return e||(e=document.createElement("d iv"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.styl e.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("a ria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic"," true"),$.wrapper.appendChild(e)),e}function be(e){$.statusElement.textContent=e} function ye(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeTyp e){let i=e.getAttribute("aria-hidden"),a="none"===window.getComputedStyle(e).dis play;"true"===i||a||Array.from(e.childNodes).forEach((e=>{t+=ye(e)}))}return t=t .trim(),""===t?"":t+" "}function we(){setInterval((()=>{0===$.wrapper.scrollTop& &0===$.wrapper.scrollLeft||($.wrapper.scrollTop=0,$.wrapper.scrollLeft=0)}),1e3) }function Re(){w.postMessage&&window.addEventListener("message",(t=>{let i=t.dat a;if("string"==typeof i&&"{"===i.charAt(0)&&"}"===i.charAt(i.length-1)&&(i=JSON. parse(i),i.method&&"function"==typeof c[i.method]))if(!1===e.test(i.method)){con st e=c[i.method].apply(c,i.args);Pe("callback",{method:i.method,result:e})}else console.warn('reveal.js: "'+i.method+'" is is blacklisted from the postMessage A PI')}),!1)}function Ae(e){const t={...w};if("object"==typeof e&&i(w,e),!1===c.is Ready())return;const a=$.wrapper.querySelectorAll(".slides section").length;$.wr apper.classList.remove(t.transition),$.wrapper.classList.add(w.transition),$.wra pper.setAttribute("data-transition-speed",w.transitionSpeed),$.wrapper.setAttrib ute("data-background-transition",w.backgroundTransition),$.viewport.style.setPro perty("--slide-width",w.width+"px"),$.viewport.style.setProperty("--slide-height ",w.height+"px"),w.shuffle&&tt(),n($.wrapper,"embedded",w.embedded),n($.wrapper, "rtl",w.rtl),n($.wrapper,"center",w.center),!1===w.pause&&je(),w.previewLinks?(N e(),Me("[data-preview-link=false]")):(Me(),Ne("[data-preview-link]:not([data-pre view-link=false])")),Z.reset(),y&&(y.destroy(),y=null),a>1&&w.autoSlide&&w.autoS lideStoppable&&(y=new O($.wrapper,(()=>Math.min(Math.max((Date.now()-Y)/j,0),1)) ),y.on("click",zt),_=!1),"default"!==w.navigationMode?$.wrapper.setAttribute("da ta-navigation-mode",w.navigationMode):$.wrapper.removeAttribute("data-navigation -mode"),he.configure(w,t),de.configure(w,t),oe.configure(w,t),ne.configure(w,t), se.configure(w,t),ie.configure(w,t),ee.configure(w,t),Q.configure(w,t),Ze()}func tion Se(){window.addEventListener("resize",Dt,!1),w.touch&&ce.bind(),w.keyboard& &ie.bind(),w.progress&&se.bind(),w.respondToHashChanges&&ae.bind(),ne.bind(),de. bind(),$.slides.addEventListener("transitionend",Mt,!1),$.pauseOverlay.addEventL istener("click",je,!1),w.focusBodyOnPageVisibilityChange&&document.addEventListe ner("visibilitychange",It,!1)}function Ee(){ce.unbind(),de.unbind(),ie.unbind(), ne.unbind(),se.unbind(),ae.unbind(),window.removeEventListener("resize",Dt,!1),$ .slides.removeEventListener("transitionend",Mt,!1),$.pauseOverlay.removeEventLis tener("click",je,!1)}function ke(e,i,a){t.addEventListener(e,i,a)}function Le(e, i,a){t.removeEventListener(e,i,a)}function xe(e){"string"==typeof e.layout&&(V.l ayout=e.layout),"string"==typeof e.overview&&(V.overview=e.overview),V.layout?o( $.slides,V.layout+" "+V.overview):o($.slides,V.overview)}function Ce({target:e=$ .wrapper,type:t,data:a,bubbles:n=!0}){let s=document.createEvent("HTMLEvents",1, 2);s.initEvent(t,n,!0),i(s,a),e.dispatchEvent(s),e===$.wrapper&&Pe(t)}function P e(e,t){if(w.postMessageEvents&&window.parent!==window.self){let a={namespace:"re veal",eventName:e,state:bt()};i(a,t),window.parent.postMessage(JSON.stringify(a) ,"*")}}function Ne(e="a"){Array.from($.wrapper.querySelectorAll(e)).forEach((e=> {/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1) }))}function Me(e="a"){Array.from($.wrapper.querySelectorAll(e)).forEach((e=>{/^ (http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1) }))}function De(e){ze(),$.overlay=document.createElement("div"),$.overlay.classL ist.add("overlay"),$.overlay.classList.add("overlay-preview"),$.wrapper.appendCh ild($.overlay),$.overlay.innerHTML=`<header>\n\t\t\t\t<a class="close" href="#"> <span class="icon"></span></a>\n\t\t\t\t<a class="external" href="${e}" target=" _blank"><span class="icon"></span></a>\n\t\t\t</header>\n\t\t\t<div class="spinn er"></div>\n\t\t\t<div class="viewport">\n\t\t\t\t<iframe src="${e}"></iframe>\n \t\t\t\t<small class="viewport-inner">\n\t\t\t\t\t<span class="x-frame-error">Un able to load iframe. This is likely due to the site's policy (x-frame-options).< /span>\n\t\t\t\t</small>\n\t\t\t</div>`,$.overlay.querySelector("iframe").addEve ntListener("load",(e=>{$.overlay.classList.add("loaded")}),!1),$.overlay.querySe lector(".close").addEventListener("click",(e=>{ze(),e.preventDefault()}),!1),$.o verlay.querySelector(".external").addEventListener("click",(e=>{ze()}),!1)}funct ion Ie(e){"boolean"==typeof e?e?Te():ze():$.overlay?ze():Te()}function Te(){if(w .help){ze(),$.overlay=document.createElement("div"),$.overlay.classList.add("ove rlay"),$.overlay.classList.add("overlay-help"),$.wrapper.appendChild($.overlay); let e='<p class="title">Keyboard Shortcuts</p><br/>',t=ie.getShortcuts(),i=ie.ge tBindings();e+="<table><th>KEY</th><th>ACTION</th>";for(let i in t)e+=`<tr><td>$ {i}</td><td>${t[i]}</td></tr>`;for(let t in i)i[t].key&&i[t].description&&(e+=`< tr><td>${i[t].key}</td><td>${i[t].description}</td></tr>`);e+="</table>",$.overl ay.innerHTML=`\n\t\t\t\t<header>\n\t\t\t\t\t<a class="close" href="#"><span clas s="icon"></span></a>\n\t\t\t\t</header>\n\t\t\t\t<div class="viewport">\n\t\t\t\ t\t<div class="viewport-inner">${e}</div>\n\t\t\t\t</div>\n\t\t\t`,$.overlay.que rySelector(".close").addEventListener("click",(e=>{ze(),e.preventDefault()}),!1) }}function ze(){return!!$.overlay&&($.overlay.parentNode.removeChild($.overlay), $.overlay=null,!0)}function He(){if($.wrapper&&!le.isPrintingPDF()){if(!w.disabl eLayout){p&&!w.embedded&&document.documentElement.style.setProperty("--vh",.01*w indow.innerHeight+"px");const e=qe(),t=z;Be(w.width,w.height),$.slides.style.wid th=e.width+"px",$.slides.style.height=e.height+"px",z=Math.min(e.presentationWid th/e.width,e.presentationHeight/e.height),z=Math.max(z,w.minScale),z=Math.min(z, w.maxScale),1===z?($.slides.style.zoom="",$.slides.style.left="",$.slides.style. top="",$.slides.style.bottom="",$.slides.style.right="",xe({layout:""})):z>1&&b& &window.devicePixelRatio<2?($.slides.style.zoom=z,$.slides.style.left="",$.slide s.style.top="",$.slides.style.bottom="",$.slides.style.right="",xe({layout:""})) :($.slides.style.zoom="",$.slides.style.left="50%",$.slides.style.top="50%",$.sl ides.style.bottom="auto",$.slides.style.right="auto",xe({layout:"translate(-50%, -50%) scale("+z+")"}));const i=Array.from($.wrapper.querySelectorAll(".slides s ection"));for(let t=0,a=i.length;t<a;t++){const a=i[t];"none"!==a.style.display& &(w.center||a.classList.contains("center")?a.classList.contains("stack")?a.style .top=0:a.style.top=Math.max((e.height-a.scrollHeight)/2,0)+"px":a.style.top="")} t!==z&&Ce({type:"resize",data:{oldScale:t,scale:z,size:e}})}se.update(),G.update Parallax(),te.isActive()&&te.update()}}function Be(e,t){a($.slides,"section > .s tretch, section > .r-stretch").forEach((i=>{let a=u(i,t);if(/(img|video)/gi.test (i.nodeName)){const t=i.naturalWidth||i.videoWidth,n=i.naturalHeight||i.videoHei ght,s=Math.min(e/t,a/n);i.style.width=t*s+"px",i.style.height=n*s+"px"}else i.st yle.width=e+"px",i.style.height=a+"px"}))}function qe(e,t){const i={width:w.widt h,height:w.height,presentationWidth:e||$.wrapper.offsetWidth,presentationHeight: t||$.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*w.mar gin,i.presentationHeight-=i.presentationHeight*w.margin,"string"==typeof i.width &&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"st ring"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100 *i.presentationHeight),i}function Fe(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("stac k")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previ ous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function Oe(e=f){r eturn e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function We(){r eturn!(!f||!Oe(f))&&!f.nextElementSibling}function Ve(){return 0===g&&0===v}func tion $e(){return!!f&&(!f.nextElementSibling&&(!Oe(f)||!f.parentNode.nextElementS ibling))}function Ke(){if(w.pause){const e=$.wrapper.classList.contains("paused" );Rt(),$.wrapper.classList.add("paused"),!1===e&&Ce({type:"paused"})}}function j e(){const e=$.wrapper.classList.contains("paused");$.wrapper.classList.remove("p aused"),wt(),e&&Ce({type:"resumed"})}function Xe(e){"boolean"==typeof e?e?Ke():j e():Ye()?je():Ke()}function Ye(){return $.wrapper.classList.contains("paused")}f unction _e(e){"boolean"==typeof e?e?St():At():_?St():At()}function Je(){return!( !j||_)}function Qe(e,t,i,a){m=f;const n=$.wrapper.querySelectorAll(".slides>sect ion");if(0===n.length)return;void 0!==t||te.isActive()||(t=Ue(n[e])),m&&m.parent Node&&m.parentNode.classList.contains("stack")&&Fe(m.parentNode,v);const s=L.con cat();L.length=0;let o=g||0,r=v||0;g=it(".slides>section",void 0===e?g:e),v=it(" .slides>section.present>section",void 0===t?v:t);let l=g!==o||v!==r;l||(m=null); let d=n[g],c=d.querySelectorAll("section");f=c[v]||d;let h=!1;l&&m&&f&&!te.isAct ive()&&(m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate") &&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id" )&&!(g>o||v>r?f:m).hasAttribute("data-auto-animate-restart")&&(h=!0,$.slides.cla ssList.add("disable-slide-transitions")),K="running"),at(),He(),te.isActive()&&t e.update(),void 0!==i&&ee.goto(i),m&&m!==f&&(m.classList.remove("present"),m.set Attribute("aria-hidden","true"),Ve()&&setTimeout((()=>{ht().forEach((e=>{Fe(e,0) }))}),0));e:for(let e=0,t=L.length;e<t;e++){for(let t=0;t<s.length;t++)if(s[t]== =L[e]){s.splice(t,1);continue e}$.viewport.classList.add(L[e]),Ce({type:L[e]})}f or(;s.length;)$.viewport.classList.remove(s.pop());l&&Ce({type:"slidechanged",da ta:{indexh:g,indexv:v,previousSlide:m,currentSlide:f,origin:a}}),!l&&m||(J.stopE mbeddedContent(m),J.startEmbeddedContent(f)),requestAnimationFrame((()=>{be(ye(f ))})),se.update(),ne.update(),he.update(),G.update(),G.updateParallax(),Q.update (),ee.update(),ae.writeURL(),wt(),h&&(setTimeout((()=>{$.slides.classList.remove ("disable-slide-transitions")}),0),w.autoAnimate&&Z.run(m,f))}function Ze(){Ee() ,Se(),He(),j=w.autoSlide,wt(),G.create(),ae.writeURL(),ee.sortAll(),ne.update(), se.update(),at(),he.update(),he.updateVisibility(),G.update(!0),Q.update(),J.for matEmbeddedContent(),!1===w.autoPlayMedia?J.stopEmbeddedContent(f,{unloadIframes :!1}):J.startEmbeddedContent(f),te.isActive()&&te.layout()}function Ge(e=f){G.sy nc(e),ee.sync(e),J.load(e),G.update(),he.update()}function et(){dt().forEach((e= >{a(e,"section").forEach(((e,t)=>{t>0&&(e.classList.remove("present"),e.classLis t.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true")) }))}))}function tt(e=dt()){e.forEach(((t,i)=>{let a=e[Math.floor(Math.random()*e .length)];a.parentNode===t.parentNode&&t.parentNode.insertBefore(t,a);let n=t.qu erySelectorAll("section");n.length&&tt(n)}))}function it(e,t){let i=a($.wrapper, e),n=i.length,s=le.isPrintingPDF();if(n){w.loop&&(t%=n)<0&&(t=n+t),t=Math.max(Ma th.min(t,n-1),0);for(let e=0;e<n;e++){let n=i[e],o=w.rtl&&!Oe(n);n.classList.rem ove("past"),n.classList.remove("present"),n.classList.remove("future"),n.setAttr ibute("hidden",""),n.setAttribute("aria-hidden","true"),n.querySelector("section ")&&n.classList.add("stack"),s?n.classList.add("present"):e<t?(n.classList.add(o ?"future":"past"),w.fragments&&a(n,".fragment").forEach((e=>{e.classList.add("vi sible"),e.classList.remove("current-fragment")}))):e>t&&(n.classList.add(o?"past ":"future"),w.fragments&&a(n,".fragment.visible").forEach((e=>{e.classList.remov e("visible","current-fragment")})))}let e=i[t],o=e.classList.contains("present") ;e.classList.add("present"),e.removeAttribute("hidden"),e.removeAttribute("aria- hidden"),o||Ce({target:e,type:"visible",bubbles:!1});let r=e.getAttribute("data- state");r&&(L=L.concat(r.split(" ")))}else t=0;return t}function at(){let e,t,i= dt(),n=i.length;if(n&&void 0!==g){let s=te.isActive()?10:w.viewDistance;p&&(s=te .isActive()?6:w.mobileViewDistance),le.isPrintingPDF()&&(s=Number.MAX_VALUE);for (let o=0;o<n;o++){let r=i[o],l=a(r,"section"),d=l.length;if(e=Math.abs((g||0)-o) ||0,w.loop&&(e=Math.abs(((g||0)-o)%(n-s))||0),e<s?J.load(r):J.unload(r),d){let i =Ue(r);for(let a=0;a<d;a++){let n=l[a];t=o===(g||0)?Math.abs((v||0)-a):Math.abs( a-i),e+t<s?J.load(n):J.unload(n)}}}gt()?$.wrapper.classList.add("has-vertical-sl ides"):$.wrapper.classList.remove("has-vertical-slides"),ut()?$.wrapper.classLis t.add("has-horizontal-slides"):$.wrapper.classList.remove("has-horizontal-slides ")}}function nt({includeFragments:e=!1}={}){let t=$.wrapper.querySelectorAll(".s lides>section"),i=$.wrapper.querySelectorAll(".slides>section.present>section"), a={left:g>0,right:g<t.length-1,up:v>0,down:v<i.length-1};if(w.loop&&(t.length>1& &(a.left=!0,a.right=!0),i.length>1&&(a.up=!0,a.down=!0)),t.length>1&&"linear"=== w.navigationMode&&(a.right=a.right||a.down,a.left=a.left||a.up),!0===e){let e=ee .availableRoutes();a.left=a.left||e.prev,a.up=a.up||e.prev,a.down=a.down||e.next ,a.right=a.right||e.next}if(w.rtl){let e=a.left;a.left=a.right,a.right=e}return a}function st(e=f){let t=dt(),i=0;e:for(let a=0;a<t.length;a++){let n=t[a],s=n.q uerySelectorAll("section");for(let t=0;t<s.length;t++){if(s[t]===e)break e;"unco unted"!==s[t].dataset.visibility&&i++}if(n===e)break;!1===n.classList.contains(" stack")&&"uncounted"!==n.dataset.visibility&&i++}return i}function ot(){let e=pt (),t=st();if(f){let e=f.querySelectorAll(".fragment");if(e.length>0){let i=.9;t+ =f.querySelectorAll(".fragment.visible").length/e.length*i}}return Math.min(t/(e -1),1)}function rt(e){let t,i=g,n=v;if(e){let t=Oe(e),s=t?e.parentNode:e,o=dt(); i=Math.max(o.indexOf(s),0),n=void 0,t&&(n=Math.max(a(e.parentNode,"section").ind exOf(e),0))}if(!e&&f){if(f.querySelectorAll(".fragment").length>0){let e=f.query Selector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseIn t(e.getAttribute("data-fragment-index"),10):f.querySelectorAll(".fragment.visibl e").length-1}}return{h:i,v:n,f:t}}function lt(){return a($.wrapper,'.slides sect ion:not(.stack):not([data-visibility="uncounted"])')}function dt(){return a($.wr apper,".slides>section")}function ct(){return a($.wrapper,".slides>section>secti on")}function ht(){return a($.wrapper,".slides>section.stack")}function ut(){ret urn dt().length>1}function gt(){return ct().length>1}function vt(){return lt().m ap((e=>{let t={};for(let i=0;i<e.attributes.length;i++){let a=e.attributes[i];t[ a.name]=a.value}return t}))}function pt(){return lt().length}function mt(e,t){le t i=dt()[e],a=i&&i.querySelectorAll("section");return a&&a.length&&"number"==typ eof t?a?a[t]:void 0:i}function ft(e,t){let i="number"==typeof e?mt(e,t):e;if(i)r eturn i.slideBackgroundElement}function bt(){let e=rt();return{indexh:e.h,indexv :e.v,indexf:e.f,paused:Ye(),overview:te.isActive()}}function yt(e){if("object"== typeof e){Qe(s(e.indexh),s(e.indexv),s(e.indexf));let t=s(e.paused),i=s(e.overvi ew);"boolean"==typeof t&&t!==Ye()&&Xe(t),"boolean"==typeof i&&i!==te.isActive()& &te.toggle(i)}}function wt(){if(Rt(),f&&!1!==w.autoSlide){let e=f.querySelector( ".current-fragment");e||(e=f.querySelector(".fragment"));let t=e?e.getAttribute( "data-autoslide"):null,i=f.parentNode?f.parentNode.getAttribute("data-autoslide" ):null,n=f.getAttribute("data-autoslide");t?j=parseInt(t,10):n?j=parseInt(n,10): i?j=parseInt(i,10):(j=w.autoSlide,0===f.querySelectorAll(".fragment").length&&a( f,"video, audio").forEach((e=>{e.hasAttribute("data-autoplay")&&j&&1e3*e.duratio n/e.playbackRate>j&&(j=1e3*e.duration/e.playbackRate+1e3)}))),!j||_||Ye()||te.is Active()||$e()&&!ee.availableRoutes().next&&!0!==w.loop||(X=setTimeout((()=>{"fu nction"==typeof w.autoSlideMethod?w.autoSlideMethod():Pt(),wt()}),j),Y=Date.now( )),y&&y.setPlaying(-1!==X)}}function Rt(){clearTimeout(X),X=-1}function At(){j&& !_&&(_=!0,Ce({type:"autoslidepaused"}),clearTimeout(X),y&&y.setPlaying(!1))}func tion St(){j&&_&&(_=!1,Ce({type:"autoslideresumed"}),wt())}function Et(){E.hasNav igatedHorizontally=!0,w.rtl?(te.isActive()||!1===ee.next())&&nt().left&&Qe(g+1," grid"===w.navigationMode?v:void 0):(te.isActive()||!1===ee.prev())&&nt().left&&Q e(g-1,"grid"===w.navigationMode?v:void 0)}function kt(){E.hasNavigatedHorizontal ly=!0,w.rtl?(te.isActive()||!1===ee.prev())&&nt().right&&Qe(g-1,"grid"===w.navig ationMode?v:void 0):(te.isActive()||!1===ee.next())&&nt().right&&Qe(g+1,"grid"== =w.navigationMode?v:void 0)}function Lt(){(te.isActive()||!1===ee.prev())&&nt(). up&&Qe(g,v-1)}function xt(){E.hasNavigatedVertically=!0,(te.isActive()||!1===ee. next())&&nt().down&&Qe(g,v+1)}function Ct(){if(!1===ee.prev())if(nt().up)Lt();el se{let e;if(e=w.rtl?a($.wrapper,".slides>section.future").pop():a($.wrapper,".sl ides>section.past").pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Qe(g-1,t)}}}function Pt(){if(E.hasNavigatedHorizontally=!0,E.hasNavigatedVerti cally=!0,!1===ee.next()){let e=nt();e.down&&e.right&&w.loop&&We()&&(e.down=!1),e .down?xt():w.rtl?Et():kt()}}function Nt(e){w.autoSlideStoppable&&At()}function M t(e){"running"===K&&/section/gi.test(e.target.nodeName)&&(K="idle",Ce({type:"sli detransitionend",data:{indexh:g,indexv:v,previousSlide:m,currentSlide:f}}))}func tion Dt(e){He()}function It(e){!1===document.hidden&&document.activeElement!==do cument.body&&("function"==typeof document.activeElement.blur&&document.activeEle ment.blur(),document.body.focus())}function Tt(e){if(e.currentTarget&&e.currentT arget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(De(t) ,e.preventDefault())}}function zt(e){$e()&&!1===w.loop?(Qe(0,0),St()):_?St():At( )}const Ht={VERSION:"4.1.2",initialize:ue,configure:Ae,sync:Ze,syncSlide:Ge,sync Fragments:ee.sync.bind(ee),slide:Qe,left:Et,right:kt,up:Lt,down:xt,prev:Ct,next: Pt,navigateLeft:Et,navigateRight:kt,navigateUp:Lt,navigateDown:xt,navigatePrev:C t,navigateNext:Pt,navigateFragment:ee.goto.bind(ee),prevFragment:ee.prev.bind(ee ),nextFragment:ee.next.bind(ee),on:ke,off:Le,addEventListener:ke,removeEventList ener:Le,layout:He,shuffle:tt,availableRoutes:nt,availableFragments:ee.availableR outes.bind(ee),toggleHelp:Ie,toggleOverview:te.toggle.bind(te),togglePause:Xe,to ggleAutoSlide:_e,isFirstSlide:Ve,isLastSlide:$e,isLastVerticalSlide:We,isVertica lSlide:Oe,isPaused:Ye,isAutoSliding:Je,isSpeakerNotes:he.isSpeakerNotesWindow.bi nd(he),isOverview:te.isActive.bind(te),isFocused:de.isFocused.bind(de),isPrintin gPDF:le.isPrintingPDF.bind(le),isReady:()=>R,loadSlide:J.load.bind(J),unloadSlid e:J.unload.bind(J),showPreview:De,hidePreview:ze,addEventListeners:Se,removeEven tListeners:Ee,dispatchEvent:Ce,getState:bt,setState:yt,getProgress:ot,getIndices :rt,getSlidesAttributes:vt,getSlidePastCount:st,getTotalSlides:pt,getSlide:mt,ge tPreviousSlide:()=>m,getCurrentSlide:()=>f,getSlideBackground:ft,getSlideNotes:h e.getSlideNotes.bind(he),getSlides:lt,getHorizontalSlides:dt,getVerticalSlides:c t,hasHorizontalSlides:ut,hasVerticalSlides:gt,hasNavigatedHorizontally:()=>E.has NavigatedHorizontally,hasNavigatedVertically:()=>E.hasNavigatedVertically,addKey Binding:ie.addKeyBinding.bind(ie),removeKeyBinding:ie.removeKeyBinding.bind(ie), triggerKey:ie.triggerKey.bind(ie),registerKeyboardShortcut:ie.registerKeyboardSh ortcut.bind(ie),getComputedSlideSize:qe,getScale:()=>z,getConfig:()=>w,getQueryH ash:h,getRevealElement:()=>t,getSlidesElement:()=>$.slides,getViewportElement:() =>$.viewport,getBackgroundsElement:()=>G.element,registerPlugin:re.registerPlugi n.bind(re),hasPlugin:re.hasPlugin.bind(re),getPlugin:re.getPlugin.bind(re),getPl ugins:re.getRegisteredPlugins.bind(re)};return i(c,{...Ht,announceStatus:be,getS tatusText:ye,print:le,focus:de,progress:se,controls:ne,location:ae,overview:te,f ragments:ee,slideContent:J,slideNumber:Q,onUserInput:Nt,closeOverlay:ze,updateSl idesVisibility:at,layoutSlideContents:Be,transformSlides:xe,cueAutoSlide:wt,canc elAutoSlide:Rt}),Ht}let $=V,K=[];$.initialize=e=>(Object.assign($,new V(document .querySelector(".reveal"),e)),K.map((e=>e($))),$.initialize()),["configure","on" ,"off","addEventListener","removeEventListener","registerPlugin"].forEach((e=>{$ [e]=(...t)=>{K.push((i=>i[e].call(null,...t)))}})),$.isReady=()=>!1,$.VERSION="4 .1.2";export default $;
//# sourceMappingURL=reveal.esm.js.map //# sourceMappingURL=reveal.esm.js.map
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)