diff --git a/.gitignore b/.gitignore index c3ee490..249c9c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /js/impress.min.js.map -/js/impress.min.js +# /js/impress.min.js /node_modules /npm-debug.log /*.tgz diff --git a/js/impress.min.js b/js/impress.min.js new file mode 100644 index 0000000..69cf44c --- /dev/null +++ b/js/impress.min.js @@ -0,0 +1,3 @@ +/*! Licensed under MIT License - http://github.com/impress/impress.js */ +!function(e,t){"use strict";var n,r,i,o,s=(r=e.createElement("dummy").style,i="Webkit Moz O ms Khtml".split(" "),o={},function(e){if(void 0===o[e]){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(e+" "+i.join(t+" ")+t).split(" ");for(var s in o[e]=null,n)if(void 0!==r[n[s]]){o[e]=n[s];break}}return o[e]}),a=function(e,t){var n="xyz",r="";if("string"==typeof e)for(var i in e.split(""))n.indexOf(e[i])>=0&&(r+=e[i],n=n.split(e[i]).join(""));return r||(void 0!==t?t:"xyz")},l=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&null!==(r=s(n))&&(e.style[r]=t[n]);return e},d=function(e){return" translate3d("+e.x+"px,"+e.y+"px,"+e.z+"px) "},u=function(e,t){var n="",r=(e.order?e.order:"xyz").split("");t&&(r=r.reverse());for(var i=0;ir?r:n;return e.maxScale&&i>e.maxScale&&(i=e.maxScale),e.minScale&&i=s.scale,E=(r=n.util.toNumber(r,z.transitionDuration))/2;e===o&&(y=p(z));var L,w,k=b.scale*y;return o&&o!==e&&(w=e,I===(L=o)&&(n.util.triggerEvent(L,"impress:stepleave",{next:w}),I=null)),l(A,{perspective:z.perspective/k+"px",transform:c(k),transitionDuration:r+"ms",transitionDelay:(x?E:0)+"ms"}),l(C,{transform:u(b.rotate,!0)+d(b.translate),transitionDuration:r+"ms",transitionDelay:(x?0:E)+"ms"}),(s.scale===b.scale||s.rotate.x===b.rotate.x&&s.rotate.y===b.rotate.y&&s.rotate.z===b.rotate.z&&s.translate.x===b.translate.x&&s.translate.y===b.translate.y&&s.translate.z===b.translate.z)&&(E=0),s=b,o=e,t.clearTimeout(B),B=t.setTimeout((function(){!function(e){I!==e&&(n.util.triggerEvent(e,"impress:stepenter"),I=e),n.util.triggerEvent(e,"impress:steprefresh")}(o)}),r+E),e},q=function(e,t,n){return e+(t-e)*n};return n.gc.addEventListener(A,"impress:init",(function(){g.forEach((function(e){e.classList.add("future")})),n.gc.addEventListener(A,"impress:stepenter",(function(e){e.target.classList.remove("past"),e.target.classList.remove("future"),e.target.classList.add("present")}),!1),n.gc.addEventListener(A,"impress:stepleave",(function(e){e.target.classList.remove("present"),e.target.classList.add("past")}),!1)}),!1),n.gc.addEventListener(A,"impress:init",(function(){var e="";n.gc.addEventListener(A,"impress:stepenter",(function(n){t.location.hash=e="#/"+n.target.id}),!1),n.gc.addEventListener(t,"hashchange",(function(){t.location.hash!==e&&O(n.util.getElementFromHash())}),!1),O(n.util.getElementFromHash()||g[0],0)}),!1),v.classList.add("impress-disabled"),f["impress-root-"+r]={init:function(){if(!M){var t;t=A.dataset,z={width:n.util.toNumber(t.width,h),height:n.util.toNumber(t.height,b),maxScale:n.util.toNumber(t.maxScale,x),minScale:n.util.toNumber(t.minScale,E),perspective:n.util.toNumber(t.perspective,L),transitionDuration:n.util.toNumber(t.transitionDuration,w)},S(A);var i=n.util.$("meta[name='viewport']")||e.createElement("meta");i.content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no",i.parentNode!==e.head&&(i.name="viewport",e.head.appendChild(i)),y=p(z),n.util.arrayify(A.childNodes).forEach((function(e){C.appendChild(e)})),A.appendChild(C),e.documentElement.style.height="100%",l(v,{height:"100%",overflow:"hidden"});var o={position:"absolute",transformOrigin:"top left",transition:"all 0s ease-in-out",transformStyle:"preserve-3d"};l(A,o),l(A,{top:"50%",left:"50%",perspective:z.perspective/y+"px",transform:c(y)}),l(C,o),v.classList.remove("impress-disabled"),v.classList.add("impress-enabled"),P(),s={translate:{x:0,y:0,z:0},rotate:{x:0,y:0,z:0,order:"xyz"},scale:1},M=!0,n.util.triggerEvent(A,"impress:init",{api:f["impress-root-"+r]})}},goto:O,next:function(e){var t=g.indexOf(o)+1;return t=t=0?g[t]:g[g.length-1],O(t,void 0,"prev",e)},swipe:function(e){if(!(Math.abs(e)>1)){var t,n={target:o,detail:{}};if(n.detail.swipe=e,n.detail.transitionDuration=z.transitionDuration,e<0)t=g.indexOf(o)+1,n.detail.next=t0))return;t=g.indexOf(o)-1,n.detail.next=t>=0?g[t]:g[g.length-1],n.detail.reason="prev"}if(!1===D(n))return!1;var r=n.detail.next,a=i["impress-"+r.id],p=a.scale*y,v=Math.abs(e),m={translate:{x:q(s.translate.x,-a.translate.x,v),y:q(s.translate.y,-a.translate.y,v),z:q(s.translate.z,-a.translate.z,v)},rotate:{x:q(s.rotate.x,-a.rotate.x,v),y:q(s.rotate.y,-a.rotate.y,v),z:q(s.rotate.z,-a.rotate.z,v),order:v<.7?s.rotate.order:a.rotate.order},scale:q(s.scale*y,p,v)};l(A,{perspective:z.perspective/m.scale+"px",transform:c(m.scale),transitionDuration:"0ms",transitionDelay:"0ms"}),l(C,{transform:u(m.rotate,!0)+d(m.translate),transitionDuration:"0ms",transitionDelay:"0ms"})}},tear:function(){n.gc.teardown(),delete f["impress-root-"+r]},lib:n}};A.supported=m;var C={};A.addLibraryFactory=function(e){for(var t in e)e.hasOwnProperty(t)&&(C[t]=e[t])};var N=function(e){var t={};for(var n in C)if(C.hasOwnProperty(n)){if(void 0!==t[n])throw"impress.js ERROR: Two libraries both tried to use libname: "+n;t[n]=C[n](e)}return t};A.addPreInitPlugin=function(e,t){if((t=parseInt(t)||10)<=0)throw"addPreInitPlugin: weight must be a positive integer";void 0===g[t]&&(g[t]=[]),g[t].push(e)};var S=function(e){for(var t=0;t=0;n--)a[n](e);for(a=[],n=0;n0&&(s={x:u(e.x,r),y:u(e.y,r),z:u(e.z,r)}),r=l(a(s[n[i]],o),r)}}return r},u=function(e,n){var r=a(e);return function(e){return{x:t(e[1]),y:t(e[2]),z:t(e[3])}}(r=l(l(n,r),function(e){return[e[0],-e[1],-e[2],-e[3]]}(n)))},c=function(e,t){var n=d(e,t);return{x:u(e.x,n),y:u(e.y,n),z:u(e.z,n)}},p=function(e,t,n){var s=r(t),a=r(n);if(!s||!a)return 0;var l=i(t,n)/s/a,d=180*Math.acos(l)/Math.PI;return function(e,t,n){return i(o(e,t),n)}(t,n,e)>0?d:-d},v=function(e,n,r){var i,s=o(e,n);return t((i=s).x)||t(i.y)||t(i.z)?90-p(e,r,s):0},m=function(e,n){var r=n[0],i=n[1],o=n[2],a=n.split("").reverse().join(""),l=v(e[o],s[r],e[r]),d={order:a};d[o]=-l;var u=c(e,d),m=p(u[i],s[r],u[r]),f=p(s[r],s[i],u[i]),g={};return g.order=n,g[r]=t(f),g[i]=t(m),g[o]=t(l),g},f=function(e,t){for(;t>e+180;)t-=360;for(;t0&&(o=setTimeout((function(){i.next()}),1e3*e)),c()},l="not clicked",d=null,u=function(){return r>0&&"paused"!==l?"||":"▶"},c=function(){if(d){var e=d.offsetWidth,t=d.offsetHeight;d.innerHTML=u(),d.style.width||(d.style.width=e+"px"),d.style.height||(d.style.height=t+"px")}},p=function(i){var o='";(d=function(t){var n=e.createElement("div");return n.innerHTML=t,n.firstChild}(o)).addEventListener("click",(function(){"playing"===(l=r>0&&"paused"!==l?"paused":"playing")?(0===n&&(n=7),0===r&&(r=n),a(r)):"paused"===l&&a(0)})),t.triggerEvent(i,"impress:toolbar:appendChild",{group:10,element:d})}}(document),function(e){"use strict";var t,n,r,i=null,o=!1,s=null,a=null,l=null,d=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&null!==(r=u(n))&&(e.style[r]=t[n]);return e},u=(t=e.createElement("dummy").style,n="Webkit Moz O ms Khtml".split(" "),r={},function(e){if(void 0===r[e]){var i=e.charAt(0).toUpperCase()+e.substr(1),o=(e+" "+n.join(i+" ")+i).split(" ");for(var s in r[e]=null,o)if(void 0!==t[o[s]]){r[e]=o[s];break}}return r[e]}),c=function(){o&&(d(i,{display:"block"}),o=!1,s.triggerEvent(a,"impress:autoplay:play",{}))};e.addEventListener("impress:init",(function(t){l=t.detail.api,s=l.lib.util,a=t.target,i=a.firstElementChild;var n=l.lib.gc;n.addEventListener(e,"keydown",(function(e){66!==e.keyCode&&190!==e.keyCode||(e.preventDefault(),o||o?c():(d(i,{display:(o=!o)?"none":"block"}),o=!0,s.triggerEvent(a,"impress:autoplay:pause",{})))}),!1),n.addEventListener(e,"keyup",(function(e){66!==e.keyCode&&190!==e.keyCode||e.preventDefault()}),!1)}),!1),e.addEventListener("impress:stepleave",(function(){c()}),!1)}(document),function(e,t){"use strict";const n=/^-----$/m,r=function(e){var t=e.textContent,r=t.match(/^([ \t]*)\S/m);return null!==r&&(t=t.replace(new RegExp("^"+r[1],"mg"),"")),t.split(n)},i=function(n){var i=t.hasOwnProperty("marked")?function(e,t){return marked.parse(t)}:t.hasOwnProperty("markdown")?function(e,t){var n=e.dataset.markdownDialect;return markdown.toHTML(t,n)}:null;if(i)for(var o of e.querySelectorAll(n)){var s=null;o.id&&(s=o.id,o.id="");var a=null;o.title&&(a=o.title,o.title="");for(var l=r(o),d=[o],u=1;u=0){var u=l[d];if(r(u))return i.detail.next=s[u],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if((c=e.getElementById(u))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+u+" is not a step in this impress presentation.")}}}if(r(o.gotoNext)&&"next"===i.detail.reason)return i.detail.next=s[o.gotoNext],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.gotoNext&&"next"===i.detail.reason){if((c=e.getElementById(o.gotoNext))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.gotoNext+" is not a step in this impress presentation.")}if(r(o.gotoPrev)&&"prev"===i.detail.reason)return i.detail.next=s[o.gotoPrev],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.gotoPrev&&"prev"===i.detail.reason){if((c=e.getElementById(o.gotoPrev))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.gotoPrev+" is not a step in this impress presentation.")}if(r(o.goto))return i.detail.next=s[o.goto],void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));if(o.goto){var c;if((c=e.getElementById(o.goto))&&c.classList.contains("step"))return i.detail.next=c,void(i.detail.transitionDuration=n.util.toNumber(i.detail.next.dataset.transitionDuration,i.detail.transitionDuration));t.console.log("impress goto plugin: "+o.goto+" is not a step in this impress presentation.")}}}))}(document,window),function(e,t){"use strict";var n,r=[],i=function(){var t=e.getElementById("impress-help");if(t){var n=[];for(var i in r)for(var o in i)n.push(r[i][o]);n&&(t.innerHTML="\n"+n.join("\n")+"
\n")}};e.addEventListener("keyup",(function(r){var i;72!==r.keyCode&&191!==r.keyCode||(r.preventDefault(),(i=e.getElementById("impress-help"))&&("block"===i.style.display?i.style.display="none":(i.style.display="block",t.clearTimeout(n))))}),!1),e.addEventListener("impress:help:add",(function(e){var t=e.detail.row;"object"==typeof r[t]&&r[t].isArray||(r[t]=[]),r[e.detail.row].push(""+e.detail.command+""+e.detail.text+""),i()})),e.addEventListener("impress:init",(function(o){i();var s,a,l,d,u=e.getElementById("impress-help");u&&(u.style.display="block",n=t.setTimeout((function(){e.getElementById("impress-help").style.display="none"}),7e3),o.detail.api.lib.gc.pushCallback((function(){t.clearTimeout(n),u.style.display="",u.innerHTML="",r=[]})));s=e,a="impress:help:add",l={command:"H",text:"Show this help",row:0},(d=e.createEvent("CustomEvent")).initCustomEvent(a,!0,!0,l),s.dispatchEvent(d)}))}(document,window),function(e,t){"use strict";var n;switch(navigator.language){case"de":n={noNotes:'
Keine Notizen hierzu
',restart:"Neustart",clickToOpen:"Klicken um Sprecherkonsole zu öffnen",prev:"zurück",next:"weiter",loading:"initalisiere",ready:"Bereit",moving:"in Bewegung",useAMPM:!1};break;case"zh-CN":case"zh-cn":n={noNotes:'
当前帧没有备注
',restart:"重新开始",clickToOpen:"点击以打开演讲者控制界面",prev:"上一帧",next:"下一帧",loading:"加载中",ready:"就绪",moving:"移动中",useAMPM:!1};break;case"en":default:n={noNotes:'
No notes for this step
',restart:"Restart",clickToOpen:"Click to open speaker console",prev:"Prev",next:"Next",loading:"Loading",ready:"Ready",moving:"Moving",useAMPM:!1}}const r='{{cssStyle}}{{cssLink}}
--:--
00m 00s
{{loading}}
';var i=void 0,o=void 0,s={},a=function(e){return(e<10?"0":"")+e},l=t.impressConsole=function(l){if(s[l=l||"impress"])return s[l];var u=e.getElementById(l),c=null,p=function(){for(var t="",r=e.querySelector(".active");!r.nextElementSibling&&r.parentNode;)r=r.parentNode;for(r=r.nextElementSibling;r;){if((t=r.attributes.class)&&-1!==t.value.indexOf("step"))return c.document.getElementById("blocker").innerHTML=n.next,r;if(r.firstElementChild)r=r.firstElementChild;else{for(;!r.nextElementSibling&&r.parentNode;)r=r.parentNode;r=r.nextElementSibling}}return c.document.getElementById("blocker").innerHTML=n.restart,e.querySelector(".step")},v=function(){if(c){var t=e.querySelector(".active").querySelector(".notes");t=t?t.innerHTML:n.noNotes,c.document.getElementById("notes").innerHTML=t;var r=e.URL.substring(0,e.URL.search("#/")),i=r+"#"+e.querySelector(".active").id,o=r+"#"+p().id,s=c.document.getElementById("slideView");s.src!==i&&(s.src=i);var a=c.document.getElementById("preView");a.src!==o&&(a.src=o),c.document.getElementById("status").innerHTML=''+n.moving+""}},m=function(){if(c){var t=e.querySelector(".active").querySelector(".notes");t=t?t.innerHTML:n.noNotes;var r=c.document.getElementById("notes");r.innerHTML=t,r.scrollTop=0;var i=e.URL.substring(0,e.URL.search("#/")),o=i+"#"+e.querySelector(".active").id,s=i+"#"+p().id,a=c.document.getElementById("slideView");a.src!==o&&(a.src=o);var l=c.document.getElementById("preView");l.src!==s&&(l.src=s),c.document.getElementById("status").innerHTML=''+n.ready+""}},f=function(e){c&&("next"===e.detail.reason&&g(),"prev"===e.detail.reason&&y())},g=function(){var e=c.document.getElementById("slideView");h(e,"impress:substep:show")},y=function(){var e=c.document.getElementById("slideView");h(e,"impress:substep:hide")},h=function(e,t,n){var r=e.contentDocument.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.contentDocument.dispatchEvent(r)},b=function(){var e=c.document.getElementById("notes");e.scrollTopMax-e.scrollTop>20?e.scrollTop=e.scrollTop+.8*e.clientHeight:t.impress().next()},x=function(){c.timerStart=new Date},E=function(e,t,n){void 0===n&&(n=c),n.document.addEventListener("keydown",(function(t){t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||-1===e.indexOf(t.keyCode)||t.preventDefault()}),!1),n.document.addEventListener("keyup",(function(n){n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||-1===e.indexOf(n.keyCode)||(t(),n.preventDefault())}),!1)},L=function(){var e=c.document.getElementById("slideView"),t=c.document.getElementById("preView");e.contentDocument.body.classList.add("impress-console","slideView"),t.contentDocument.body.classList.add("impress-console","preView"),void 0!==o&&(e.contentDocument.head.insertAdjacentHTML("beforeend",''),t.contentDocument.head.insertAdjacentHTML("beforeend",'')),e.addEventListener("load",(function(){e.contentDocument.body.classList.add("impress-console","slideView"),void 0!==o&&e.contentDocument.head.insertAdjacentHTML("beforeend",'')})),t.addEventListener("load",(function(){t.contentDocument.body.classList.add("impress-console","preView"),void 0!==o&&t.contentDocument.head.insertAdjacentHTML("beforeend",'')}))},w=function(){if(!top.isconsoleWindow){if(!c||c.closed){if(null==(c=t.open("","impressConsole"))){var o=e.createElement("div");o.id="impress-console-button",o.style.position="fixed",o.style.left=0,o.style.top=0,o.style.right=0,o.style.bottom=0,o.style.backgroundColor="rgba(255, 255, 255, 0.9)";var a="var x = document.getElementById('impress-console-button');x.parentNode.removeChild(x);var r = document.getElementById('"+l+"');impress('"+l+"').lib.util.triggerEvent(r, 'impress:console:open', {})";return o.innerHTML='",void e.body.appendChild(o)}var u="";return void 0!==i&&(u=''),c.document.open(),c.document.write(r.replace("{{cssStyle}}",d()).replace("{{cssLink}}",u).replace(/{{.*?}}/gi,(function(e){return n[e.substring(2,e.length-2)]}))),c.document.title="Speaker Console ("+e.title+")",c.impress=t.impress,c.isconsoleWindow=!0,c.onload=L,c.timerStart=new Date,c.timerReset=x,c.clockInterval=setInterval(s[l].clockTick,1e3),E([33,37,38],t.impress().prev),E([34,39,40],t.impress().next),E([32],b),E([82],x),c.onbeforeunload=function(){clearInterval(c.clockInterval)},m(),c.initialized=!1,c.document.close(),t.onresize=z,c.onresize=z,c}c.focus()}},z=function(){var e=c.document.getElementById("slideView"),n=c.document.getElementById("preView"),r=t.innerHeight/t.innerWidth,i=c.document.getElementById("views"),o=e.offsetWidth-e.clientWidth,s=i.clientWidth-o,a=Math.floor(s*r),l=a+4,d=Math.floor(.7*s),u=Math.floor(.7*a);i.clientHeight-o12?t-12:t)?12:t);var s=a(t)+":"+a(r)+":"+a(i)+" "+o;c.document.getElementById("clock").firstChild.nodeValue=s,i=Math.floor((e-c.timerStart)/1e3),r=Math.floor(i/60),i=Math.floor(i%60),c.document.getElementById("timer").firstChild.nodeValue=a(r)+"m "+a(i)+"s",c.initialized||(c.document.getElementById("slideView").contentWindow.scrollTo(0,0),c.document.getElementById("preView").contentWindow.scrollTo(0,0),c.initialized=!0)},registerKeyEvent:E,_init:k},s[l]};e.addEventListener("impress:init",(function(t){l(t.target.id)._init(),function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)}(e,"impress:help:add",{command:"P",text:"Presenter console",row:10})}));var d=function(){return""}}(document,window),function(e,t){"use strict";var n,r,i,o,s,a,l,d,u,c,p,v,m,f,g;o=[],e.addEventListener("impress:init",(function(e){n=e.target,r=e.detail.api,i=r.lib.gc,a(),i.pushCallback(g)}),!1),g=function(){var e,t;for(l(),t=0;t=0;r--)if(n[r]===t)return r-1>=0?n[r-1]:n[n.length-1]})(t.target).classList.add("prev"),function(t){for(var n=e.querySelectorAll(".step"),r=0;r=32&&e.keyCode<=34||e.keyCode>=37&&e.keyCode<=40||void 0))};r.addEventListener(e,"keydown",(function(e){o(e)&&e.preventDefault()}),!1),r.addEventListener(e,"keyup",(function(e){if(o(e)){if(e.shiftKey)switch(e.keyCode){case 9:n.prev()}else switch(e.keyCode){case 33:case 37:case 38:n.prev(e);break;case 9:case 32:case 34:case 39:case 40:n.next(e)}e.preventDefault()}}),!1),r.addEventListener(e,"click",(function(t){var r=t.target;try{for(;"A"!==r.tagName&&r!==e.documentElement;)r=r.parentNode;if("A"===r.tagName){var i=r.getAttribute("href");i&&"#"===i[0]&&(r=e.getElementById(i.slice(1)))}n.goto(r)&&(t.stopImmediatePropagation(),t.preventDefault())}catch(e){if(e instanceof TypeError&&"target is null"===e.message)return;throw e}}),!1),r.addEventListener(e,"click",(function(t){var r=t.target;try{for(;(!r.classList.contains("step")||r.classList.contains("active"))&&r!==e.documentElement;)r=r.parentNode;n.goto(r)&&t.preventDefault()}catch(e){if(e instanceof TypeError&&"target is null"===e.message)return;throw e}}),!1),i.triggerEvent(e,"impress:help:add",{command:"Left & Right",text:"Previous & Next step",row:1})}),!1)}(document),function(e){"use strict";var t,n,r,i,o,s,a,l=[],d=function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)},u=function(t){var n=e.createElement("div");return n.innerHTML=t,n.firstChild},c=function(e){if(e.title)return e.title;if(e.id.startsWith("step-"))for(var t of e.innerText.split("\n"))if((t=t.trim()).length>0)return t.length<=40?t:t.slice(0,37)+"...";return e.id},p=function(){for(var e="",t=0;t'+c(i[t])+"\n");return e};e.addEventListener("impress:navigation-ui:hideStep",(function(e){l.push(e.target),s&&(s.innerHTML=p())}),!1),e.addEventListener("impress:init",(function(l){(t=e.querySelector("#impress-toolbar"))&&function(e){var l=(n=e.detail.api).lib.gc;r=e.target,i=r.querySelectorAll(".step");var c='";(o=u('')).addEventListener("click",(function(){n.prev()})),(s=u(c)).addEventListener("change",(function(e){n.goto(e.target.value)})),l.addEventListener(r,"impress:steprefresh",(function(e){i=r.querySelectorAll(".step"),s.innerHTML="\n"+p(),s.value=e.target.id})),(a=u('')).addEventListener("click",(function(){n.next()})),d(t,"impress:toolbar:appendChild",{group:0,element:o}),d(t,"impress:toolbar:appendChild",{group:0,element:s}),d(t,"impress:toolbar:appendChild",{group:0,element:a})}(l)}),!1)}(document),function(e){"use strict";var t,n=[],r=function(){n=[];for(var e=t.querySelectorAll(".step"),r=0;r=0;r--)if(n[r]===t)return r-1>=0?n[r-1]:n[n.length-1]}(t.detail.next),r(t)),t.detail.transitionDuration=n.toNumber(t.detail.next.dataset.transitionDuration,t.detail.transitionDuration))};t.impress.addPreStepLeavePlugin(r,1)}(document,window),function(e,t){"use strict";t.impress.addPreStepLeavePlugin((function(e){if(e&&e.target)return(!e.target.classList.contains("stop")||"next"!==e.detail.reason)&&void 0}),2)}(document,window),function(e,t){"use strict";var n=function(t,n,r){var i=e.createEvent("CustomEvent");i.initCustomEvent(n,!0,!0,r),t.dispatchEvent(i)},r=null;e.addEventListener("impress:stepenter",(function(e){r=e.target}),!1);var i=function(e){var t=e.querySelectorAll(".substep");if(t.length>0){var n=o(t),r=e.querySelectorAll(".substep-visible");return s(n,r)}},o=function(e){var t=Array.from(e);return t.filter(e=>e.dataset.substepOrder).sort((e,t)=>{var n=e.dataset.substepOrder,r=t.dataset.substepOrder;return parseInt(n)-parseInt(r)}).concat(t.filter(e=>void 0===e.dataset.substepOrder))},s=function(e,t){if(t.length0)return l(r)},l=function(e){if(e.length>0){for(var t=-1,n=0;n0&&e[t-1].classList.add("substep-active");var r=e[e.length-1];return r.classList.remove("substep-visible"),t>0&&e[t-1].dataset.substepOrder===e[t].dataset.substepOrder?(e.pop(),l(e)):r}};t.impress.addPreStepLeavePlugin((function(e){if(e&&e.target){var t,r=e.target;return"next"===e.detail.reason&&(t=i(r))?(n(r,"impress:substep:stepleaveaborted",{reason:"next",substep:t}),n(r,"impress:substep:enter",{reason:"next",substep:t}),!1):"prev"===e.detail.reason&&(t=a(r))?(n(r,"impress:substep:stepleaveaborted",{reason:"prev",substep:t}),n(r,"impress:substep:leave",{reason:"prev",substep:t}),!1):void 0}}),1),e.addEventListener("impress:stepenter",(function(e){for(var t=e.target.querySelectorAll(".substep-visible"),n=0;nt.innerWidth/5&&s*i<=0?s>t.innerWidth/5&&i<=0?t.impress().prev():s<-t.innerWidth/5&&i>=0&&t.impress().next():Math.abs(i)>o?i<-o?t.impress().prev():i>o&&t.impress().next():t.impress().goto(e.querySelector("#impress .step.active"))})),e.addEventListener("touchcancel",(function(){t.impress().goto(e.querySelector("#impress .step.active"))}))}(document,window),function(e){"use strict";var t=e.getElementById("impress-toolbar"),n=[],r=function(e){for(var t=e+1;!n[t]&&t