text: /*! UIkit 2.15.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
  !function(i){var s;jQuery&&UIkit&&(s=i(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideshow",["uikit"],function(){return s||i(jQuery,UIkit)})}(function(i,s){"use strict";var t;s.component("slideshow",{defaults:{animation:"fade",duration:500,height:"auto",start:0,autoplay:!1,autoplayInterval:7e3,videoautoplay:!0,videomute:!0,kenburns:!1,slices:15},current:!1,interval:null,hovering:!1,boot:function(){s.ready(function(i){s.$("[data-@-slideshow]",i).each(function(){var i=s.$(this);if(!i.data("slideshow")){s.slideshow(i,s.Utils.options(i.attr("data-@-slideshow")))}})})},init:function(){var t,e=this;this.container=this.element.hasClass("@-slideshow")?this.element:s.$(this.find(".@-slideshow")),this.slides=this.container.children(),this.slidesCount=this.slides.length,this.current=this.options.start,this.animating=!1,this.triggers=this.find("[data-@-slideshow-item]"),this.fixFullscreen=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&this.container.hasClass(s.prefix("@-slideshow-fullscreen")),this.slides.each(function(a){var o=i(this),n=o.children("img,video,iframe").eq(0);if(o.data("media",n),o.data("sizer",n),n.length){var r;switch(n[0].nodeName){case"IMG":var d=s.$('<div class="@-cover-background @-position-cover"></div>').css({"background-image":"url("+n.attr("src")+")"});n.css({width:"100%",height:"auto"}),o.prepend(d).data("cover",d);break;case"IFRAME":var h=n[0].src;n.attr("src","").on("load",function(){(a!==e.current||a==e.current&&!e.options.videoautoplay)&&e.pausemedia(n),e.options.videomute&&e.mutemedia(n)}).attr("src",[h,h.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1"].join("")).addClass(s.prefix("@-position-top")),s.support.touch||n.css("pointer-events","none"),r=!0,s.cover&&(s.cover(n),n.attr(s.prefix("data-@-cover"),"{}"));break;case"VIDEO":n.addClass(s.prefix("@-cover-object @-position-top")),r=!0,e.options.videomute&&e.mutemedia(n)}if(r){t=s.$("<canvas></canvas>").attr({width:n[0].width,height:n[0].height});var c=s.$('<img style="width:100%;height:auto;">').attr("src",t[0].toDataURL());o.prepend(c),o.data("sizer",c)}}else o.data("sizer",o)}),this.on("click","[data-@-slideshow-item]",function(i){i.preventDefault();var t=s.$(this).data(s._prefix+"SlideshowItem");if(e.current!=t){switch(t){case"next":case"previous":e["next"==t?"next":"previous"]();break;default:e.show(t)}e.stop()}}),this.slides.eq(this.current).addClass(s.prefix("@-active")),this.triggers.filter(s.prefix('[data-@-slideshow-item="'+this.current+'"]')).addClass(s.prefix("@-active")),s.$win.on("resize load",s.Utils.debounce(function(){e.resize(),e.fixFullscreen&&(e.container.css("height",window.innerHeight),e.slides.css("height",window.innerHeight))},100)),this.resize(),this.options.autoplay&&this.start(),this.options.videoautoplay&&this.slides.eq(this.current).data("media")&&this.playmedia(this.slides.eq(this.current).data("media")),this.options.kenburns&&this.applyKenBurns(this.slides.eq(this.current)),this.container.on({mouseenter:function(){e.hovering=!0},mouseleave:function(){e.hovering=!1}}),this.on("swipeRight swipeLeft",function(i){e["swipeLeft"==i.type?"next":"previous"]()})},resize:function(){if(!this.container.hasClass("@-slideshow-fullscreen")){var s=this.options.height;"auto"===this.options.height&&(s=0,this.slides.css("height","").each(function(){s=Math.max(s,i(this).height())})),this.container.css("height",s),this.slides.css("height",s)}},show:function(i,e){if(!this.animating){this.animating=!0;var a=this,o=this.slides.eq(this.current),n=this.slides.eq(i),r=e?e:this.current<i?-1:1,d=o.data("media"),h=t[this.options.animation]?this.options.animation:"fade",c=n.data("media"),l=function(){a.animating&&(d&&d.is("video,iframe")&&a.pausemedia(d),c&&c.is("video,iframe")&&a.playmedia(c),n.addClass("@-active"),o.removeClass("@-active"),a.animating=!1,a.current=i,s.Utils.checkDisplay(n,s.prefix('[class*="@-animation-"]:not(.@-cover-background.@-position-cover)')),a.trigger("show.uk.slideshow",[n]))};a.applyKenBurns(n),s.support.animation||(h="none"),o=s.$(o),n=s.$(n),t[h].apply(this,[o,n,r]).then(l),a.triggers.removeClass(s.prefix("@-active")),a.triggers.filter(s.prefix('[data-@-slideshow-item="'+i+'"]')).addClass(s.prefix("@-active"))}},applyKenBurns:function(i){if(this.hasKenBurns(i)){var s=["@-animation-middle-left","@-animation-top-right","@-animation-bottom-left","@-animation-top-center","","@-animation-bottom-right"],t=this.kbindex||0;i.data("cover").attr("class","@-cover-background @-position-cover").width(),i.data("cover").addClass(["@-animation-scale","@-animation-reverse","@-animation-15",s[t]].join(" ")),this.kbindex=s[t+1]?t+1:0}},hasKenBurns:function(i){return this.options.kenburns&&i.data("cover")},next:function(){this.show(this.slides[this.current+1]?this.current+1:0)},previous:function(){this.show(this.slides[this.current-1]?this.current-1:this.slides.length-1)},start:function(){this.stop();var i=this;this.interval=setInterval(function(){i.hovering||i.show(i.options.start,i.next())},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},playmedia:function(i){if(i&&i[0])switch(i[0].nodeName){case"VIDEO":i[0].play();break;case"IFRAME":i[0].contentWindow.postMessage('{ "event": "command", "func": "playVideo", "method":"play"}',"*")}},pausemedia:function(i){switch(i[0].nodeName){case"VIDEO":i[0].pause();break;case"IFRAME":i[0].contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "method":"pause"}',"*")}},mutemedia:function(i){switch(i[0].nodeName){case"VIDEO":i[0].muted=!0;break;case"IFRAME":i[0].contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}}}),t={none:function(){var s=i.Deferred();return s.resolve(),s.promise()},scroll:function(t,e,a){var o=i.Deferred();return t.css("animation-duration",this.options.duration+"ms"),e.css("animation-duration",this.options.duration+"ms"),e.css("opacity",1).one(s.support.animation.end,function(){t.removeClass(1===a?"@-slideshow-scroll-backward-out":"@-slideshow-scroll-forward-out"),e.css("opacity","").removeClass(1===a?"@-slideshow-scroll-backward-in":"@-slideshow-scroll-forward-in"),o.resolve()}.bind(this)),t.addClass(1==a?"@-slideshow-scroll-backward-out":"@-slideshow-scroll-forward-out"),e.addClass(1==a?"@-slideshow-scroll-backward-in":"@-slideshow-scroll-forward-in"),e.width(),o.promise()},swipe:function(t,e,a){var o=i.Deferred();return t.css("animation-duration",this.options.duration+"ms"),e.css("animation-duration",this.options.duration+"ms"),e.css("opacity",1).one(s.support.animation.end,function(){t.removeClass(1===a?"@-slideshow-swipe-backward-out":"@-slideshow-swipe-forward-out"),e.css("opacity","").removeClass(1===a?"@-slideshow-swipe-backward-in":"@-slideshow-swipe-forward-in"),o.resolve()}.bind(this)),t.addClass(1==a?"@-slideshow-swipe-backward-out":"@-slideshow-swipe-forward-out"),e.addClass(1==a?"@-slideshow-swipe-backward-in":"@-slideshow-swipe-forward-in"),e.width(),o.promise()},scale:function(t,e){var a=i.Deferred();return t.css("animation-duration",this.options.duration+"ms"),e.css("animation-duration",this.options.duration+"ms"),e.css("opacity",1),t.one(s.support.animation.end,function(){t.removeClass("@-slideshow-scale-out"),e.css("opacity",""),a.resolve()}.bind(this)),t.addClass("@-slideshow-scale-out"),t.width(),a.promise()},fade:function(t,e){var a=i.Deferred();return t.css("animation-duration",this.options.duration+"ms"),e.css("animation-duration",this.options.duration+"ms"),e.css("opacity",1),t.one(s.support.animation.end,function(){t.removeClass("@-slideshow-fade-out"),e.css("opacity",""),a.resolve()}.bind(this)),t.addClass("@-slideshow-fade-out"),t.width(),a.promise()}},s.slideshow.animations=t});