text: !function(a,b){"use strict";var c=function(){var b=a.createElement("dummy").style,c="Webkit Moz O ms Khtml".split(" "),d={};return function(a){if("undefined"==typeof d[a]){var e=a.charAt(0).toUpperCase()+a.substr(1),f=(a+" "+c.join(e+" ")+e).split(" ");d[a]=null;for(var g in f)if(void 0!==b[f[g]]){d[a]=f[g];break}}return d[a]}}(),d=function(a){return[].slice.call(a)},e=function(a,b){var d,e;for(d in b)b.hasOwnProperty(d)&&(e=c(d),null!==e&&(a.style[e]=b[d]));return a},f=function(a,b){return isNaN(a)?b||0:Number(a)},g=function(b){return a.getElementById(b)},h=function(b,c){return c=c||a,c.querySelector(b)},i=function(b,c){return c=c||a,d(c.querySelectorAll(b))},j=function(b,c,d){var e=a.createEvent("CustomEvent");e.initCustomEvent(c,!0,!0,d),b.dispatchEvent(e)},k=function(a){return" translate3d("+a.x+"px,"+a.y+"px,"+a.z+"px) "},l=function(a,b){var c=" rotateX("+a.x+"deg) ",d=" rotateY("+a.y+"deg) ",e=" rotateZ("+a.z+"deg) ";return b?e+d+c:c+d+e},m=function(a){return" scale("+a+") "},n=function(){return g(b.location.hash.replace(/^#\/?/,""))},o=function(a){var c=b.innerHeight/a.height,d=b.innerWidth/a.width,e=c>d?d:c;return a.maxScale&&e>a.maxScale&&(e=a.maxScale),a.minScale&&e<a.minScale&&(e=a.minScale),e},p=a.body,q=navigator.userAgent.toLowerCase(),r=null!==c("perspective")&&p.classList&&p.dataset&&q.search(/(iphone)|(ipod)|(android)/)===-1;r?(p.classList.remove("impress-not-supported"),p.classList.add("impress-supported")):p.className+=" impress-not-supported ";var s={},t={width:1024,height:768,maxScale:1,minScale:0,perspective:1e3,transitionDuration:1e3},u=function(){return!1},v=b.impress=function(c){if(!r)return{init:u,goto:u,prev:u,next:u};if(c=c||"impress",s["impress-root-"+c])return s["impress-root-"+c];var q={},v=null,w=null,x=null,y=null,z=null,A=g(c),B=a.createElement("div"),C=!1,D=null,E=function(a){D!==a&&(j(a,"impress:stepenter"),D=a)},F=function(a){D===a&&(j(a,"impress:stepleave"),D=null)},G=function(a,b){var c=a.dataset,d={translate:{x:f(c.x),y:f(c.y),z:f(c.z)},rotate:{x:f(c.rotateX),y:f(c.rotateY),z:f(c.rotateZ||c.rotate)},scale:f(c.scale,1),el:a};a.id||(a.id="step-"+(b+1)),q["impress-"+a.id]=d,e(a,{position:"absolute",transform:"translate(-50%,-50%)"+k(d.translate)+l(d.rotate)+m(d.scale),transformStyle:"preserve-3d"})},H=function(){if(!C){var b=h("meta[name='viewport']")||a.createElement("meta");b.content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no",b.parentNode!==a.head&&(b.name="viewport",a.head.appendChild(b));var g=A.dataset;y={width:f(g.width,t.width),height:f(g.height,t.height),maxScale:f(g.maxScale,t.maxScale),minScale:f(g.minScale,t.minScale),perspective:f(g.perspective,t.perspective),transitionDuration:f(g.transitionDuration,t.transitionDuration)},z=o(y),d(A.childNodes).forEach(function(a){B.appendChild(a)}),A.appendChild(B),a.documentElement.style.height="100%",e(p,{height:"100%",overflow:"hidden"});var k={position:"absolute",transformOrigin:"top left",transition:"all 0s ease-in-out",transformStyle:"preserve-3d"};e(A,k),e(A,{top:"50%",left:"50%",perspective:y.perspective/z+"px",transform:m(z)}),e(B,k),p.classList.remove("impress-disabled"),p.classList.add("impress-enabled"),x=i(".step",A),x.forEach(G),w={translate:{x:0,y:0,z:0},rotate:{x:0,y:0,z:0},scale:1},C=!0,j(A,"impress:init",{api:s["impress-root-"+c]})}},I=function(a){return"number"==typeof a?a=a<0?x[x.length+a]:x[a]:"string"==typeof a&&(a=g(a)),a&&a.id&&q["impress-"+a.id]?a:null},J=null,K=function(a,c){if(!C||!(a=I(a)))return!1;b.scrollTo(0,0);var d=q["impress-"+a.id];v&&(v.classList.remove("active"),p.classList.remove("impress-on-"+v.id)),a.classList.add("active"),p.classList.add("impress-on-"+a.id);var g={rotate:{x:-d.rotate.x,y:-d.rotate.y,z:-d.rotate.z},translate:{x:-d.translate.x,y:-d.translate.y,z:-d.translate.z},scale:1/d.scale},h=g.scale>=w.scale;c=f(c,y.transitionDuration);var i=c/2;a===v&&(z=o(y));var j=g.scale*z;return v&&v!==a&&F(v),e(A,{perspective:y.perspective/j+"px",transform:m(j),transitionDuration:c+"ms",transitionDelay:(h?i:0)+"ms"}),e(B,{transform:l(g.rotate,!0)+k(g.translate),transitionDuration:c+"ms",transitionDelay:(h?0:i)+"ms"}),(w.scale===g.scale||w.rotate.x===g.rotate.x&&w.rotate.y===g.rotate.y&&w.rotate.z===g.rotate.z&&w.translate.x===g.translate.x&&w.translate.y===g.translate.y&&w.translate.z===g.translate.z)&&(i=0),w=g,v=a,b.clearTimeout(J),J=b.setTimeout(function(){E(v)},c+i),a},L=function(){var a=x.indexOf(v)-1;return a=a>=0?x[a]:x[x.length-1],K(a)},M=function(){var a=x.indexOf(v)+1;return a=a<x.length?x[a]:x[0],K(a)};return A.addEventListener("impress:init",function(){x.forEach(function(a){a.classList.add("future")}),A.addEventListener("impress:stepenter",function(a){a.target.classList.remove("past"),a.target.classList.remove("future"),a.target.classList.add("present")},!1),A.addEventListener("impress:stepleave",function(a){a.target.classList.remove("present"),a.target.classList.add("past")},!1)},!1),A.addEventListener("impress:init",function(){var a="";A.addEventListener("impress:stepenter",function(c){b.location.hash=a="#/"+c.target.id},!1),b.addEventListener("hashchange",function(){b.location.hash!==a&&K(n())},!1),K(n()||x[0],0)},!1),p.classList.add("impress-disabled"),s["impress-root-"+c]={init:H,goto:K,next:M,prev:L}};v.supported=r}(document,window),function(a,b){"use strict";var c=function(a,b){var c=null;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){a.apply(d,e)},b)}};a.addEventListener("impress:init",function(d){var e=d.detail.api;a.addEventListener("keydown",function(a){(9===a.keyCode/*||a.keyCode>=32*/&&a.keyCode<=34||a.keyCode>=37&&a.keyCode<=40)&&a.preventDefault()},!1),a.addEventListener("keyup",function(a){if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&(9===a.keyCode/*||a.keyCode>=32*/&&a.keyCode<=34||a.keyCode>=37&&a.keyCode<=40)){switch(a.keyCode){case 33:case 37:case 38:e.prev();break;case 9:case 32:case 34:case 39:case 40:e.next()}a.preventDefault()}},!1),a.addEventListener("click",function(b){for(var c=b.target;"A"!==c.tagName&&c!==a.documentElement;)c=c.parentNode;if("A"===c.tagName){var d=c.getAttribute("href");d&&"#"===d[0]&&(c=a.getElementById(d.slice(1)))}e.goto(c)&&(b.stopImmediatePropagation(),b.preventDefault())},!1),a.addEventListener("click",function(b){for(var c=b.target;(!c.classList.contains("step")||c.classList.contains("active"))&&c!==a.documentElement;)c=c.parentNode;e.goto(c)&&b.preventDefault()},!1),a.addEventListener("touchstart",function(a){if(1===a.touches.length){var c=a.touches[0].clientX,d=.3*b.innerWidth,f=null;c<d?f=e.prev():c>b.innerWidth-d&&(f=e.next()),f&&a.preventDefault()}},!1),b.addEventListener("resize",c(function(){e.goto(a.querySelector(".step.active"),500)},250),!1)},!1)}(document,window);