!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define("uikit",["jquery"],e):t.UIkit=e(t.jQuery)}(this,function(t){"use strict";function e(){return"complete"===document.readyState||"loading"!==document.readyState&&!Ot.doScroll}function i(t){var i=function(){s(document,"DOMContentLoaded",i),s(window,"load",i),t()};e()?t():(n(document,"DOMContentLoaded",i),n(window,"load",i))}function n(t,e,i,n){void 0===n&&(n=!1),e.split(" ").forEach(function(e){return F(t).addEventListener(e,i,n)})}function s(t,e,i,n){void 0===n&&(n=!1),e.split(" ").forEach(function(e){return F(t).removeEventListener(e,i,n)})}function o(t,e,i,o,r){e.split(" ").forEach(function(e){var a=function(n){var l=!r||r(n);l&&(s(t,e,a,o),i(I(l)?n:l))};n(t,e,a,o)})}function r(t,e){var i=p(e);return F(t).dispatchEvent(i),i}function a(e,i,n,s){void 0===s&&(s=!1);var o=t.Event(i);return St(e)[s?"triggerHandler":"trigger"](o,n),o}function l(t,e,i,n){return void 0===i&&(i=400),void 0===n&&(n="linear"),C(function(s,o){t=St(t);for(var r in e)t.css(r,t.css(r));var a=setTimeout(function(){return t.trigger(ie)},i);t.one(ie,function(e,i){clearTimeout(a),t.removeClass("uk-transition").css("transition",""),i?o():s()}).addClass("uk-transition").css("transition","all "+i+"ms "+n).css(e)})}function h(t,e,i,n,s){void 0===i&&(i=200);var o=C(function(r){function a(){t.css("animation-duration","").removeClass(l+" "+e)}var l=s?"uk-animation-leave":"uk-animation-enter";t=St(t),0===e.lastIndexOf("uk-animation-",0)&&(n&&(e+=" uk-animation-"+n),s&&(e+=" uk-animation-reverse")),a(),t.one(se||"animationend",function(t){t.promise=o,o.then(a),r()}).css("animation-duration",i+"ms").addClass(e).addClass(l),se||Vt(function(){return Pt.cancel(t)})});return o}function c(t){return t instanceof St}function u(t,e){return!!(t=St(t)).is(e)||(N(e)?t.parents(e).length:F(e).contains(t[0]))}function d(t,e,i,n){return(t=St(t)).attr(e,function(t,e){return e?e.replace(i,n):e})}function f(t,e){return d(t,"class",new RegExp("(^|\\s)"+e+"(?!\\S)","g"),"")}function p(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),void 0===n&&(n=!1),N(t)){var s=document.createEvent("Event");s.initEvent(t,e,i),t=s}return n&&Rt(t,n),t}function g(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var n=F(t).getBoundingClientRect();return n.bottom>=-1*e&&n.right>=-1*i&&n.top<=window.innerHeight+e&&n.left<=window.innerWidth+i}function m(t){var e=0;do{e+=t.offsetTop}while(t=t.offsetParent);return e}function v(){return Math.max(Ot.offsetHeight,Ot.scrollHeight)}function w(t,e,i){void 0===i&&(i=0),e=St(e);var n=St(e).length;return(t=(B(t)?t:"next"===t?i+1:"previous"===t?i-1:N(t)?parseInt(t,10):e.index(t))%n)<0?t+n:t}function b(t){return Ht[F(t).tagName.toLowerCase()]}function y(t,e){var i=H(t);return i?i.reduce(function(t,e){return j(e,t)},e):j(t)}function $(t,e){t=F(t);for(var i=0,n=[e,"data-"+e];i1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function k(t,e){return Ft.call(t,e)}function C(t){if(Qt)return new Promise(t);var e=St.Deferred();return t(e.resolve,e.reject),e}function _(t){return t.replace(/(?:^|[-_\/])(\w)/g,function(t,e){return e?e.toUpperCase():""})}function T(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function A(t){return t.replace(zt,E)}function E(t,e){return e?e.toUpperCase():""}function S(t){return"function"==typeof t}function O(t){return null!==t&&"object"==typeof t}function D(t){return O(t)&&Object.getPrototypeOf(t)===Object.prototype}function I(t){return"boolean"==typeof t}function N(t){return"string"==typeof t}function B(t){return"number"==typeof t}function M(t){return void 0===t}function P(t){return N(t)&&t.match(/^[!>+-]/)}function H(t){return P(t)&&t.split(/(?=\s[!>+-])/g).map(function(t){return t.trim()})}function j(t,e){if(!0===t)return null;try{if(e&&P(t)&&">"!==t[0]){var i=qt[t[0]],n=t.substr(1);e=St(e),"closest"===i&&(e=e.parent(),n=n||"*"),t=e[i](n)}else t=St(t,e)}catch(t){return null}return t.length?t:null}function F(t){return t&&(c(t)?t[0]:t)}function z(t){return I(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function L(t){var e=Number(t);return!isNaN(e)&&e}function q(e){return Lt(e)?e:N(e)?e.split(",").map(function(e){return t.isNumeric(e)?L(e):z(e.trim())}):[e]}function W(t){if(N(t))if("@"===t[0]){var e="media-"+t.substr(1);t=Wt[e]||(Wt[e]=parseFloat(J(e)))}else if(t.match(/^\(min-width:/))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function R(t,e,i){return t===Boolean?z(e):t===Number?L(e):"jQuery"===t?y(e,i):"list"===t?q(e):"media"===t?W(e):t?t(e):e}function Y(t){return t?"ms"===t.substr(-2)?parseFloat(t):1e3*parseFloat(t):0}function V(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}function U(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(t,e),i)}function X(){}function Q(t,e,i){return(window.getComputedStyle(F(t),i)||{})[e]}function J(t){var e,i=document.documentElement,n=i.appendChild(document.createElement("div"));n.classList.add("var-"+t);try{e=Q(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),e=JSON.parse(e)}catch(t){}return i.removeChild(n),e||void 0}function G(t,e){var i,n=_(t),s=_(e).toLowerCase(),o=_(e),r=document.body||document.documentElement,a=(i={},i["Webkit"+n]="webkit"+o,i["Moz"+n]=s,i["o"+n]="o"+o+" o"+s,i[t]=s,i);for(t in a)if(void 0!==r.style[t])return a[t]}function Z(){oe.scheduled||(oe.scheduled=!0,Vt(oe.flush.bind(oe)))}function K(t){for(var e;e=t.shift();)e()}function tt(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function et(){}function it(t,e){return(e.y-t.y)/(e.x-t.x)}function nt(t,e){function i(i){s[i]=(re[i]||ae)(t[i],e[i])}var n,s={};if(e.mixins)for(var o=0,r=e.mixins.length;o=l[f]&&n+c[r]<=l[p])return d[f]=n,["element","target"].forEach(function(i){h[i][t]=e?h[i][t]===pe[t][1]?pe[t][2]:pe[t][1]:h[i][t]}),!0}var r=e[0],f=e[1],p=e[2];if(!0===a||~a.indexOf(t)){var g=n[t]===f?-c[r]:n[t]===p?c[r]:0,m=s[t]===f?u[r]:s[t]===p?-u[r]:0;if(d[f]l[p]){var v=c[r]/2,w="center"===s[t]?-u[r]/2:0;"center"===n[t]&&(i(v,w)||i(-v,-w))||i(g,m)}}}),lt(e,d),h}function at(t){var e=ct(t=F(t)),i=e.pageYOffset,n=e.pageXOffset;if(!t.ownerDocument)return{top:i,left:n,height:e.innerHeight,width:e.innerWidth,bottom:i+e.innerHeight,right:n+e.innerWidth};var s=!1;t.offsetHeight||(s=t.style.display,t.style.display="block");var o=t.getBoundingClientRect();return!1!==s&&(t.style.display=s),{height:o.height,width:o.width,top:o.top+i,left:o.left+n,bottom:o.bottom+i,right:o.right+n}}function lt(t,e){var i=e.left,n=e.top;St(t).offset({left:i-ge.clientLeft,top:n-ge.clientTop})}function ht(t){return(t=F(t)).getBoundingClientRect().top+ct(t).pageYOffset}function ct(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window}function ut(e,i,n,s){t.each(pe,function(t,o){var r=o[0],a=o[1],l=o[2];i[t]===l?e[a]+=n[r]*s:"center"===i[t]&&(e[a]+=n[r]*s/2)})}function dt(t){var e=/left|center|right/,i=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function ft(t,e,i){return t=(t||"").split(" "),{x:t[0]?parseFloat(t[0])*("%"===t[0][t[0].length-1]?e/100:1):0,y:t[1]?parseFloat(t[1])*("%"===t[1][t[1].length-1]?i/100:1):0}}function pt(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function gt(t){var e=t.x1,i=t.x2,n=t.y1,s=t.y2;return Math.abs(e-i)>=Math.abs(n-s)?e-i>0?"Left":"Right":n-s>0?"Up":"Down"}function mt(){ce&&clearTimeout(ce),ue&&clearTimeout(ue),de&&clearTimeout(de),ce=ue=de=null,me={}}function vt(t){return ve||"touch"===(t.originalEvent||t).pointerType}function wt(t){It.on((e={},e["click."+t]=function(t){xe&&xe.bgClose&&!t.isDefaultPrevented()&&!u(t.target,xe.panel)&&xe.hide()},e["keydown."+t]=function(t){27===t.keyCode&&xe&&xe.escClose&&(t.preventDefault(),xe.hide())},e));var e}function bt(t){It.off("click."+t).off("keydown."+t)}function yt(t){function e(t){var e=t-Date.now();return{total:e,seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24}}yt.installed||t.component("countdown",{mixins:[t.mixin.class],attrs:!0,props:{date:String,clsWrapper:String},defaults:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(){return Date.parse(this.$props.date)},days:function(){return this.$el.find(this.clsWrapper.replace("%unit%","days"))},hours:function(){return this.$el.find(this.clsWrapper.replace("%unit%","hours"))},minutes:function(){return this.$el.find(this.clsWrapper.replace("%unit%","minutes"))},seconds:function(){return this.$el.find(this.clsWrapper.replace("%unit%","seconds"))},units:function(){var t=this;return["days","hours","minutes","seconds"].filter(function(e){return t[e].length})}},connected:function(){this.start()},disconnected:function(){var t=this;this.stop(),this.units.forEach(function(e){return t[e].empty()})},update:{write:function(){var t=this,i=e(this.date);i.total<=0&&(this.stop(),i.days=i.hours=i.minutes=i.seconds=0),this.units.forEach(function(e){var n=String(Math.floor(i[e]));if(n=n.length<2?"0"+n:n,t[e].text()!==n){var s=t[e];(n=n.split("")).length!==s.children().length&&s.empty().append(n.map(function(){return""}).join("")),n.forEach(function(t,e){return s[0].childNodes[e].innerText=t})}})}},methods:{start:function(){var t=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return t.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}})}function $t(t){function e(t,e,i,n,o,r){var a=(t=t in w?w[t]:w.slide).show(o);return{dir:o,current:i,next:n,show:function(t,s){var o=this;return void 0===s&&(s=0),t-=Math.round(t*s),this.translate(s),g.all([v.start(i,a[0],t,e),v.start(n,a[1],t,e)]).then(function(){o.reset(),r()},l)},stop:function(){return g.all([v.stop(n),v.stop(i)])},cancel:function(){return g.all([v.cancel(n),v.cancel(i)])},reset:function(){for(var t in a[0])s([n[0],i[0]]).css(t,"")},forward:function(t){var e=this,s=this.percent();return g.all([v.cancel(n),v.cancel(i)]).then(function(){return e.show(t,s)})},translate:function(e){var s=t.translate(e,o);i.css(s[0]),n.css(s[1])},percent:function(){return t.percent(i,n,o)}}}function i(t){return~~t}if(!$t.installed){var n=t.util,s=n.$,o=n.doc,r=n.fastdom,a=n.getIndex,l=n.noop,h=n.on,c=n.off,u=n.pointerDown,d=n.pointerMove,f=n.pointerUp,p=n.preventClick,g=n.promise,m=n.requestAnimationFrame,v=n.Transition;t.mixin.slideshow={attrs:!0,props:{autoplay:Number,animation:String,transition:String,duration:Number},defaults:{autoplay:0,animation:"slide",transition:"linear",duration:400,index:0,stack:[],threshold:10,percent:0,clsActive:"uk-active"},computed:{slides:function(){return this.list.children("."+this.clsItem)},forwardDuration:function(){return this.duration/4}},init:function(){var t=this;["start","move","end"].forEach(function(e){var i=t[e];t[e]=function(e){e=e.originalEvent||e,t.prevPos=t.pos,t.pos=(e.touches&&e.touches[0]||e).pageX,i(e)}})},connected:function(){this.startAutoplay()},events:[{name:"click",delegate:function(){return"["+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(s(t.currentTarget).blur().attr(this.attrItem))}},{name:u,delegate:function(){return"."+this.clsItem},handler:"start"},{name:u,handler:"stopAutoplay"},{name:"mouseenter",filter:function(){return this.autoplay},handler:function(){this.isHovering=!0}},{name:"mouseleave",filter:function(){return this.autoplay},handler:function(){this.isHovering=!1}}],methods:{start:function(t){if(!(t.button&&0!==t.button||this.slides.length<2)){var e=0;if(this.stack.length){this.percent=this._animation.percent();var i=this._animation.dir;e=this.percent*i,this.stack.splice(0,this.stack.length),this._animation.cancel(),this._animation.translate(Math.abs(e)),this.index=this.getIndex(this.index-i),this.touching=!0}h(o,d,this.move,!0),h(o,f,this.end,!0);var n=this.slides.eq(this.index);this.touch={el:n,start:this.pos+(e?n.outerWidth()*e:0)}}},move:function(n){var s=this;n.preventDefault();var o=this.touch,r=o.start,h=o.el;if(!(this.pos===this.prevPos||!this.touching&&Math.abs(r-this.pos)0?"previous":"next"),this.percent=1-this.percent,e*=-1),this.show(e>0?"previous":"next",!0),p()}this.pos=this.prevPos=this.touch=this.touching=this.percent=null},show:function(i,n){var s=this;if(void 0===n&&(n=!1),n||!this.touch)if(this.stack[n?"unshift":"push"](i),!n&&this.stack.length>1)2===this.stack.length&&this._animation.forward(this.forwardDuration);else{var o=this.slides.hasClass("uk-active"),a="next"===i?1:"previous"===i?-1:i1?this.forwardDuration:this.duration,this.percent),this.$el.trigger("itemshow",[this,h]),l&&(this.$el.trigger("itemhide",[this,l]),t.update(null,l)),t.update(null,h),r.flush()}}},getIndex:function(t){return void 0===t&&(t=this.index),a(t,this.slides,this.index)},startAutoplay:function(){var t=this;this.stopAutoplay(),this.autoplay&&(this.interval=setInterval(function(){!t.isHovering&&t.show("next")},this.autoplay))},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}};var w={fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(t){return 1-t.css("opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},slide:{show:function(t){return[{transform:"translate3d("+-100*t+"%, 0, 0)"},{transform:"translate3d(0, 0, 0)"}]},percent:function(t){return Math.abs(t.css("transform").split(",")[4]/t.outerWidth())},translate:function(t,e){return[{transform:"translate3d("+-100*e*t+"%, 0, 0)"},{transform:"translate3d("+100*e*(1-t)+"%, 0, 0)"}]}},scale:{show:function(){return[{opacity:0,transform:"scale3d(0.8, 0.8, 1)"},{opacity:1,transform:"scale3d(1, 1, 1)"}]},percent:function(t){return 1-t.css("opacity")},translate:function(t){var e=1-.2*t,i=.8+.2*t;return[{opacity:1-t,transform:"scale3d("+e+", "+e+", 1)"},{opacity:t,transform:"scale3d("+i+", "+i+", 1)"}]}},swipe:{show:function(t){return t<0?[{opacity:1,transform:"translate3d(100%, 0, 0)",zIndex:0},{opacity:1,transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)",zIndex:-1}]:[{opacity:.3,transform:"scale3d(0.8, 0.8, 1) translate3d(-20%, 0, 0)",zIndex:-1},{opacity:1,transform:"translate3d(0, 0, 0)",zIndex:0}]},percent:function(t,e,i){var n=i<0?t:e,s=Math.abs(n.css("transform").split(",")[4]/n.outerWidth());return i<0?s:1-s},translate:function(t,e){var i;return e<0?(i=1-.2*(1-t),[{opacity:1,transform:"translate3d("+100*t+"%, 0, 0)",zIndex:0},{opacity:.3+.7*t,transform:"scale3d("+i+", "+i+", 1) translate3d("+-20*(1-t)+"%, 0, 0)",zIndex:-1}]):(i=1-.2*t,[{opacity:1-.7*t,transform:"scale3d("+i+", "+i+", 1) translate3d("+-20*t+"%, 0, 0)",zIndex:-1},{opacity:1,transform:"translate3d("+100*(1-t)+"%, 0, 0)",zIndex:0}])}}}}}function xt(t){function e(t,e,i){void 0===i&&(i="in"),t.each(function(n){return a[i](t.eq(n).attr("hidden",!1),e).then(function(){"out"===i&&t.eq(n).attr("hidden",!0)})})}function i(t,e,i){return''}if(!xt.installed){t.use($t);var n=t.mixin,s=t.util,o=s.$,r=s.$trigger,a=s.Animation,l=s.ajax,h=s.assign,c=s.doc,u=s.docElement,d=s.getData,f=s.getImage,p=s.pointerDown,g=s.pointerMove,m=s.Transition;t.component("lightbox",{attrs:!0,props:{animation:String,toggle:String},defaults:{animation:void 0,toggle:"a"},computed:{toggles:function(){var t=this,e=o(this.toggle,this.$el);return this._changed=!this._toggles||e.length!==this._toggles.length||e.toArray().some(function(e,i){return e!==t._toggles.get(i)}),this._toggles=e}},disconnected:function(){this.panel&&(this.panel.$destroy(!0),this.panel=null)},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(this.toggles.index(o(t.currentTarget).blur()))}}],update:function(){this.panel&&this.animation&&(this.panel.$props.animation=this.animation,this.panel.$emit()),this.toggles.length&&this._changed&&this.panel&&(this.panel.$destroy(!0),this._init())},methods:{_init:function(){return this.panel=this.panel||t.lightboxPanel({animation:this.animation,items:this.toggles.toArray().reduce(function(t,e){return t.push(["href","caption","type"].reduce(function(t,i){return t["href"===i?"source":i]=d(e,i),t},{})),t},[])})},show:function(t){return this.panel||this._init(),this.panel.show(t)},hide:function(){return this.panel&&this.panel.hide()}}}),t.component("lightbox-panel",{mixins:[n.togglable,n.slideshow],functional:!0,defaults:{preload:1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsItem:"uk-lightbox-item",attrItem:"uk-lightbox-item",template:'
    '},computed:{container:function(){return o(!0===this.$props.container&&t.container||this.$props.container||t.container)}},created:function(){var t=this;this.$mount(o(this.template).appendTo(this.container)[0]),this.list=this.$el.find(".uk-lightbox-items"),this.toolbars=this.$el.find(".uk-lightbox-toolbar"),this.nav=this.$el.find("a[uk-lightbox-item]"),this.caption=this.$el.find(".uk-lightbox-caption"),this.items.forEach(function(e,i){return t.list.append('
  • ')})},events:[{name:g+" "+p+" keydown",handler:"showControls"},{name:"click",self:!0,handler:function(t){t.preventDefault(),this.hide()}},{name:"click",self:!0,delegate:function(){return"."+this.clsItem},handler:function(t){t.preventDefault(),this.hide()}},{name:"show",self:!0,handler:function(){this.$addClass(u,this.clsPage)}},{name:"shown",self:!0,handler:function(){this.$addClass(this.caption,"uk-animation-slide-bottom"),this.toolbars.attr("hidden",!0),this.nav.attr("hidden",!0),this.showControls()}},{name:"hide",self:!0,handler:function(){this.$removeClass(this.caption,"uk-animation-slide-bottom"),this.toolbars.attr("hidden",!0),this.nav.attr("hidden",!0)}},{name:"hidden",self:!0,handler:function(){this.$removeClass(u,this.clsPage)}},{name:"keydown",el:function(){return c},handler:function(t){if(this.isToggled(this.$el))switch(t.keyCode){case 27:this.hide();break;case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"toggle",handler:function(t){t.preventDefault(),this.toggle()}},{name:"beforeitemshow",self:!0,handler:function(){this.isToggled()||this.toggleNow(this.$el,!0)}},{name:"itemshow",self:!0,handler:function(){var t=this,e=this.getItem().caption;this.caption.toggle(!!e).html(e);for(var i=0;i<=this.preload;i++)t.loadItem(t.getIndex(t.index+i)),t.loadItem(t.getIndex(t.index-i))}},{name:"itemload",handler:function(t,e){var n,s=this,r=e.source,a=e.type;if(this.setItem(e,""),r){if("image"===a||r.match(/\.(jp(e)?g|png|gif|svg)$/i))f(r).then(function(t){return s.setItem(e,'')},function(){return s.setError(e)});else if("video"===a||r.match(/\.(mp4|webm|ogv)$/i))var h=o("").on("loadedmetadata",function(){return s.setItem(e,h.attr({width:h[0].videoWidth,height:h[0].videoHeight}))}).on("error",function(){return s.setError(e)}).attr("src",r);else if("iframe"===a)this.setItem(e,'');else if(n=r.match(/\/\/.*?youtube\.[a-z]+\/watch\?v=([^&\s]+)/)||r.match(/youtu\.be\/(.*)/)){var c=n[1],u=function(t,n){return void 0===t&&(t=640),void 0===n&&(n=450),s.setItem(e,i("//www.youtube.com/embed/"+c,t,n))};f("//img.youtube.com/vi/"+c+"/maxresdefault.jpg").then(function(t){120===t.width&&90===t.height?f("//img.youtube.com/vi/"+c+"/0.jpg").then(function(t){return u(t.width,t.height)},u):u(t.width,t.height)},u)}else{if(!(n=r.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/)))return;l({type:"GET",url:"//vimeo.com/api/oembed.json?url="+encodeURI(r),jsonp:"callback",dataType:"jsonp"}).then(function(t){var o=t.height,r=t.width;return s.setItem(e,i("//player.vimeo.com/video/"+n[2],r,o))})}return!0}}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},hide:function(){this.isToggled()&&this.toggleNow(this.$el,!1),this.slides.removeClass(this.clsActive).each(function(t,e){return m.stop(e)}),delete this.index,delete this.percent,delete this._animation},loadItem:function(t){void 0===t&&(t=this.index);var e=this.getItem(t);e.content||r(this.$el,"itemload",[e],!0).result||this.setError(e)},getItem:function(t){return void 0===t&&(t=this.index),this.items[t]||{}},setItem:function(e,i){h(e,{content:i});var n=this.slides.eq(this.items.indexOf(e)).html(i);this.$el.trigger("itemloaded",[this,n]),t.update(null,n)},setError:function(t){this.setItem(t,'')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),this.toolbars.attr("hidden")&&(e(this.toolbars.eq(0),"uk-animation-slide-top"),e(this.toolbars.eq(1),"uk-animation-slide-bottom"),this.nav.attr("hidden",this.items.length<=1),this.items.length>1&&e(this.nav,"uk-animation-fade"))},hideControls:function(){this.toolbars.attr("hidden")||(e(this.toolbars.eq(0),"uk-animation-slide-top","out"),e(this.toolbars.eq(1),"uk-animation-slide-bottom","out"),this.items.length>1&&e(this.nav,"uk-animation-fade","out"))}}})}}function kt(t){if(!kt.installed){var e=t.util,i=e.$,n=e.each,s=e.pointerEnter,o=e.pointerLeave,r=e.Transition,a={};t.component("notification",{functional:!0,args:["message","status"],defaults:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:null,clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},created:function(){a[this.pos]||(a[this.pos]=i('
    ').appendTo(t.container)),this.$mount(i('
    '+this.message+"
    ").appendTo(a[this.pos].show())[0])},ready:function(){var t=this,e=parseInt(this.$el.css("margin-bottom"),10);r.start(this.$el.css({opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}),{opacity:1,marginTop:0,marginBottom:e}).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout))})},events:(l={click:function(t){i(t.target).closest('a[href="#"]').length&&t.preventDefault(),this.close()}},l[s]=function(){this.timer&&clearTimeout(this.timer)},l[o]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},l),methods:{close:function(t){var e=this,i=function(){e.onClose&&e.onClose(),e.$el.trigger("close",[e]).remove(),a[e.pos].children().length||a[e.pos].hide()};this.timer&&clearTimeout(this.timer),t?i():r.start(this.$el,{opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}).then(i)}}});var l;t.notification.closeAll=function(e,i){n(t.instances,function(t,n){"notification"!==n.$options.name||e&&e!==n.group||n.close(i)})}}}function Ct(t){function e(i){return t.getComponent(i,"sortable")||i.parentNode&&e(i.parentNode)}if(!Ct.installed){var i=t.mixin,n=t.util,s=n.$,o=n.assign,r=n.docElement,a=n.docHeight,l=n.fastdom,h=n.getDimensions,c=n.isWithin,u=n.offset,d=n.offsetTop,f=n.pointerDown,p=n.pointerMove,g=n.pointerUp,m=n.preventClick,v=n.promise,w=n.win;t.component("sortable",{mixins:[i.class],props:{group:String,animation:Number,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},defaults:{group:!1,animation:150,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1},init:function(){var t=this;["init","start","move","end"].forEach(function(e){var i=t[e];t[e]=function(e){e=e.originalEvent||e,t.scrollY=window.scrollY;var n=e.touches&&e.touches[0]||e,s=n.pageX,o=n.pageY;t.pos={x:s,y:o},i(e)}})},events:(b={},b[f]="init",b),update:{write:function(){var t=this;if(this.clsEmpty&&this.$toggleClass(this.clsEmpty,!this.$el.children().length),this.drag){u(this.drag,{top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e=d(this.drag),i=e+this.drag[0].offsetHeight;e>0&&ewindow.innerHeight+this.scrollY&&setTimeout(function(){return w.scrollTop(t.scrollY+5)},5)}}},methods:{init:function(t){var e=s(t.target),i=this.$el.children().filter(function(e,i){return c(t.target,i)});!i.length||e.is(":input")||this.handle&&!c(e,this.handle)||t.button&&0!==t.button||c(e,"."+this.clsNoDrag)||t.defaultPrevented||(t.preventDefault(),this.touched=[this],this.placeholder=i,this.origin=o({target:e,index:this.placeholder.index()},this.pos),r.on(p,this.move),r.on(g,this.end),w.on("scroll",this.scroll),this.threshold||this.start(t))},start:function(e){this.drag=s(this.placeholder[0].outerHTML.replace(/^
  • $/i,"div>")).attr("uk-no-boot","").addClass(this.clsDrag+" "+this.clsCustom).css({boxSizing:"border-box",width:this.placeholder.outerWidth(),height:this.placeholder.outerHeight()}).css(this.placeholder.css(["paddingLeft","paddingRight","paddingTop","paddingBottom"])).appendTo(t.container),this.drag.children().first().height(this.placeholder.children().height());var i=h(this.placeholder),n=i.left,a=i.top;o(this.origin,{left:n-this.pos.x,top:a-this.pos.y}),this.placeholder.addClass(this.clsPlaceholder),this.$el.children().addClass(this.clsItem),r.addClass(this.clsDragState),this.$el.trigger("start",[this,this.placeholder,this.drag]),this.move(e)},move:function(t){if(this.drag){this.$emit();var i="mousemove"===t.type?t.target:document.elementFromPoint(this.pos.x-document.body.scrollLeft,this.pos.y-document.body.scrollTop),n=e(i),o=e(this.placeholder[0]),r=n!==o;if(n&&!c(i,this.placeholder)&&(!r||n.group&&n.group===o.group)){if(i=n.$el.is(i.parentNode)&&s(i)||n.$el.children().has(i),r)o.remove(this.placeholder);else if(!i.length)return;n.insert(this.placeholder,i),~this.touched.indexOf(n)||this.touched.push(n)}}else(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},scroll:function(){var t=window.scrollY;t!==this.scrollY&&(this.pos.y+=t-this.scrollY,this.scrollY=t,this.$emit())},end:function(t){if(r.off(p,this.move),r.off(g,this.end),w.off("scroll",this.scroll),this.drag){m();var i=e(this.placeholder[0]);this===i?this.origin.index!==this.placeholder.index()&&this.$el.trigger("change",[this,this.placeholder,"moved"]):(i.$el.trigger("change",[i,this.placeholder,"added"]),this.$el.trigger("change",[this,this.placeholder,"removed"])),this.$el.trigger("stop",[this]),this.drag.remove(),this.drag=null;var n=this.touched.map(function(t){return t.clsPlaceholder+" "+t.clsItem}).join(" ");this.touched.forEach(function(t){return t.$el.children().removeClass(n)}),r.removeClass(this.clsDragState)}else"mouseup"!==t.type&&c(t.target,"a[href]")&&(location.href=s(t.target).closest("a[href]").attr("href"))},insert:function(t,e){var i=this;this.$el.children().addClass(this.clsItem);var n=function(){e.length?!i.$el.has(t).length||t.prevAll().filter(e).length?t.insertBefore(e):t.insertAfter(e):i.$el.append(t)};this.animation?this.animate(n):n()},remove:function(t){this.$el.has(t).length&&(this.animation?this.animate(function(){return t.detach()}):t.detach())},animate:function(t){var e=this,i=[],n=this.$el.children().toArray().map(function(t){return t=s(t),i.push(o({position:"absolute",pointerEvents:"none",width:t.outerWidth(),height:t.outerHeight()},t.position())),t}),r={position:"",width:"",height:"",pointerEvents:"",top:"",left:""};t(),n.forEach(function(t){return t.stop()}),this.$el.children().css(r),this.$update("update",!0),l.flush(),this.$el.css("min-height",this.$el.height());var a=n.map(function(t){return t.position()});v.all(n.map(function(t,n){return t.css(i[n]).animate(a[n],e.animation).promise()})).then(function(){e.$el.css("min-height","").children().css(r),e.$update("update",!0),l.flush()})}}});var b}}function _t(t){if(!_t.installed){var e=t.util,i=t.mixin,n=e.$,s=e.doc,o=e.fastdom,r=e.flipPosition,a=e.isTouch,l=e.isWithin,h=e.pointerDown,c=e.pointerEnter,u=e.pointerLeave,d=[];t.component("tooltip",{attrs:!0,mixins:[i.togglable,i.position],props:{delay:Number,container:Boolean,title:String},defaults:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip",container:!0},computed:{container:function(){return n(!0===this.$props.container&&t.container||this.$props.container||t.container)}},connected:function(){var t=this;o.mutate(function(){return t.$el.removeAttr("title").attr("aria-expanded",!1)})},disconnected:function(){this.hide()},methods:{show:function(){var t=this;~d.indexOf(this)||(d.forEach(function(t){return t.hide()}),d.push(this),s.on("click."+this.$options.name,function(e){l(e.target,t.$el)||t.hide()}),clearTimeout(this.showTimer),this.tooltip=n('").appendTo(this.container),this.$el.attr("aria-expanded",!0),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?r(this.dir)+"-"+this.align:this.align+"-"+r(this.dir),this.showTimer=setTimeout(function(){t.toggleElement(t.tooltip,!0),t.hideTimer=setInterval(function(){t.$el.is(":visible")||t.hide()},150)},this.delay))},hide:function(){var t=d.indexOf(this);!~t||this.$el.is("input")&&this.$el[0]===document.activeElement||(d.splice(t,1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),this.$el.attr("aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&this.tooltip.remove(),this.tooltip=!1,s.off("click."+this.$options.name))}},events:(f={blur:"hide"},f["focus "+c+" "+h]=function(t){t.type===h&&a(t)||this.show()},f[u]=function(t){a(t)||this.hide()},f)});var f}}function Tt(t){function e(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function i(t,e){for(var i=[],n=0;ni[e]?1:i[e]>t[e]?-1:0})}if(!At.installed){var i=t.util.scrolledOver;t.component("grid-parallax",t.components.grid.extend({props:{target:String,translate:Number},defaults:{target:!1,translate:150},init:function(){this.$addClass("uk-grid")},disconnected:function(){this.reset(),this.$el.css("margin-bottom","")},computed:{translate:function(){return Math.abs(this.$props.translate)},items:function(){return(this.target?this.$el.find(this.target):this.$el.children()).toArray()}},update:[{read:function(){this.columns=this.rows&&this.rows[0]&&this.rows[0].length||0,this.rows=this.rows&&this.rows.map(function(t){return e(t,"offsetLeft")})},write:function(){this.$el.css("margin-bottom","").css("margin-bottom",this.columns>1?this.translate+parseFloat(this.$el.css("margin-bottom")):"")},events:["load","resize"]},{read:function(){this.scrolled=i(this.$el)*this.translate},write:function(){var t=this;if(!this.rows||1===this.columns||!this.scrolled)return this.reset();this.rows.forEach(function(e){return e.forEach(function(e,i){return e.style.transform="translateY("+(i%2?t.scrolled:t.scrolled/8)+"px)"})})},events:["scroll","load","resize"]}],methods:{reset:function(){this.items.forEach(function(t){return t.style.transform=""})}}})),t.component("grid-parallax").options.update.unshift({read:function(){this.reset()},events:["load","resize"]})}}function Et(t){function e(t){return t.split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(function(t){return parseFloat(t)})}function i(t,e){return+(h(t.diff)?+t.end:t.start+t.diff*e*(t.start=h)fu)return;t.props[s].pos="-"+u+"px"}n=a.cover(e,i)}}),this.$el.css({backgroundSize:n.width+"px "+n.height+"px",backgroundRepeat:"no-repeat"})}else this.$el.css({backgroundSize:"",backgroundRepeat:""})},events:["load","resize"]}],methods:{reset:function(){var t=this;Object.keys(this.getCss(0)).forEach(function(e){return t.$el.css(e,"")})},getCss:function(t){var e=!1,n=this.props;return Object.keys(n).reduce(function(s,o){var r=n[o],a=i(r,t);switch(o){case"x":case"y":if(e)break;var l=["x","y"].map(function(e){return o===e?a+r.unit:n[e]?i(n[e],t)+n[e].unit:0}),h=l[0],c=l[1];e=s.transform+=" translate3d("+h+", "+c+", 0)";break;case"rotate":s.transform+=" rotate("+a+"deg)";break;case"scale":s.transform+=" scale("+a+")";break;case"bgy":case"bgx":s["background-position-"+o[2]]="calc("+r.pos+" + "+(a+r.unit)+")";break;case"color":case"backgroundColor":case"borderColor":s[o]="rgba("+r.start.map(function(e,i){return e+=t*(r.end[i]-e),3===i?parseFloat(e):parseInt(e,10)}).join(",")+")";break;case"blur":s.filter+=" blur("+a+"px)";break;case"hue":s.filter+=" hue-rotate("+a+"deg)";break;case"fopacity":s.filter+=" opacity("+a+"%)";break;case"grayscale":case"invert":case"saturate":case"sepia":s.filter+=" "+o+"("+a+"%)";break;default:s[o]=a}return s},{transform:"",filter:""})}}},t.component("parallax",{mixins:[n.parallax],props:{target:String,viewport:Number},defaults:{target:!1,viewport:1},computed:{target:function(){return this.$props.target&&u(this.$props.target,this.$el)||this.$el}},disconnected:function(){delete this._prev},update:[{read:function(){delete this._prev}},{read:function(){var t=c(this.target)/(this.viewport||1);this._percent=r(t*(1-(this.easing-this.easing*t)))},write:function(){this._active?this._prev!==this._percent&&(this.$el.css(this.getCss(this._percent)),this._prev=this._percent):this.reset()},events:["scroll","load","resize"]}]})}}var St="default"in t?t.default:t,Ot=document.documentElement,Dt=St(window),It=St(document),Nt=St(Ot),Bt="rtl"===Ot.getAttribute("dir"),Mt={start:l,stop:function(t,e){return a(t,ie,[e],!0),C.resolve()},cancel:function(t){return this.stop(t,!0)},inProgress:function(t){return St(t).hasClass("uk-transition")}},Pt={in:function(t,e,i,n){return h(t,e,i,n,!1)},out:function(t,e,i,n){return h(t,e,i,n,!0)},inProgress:function(t){return St(t).hasClass("uk-animation-enter")||St(t).hasClass("uk-animation-leave")},cancel:function(t){return a(t,se||"animationend",null,!0).promise||C.resolve()}},Ht={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},jt={ratio:function(t,e,i){var n="width"===e?"height":"width";return s={},s[n]=Math.round(i*t[n]/t[e]),s[e]=i,s;var s},contain:function(e,i){var n=this;return e=Rt({},e),t.each(e,function(t){return e=e[t]>i[t]?n.ratio(e,t,i[t]):e}),e},cover:function(e,i){var n=this;return e=this.contain(e,i),t.each(e,function(t){return e=e[t]0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n100&&t.positions.splice(0,s),t.positions.push({time:n,x:i.pageX,y:i.pageY}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0},It.on("mousemove",this.handler)},cancel:function(){this.handler&&It.off("mousemove",this.handler)},movesTo:function(t){if(this.positions.length<2)return!1;var e=at(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var s=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=i.x||(e.left>=i.x?(s[0].reverse(),s[1].reverse()):e.bottom<=i.y?s[0].reverse():e.top>=i.y&&s[1].reverse()),!!s.reduce(function(t,e){return t+(it(n,e[0])it(i,e[1]))},0)}};var re={};re.args=re.created=re.events=re.init=re.ready=re.connected=re.disconnected=re.destroy=function(t,e){return t=t&&!Lt(t)?[t]:t,e?t?t.concat(e):Lt(e)?e:[e]:t},re.update=function(t,e){return re.args(t,S(e)?{read:e}:e)},re.props=function(t,e){return Lt(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),re.methods(t,e)},re.computed=re.defaults=re.methods=function(t,e){return e?t?Rt({},t,e):e:t};var ae=function(t,e){return M(e)?t:e},le=0,he=function(t){this.id=++le,this.el=F(t)};he.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},he.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},he.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},he.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},he.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},he.prototype.enableApi=function(){var t=this;if(this.ready)return this.ready;var e,i=this.isYoutube(),n=this.isVimeo();return i||n?this.ready=C(function(s){o(t.el,"load",function(){if(i){var n=function(){return st(t.el,{event:"listening",id:t.id})};e=setInterval(n,100),n()}}),ot(function(e){return i&&e.id===t.id&&"onReady"===e.event||n&&Number(e.player_id)===t.id}).then(function(){s(),e&&clearInterval(e)}),t.el.setAttribute("src",t.el.src+(~t.el.src.indexOf("?")?"&":"?")+(i?"enablejsapi=1":"api=1&player_id="+le))}):C.resolve()},he.prototype.play=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return st(t.el,{func:"playVideo",method:"play"})}):this.isHTML5()&&this.el.play())},he.prototype.pause=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return st(t.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},he.prototype.mute=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return st(t.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,this.el.setAttribute("muted","")))};var ce,ue,de,fe,pe={x:["width","left","right"],y:["height","top","bottom"]},ge=document.documentElement,me={};i(function(){n(document,"click",function(){return fe=!0},!0),n(document,Gt,function(t){var e=t.touches?t.touches[0]:t,i=e.target,n=e.pageX,s=e.pageY,o=Date.now();me.el="tagName"in i?i:i.parentNode,ce&&clearTimeout(ce),me.x1=n,me.y1=s,me.last&&o-me.last<=250&&(me={}),me.last=o,fe=t.button>0}),n(document,Zt,function(t){var e=t.touches?t.touches[0]:t,i=e.pageX,n=e.pageY;me.x2=i,me.y2=n}),n(document,Kt,function(t){var e=t.target;me.x2&&Math.abs(me.x1-me.x2)>30||me.y2&&Math.abs(me.y1-me.y2)>30?ue=setTimeout(function(){me.el&&(r(me.el,"swipe"),r(me.el,"swipe"+gt(me))),me={}}):"last"in me?(de=setTimeout(function(){return me.el&&r(me.el,"tap")}),me.el&&u(e,me.el)&&(ce=setTimeout(function(){ce=null,me.el&&!fe&&r(me.el,"click"),me={}},350))):me={}}),n(document,"touchcancel",mt),n(window,"scroll",mt)});var ve=!1;n(document,"touchstart",function(){return ve=!0},!0),n(document,"click",function(){ve=!1}),n(document,"touchcancel",function(){return ve=!1},!0);var we,be,ye=Object.freeze({win:Dt,doc:It,docElement:Nt,isRtl:Bt,isReady:e,ready:i,on:n,off:s,one:o,trigger:r,$trigger:a,transition:l,Transition:Mt,animate:h,Animation:Pt,isJQuery:c,isWithin:u,attrFilter:d,removeClass:f,createEvent:p,isInView:g,scrolledOver:function(t){var e=(t=F(t)).offsetHeight,i=m(t),n=window.innerHeight,s=n+Math.min(0,i-n),o=Math.max(0,n-(v()-(i+e)));return U((s+window.pageYOffset-i)/((s+(e-(o0&&N(e)&&~e.indexOf(" ")&&Array.prototype.splice.apply(t,[i,1].concat(t[i].split(" ")))}),t[0]&&t[1]&&t.length>1&&t}t.prototype.$addClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"add")},t.prototype.$removeClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"remove")},t.prototype.$hasClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return(t=i(t,this.$options.el))&&t[0].contains(t[1])},t.prototype.$toggleClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=(t=i(t,this.$options.el))&&!N(t[t.length-1])?t.pop():void 0,s=1;s<(t&&t.length);s++)t[0]&&be?t[0].toggle(t[s],n):t[0][(M(n)?!t[0].contains(t[s]):n)?"add":"remove"](t[s])}}($e);var xe,ke,Ce={init:function(){this.$addClass(this.$name)}},_e={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(){return!!this.animation[0]},hasTransition:function(){return this.hasAnimation&&!0===this.animation[0]}},methods:{toggleElement:function(t,e,i){var n,s=this,o=document.body,r=o.scrollTop,a=function(t){return C.all(t.toArray().map(function(t){return s._toggleElement(t,e,i)})).then(null,X)},l=function(t){var e=a(t);return s._queued=null,o.scrollTop=r,e};return t=St(t),!this.hasAnimation||!this.queued||t.length<2?a(t):this._queued?l(t.not(this._queued)):(this._queued=t.not(n=t.filter(function(t,e){return s.isToggled(e)})),a(n).then(function(){return s._queued&&l(s._queued)}))},toggleNow:function(t,e){var i=this;return C.all(St(t).toArray().map(function(t){return i._toggleElement(t,e,!1)})).then(null,X)},isToggled:function(t){return t=t&&St(t)||this.$el,this.cls?t.hasClass(this.cls.split(" ")[0]):!t.attr("hidden")},updateAria:function(t){!1===this.cls&&t.attr("aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;if(t=St(t),Pt.inProgress(t))return Pt.cancel(t).then(function(){return n._toggleElement(t,e,i)});if(e=I(e)?e:!this.isToggled(t),!1===a(t,"before"+(e?"show":"hide"),[this]).result)return C.reject();var s=(!1!==i&&this.hasAnimation?this.hasTransition?this._toggleHeight:this._toggleAnimation:this._toggleImmediate)(t,e);return t.trigger(e?"show":"hide",[this]),s.then(function(){t.trigger(e?"shown":"hidden",[n]),$e.update(null,t)})},_toggle:function(t,e){t=St(t),this.cls?t.toggleClass(this.cls,~this.cls.indexOf(" ")?void 0:e):t.attr("hidden",!e),t.find("[autofocus]:visible").focus(),this.updateAria(t),$e.update(null,t)},_toggleImmediate:function(t,e){return this._toggle(t,e),C.resolve()},_toggleHeight:function(t,e){var i,n=this,s=Mt.inProgress(t),o=parseFloat(t.children().first().css("margin-top"))+parseFloat(t.children().last().css("margin-bottom")),r=t[0].offsetHeight?t.height()+(s?0:o):0;return Mt.cancel(t).then(function(){return n.isToggled(t)||n._toggle(t,!0),t.height(""),C(function(a){return Vt(function(){i=t.height()+(s?0:o),t.height(r),(e?Mt.start(t,Rt(n.initProps,{overflow:"hidden",height:i}),Math.round(n.duration*(1-r/i)),n.transition):Mt.start(t,n.hideProps,Math.round(n.duration*(r/i)),n.transition).then(function(){n._toggle(t,!1),t.css(n.initProps)})).then(a)})})})},_toggleAnimation:function(t,e){var i=this;return e?(this._toggle(t,!0),Pt.in(t,this.animation[0],this.duration,this.origin)):Pt.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},Te={mixins:[Ce,_e],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,container:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,container:!0},computed:{body:function(){return St(document.body)},panel:function(){return this.$el.find("."+this.clsPanel)},container:function(){return F(!0===this.$props.container&&$e.container||this.$props.container&&j(this.$props.container))},transitionElement:function(){return this.panel},transitionDuration:function(){return Y(this.transitionElement.css("transition-duration"))},component:function(){return $e[this.$options.name]}},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",handler:function(t){t.preventDefault(),this.toggle()}},{name:"beforeshow",self:!0,handler:function(){var t=this;if(this.isToggled())return!1;var e=xe&&xe!==this&&xe;if(xe=this,this.component.active=this,e){if(!this.stack)return e.hide().then(this.show),!1;this.prev=e}else Vt(function(){return wt(t.$options.name)});e||(this.scrollbarWidth=window.innerWidth-Nt[0].offsetWidth,this.body.css("overflow-y",this.scrollbarWidth&&this.overlay?"scroll":"")),Nt.addClass(this.clsPage)}},{name:"beforehide",self:!0,handler:function(){if(!this.isToggled())return!1;(xe=xe&&xe!==this&&xe||this.prev)||bt(this.$options.name)}},{name:"hidden",self:!0,handler:function(){this.component.active===this&&(Nt.removeClass(this.clsPage),this.body.css("overflow-y",""),this.component.active=null)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var t=this;return this.container&&!this.$el.parent().is(this.container)?(this.container.appendChild(this.$el[0]),C(function(e){return Vt(function(){return e(t.show())})})):this.toggleNow(this.$el,!0)},hide:function(){return this.toggleNow(this.$el,!1)},getActive:function(){return xe},_toggleImmediate:function(t,e){var i=this;return this._toggle(t,e),this.transitionDuration?C(function(t,e){i._transition&&(i.transitionElement.off(ie,i._transition.handler),i._transition.reject()),i._transition={reject:e,handler:function(){t(),i._transition=null}},i.transitionElement.one(ie,i._transition.handler)}):C.resolve()}}},Ae={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:Bt?"bottom-right":"bottom-left",flip:!0,offset:!1,clsPos:""},computed:{pos:function(){return(this.$props.pos+(~this.$props.pos.indexOf("-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){f(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?").css({top:"",left:""});var n=L(this.offset)||0,s=this.getAxis(),o=rt(t,e,"x"===s?pt(this.dir)+" "+this.align:this.align+" "+pt(this.dir),"x"===s?this.dir+" "+this.align:this.align+" "+this.dir,"x"===s?""+("left"===this.dir?-1*n:n):" "+("top"===this.dir?-1*n:n),null,this.flip,i);this.dir="x"===s?o.target.x:o.target.y,this.align="x"===s?o.target.y:o.target.x,t.toggleClass(this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Ee=function(t){t.component("accordion",{mixins:[Ce,_e],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},defaults:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(){var t=this,e=St(this.targets,this.$el);return this._changed=!this._items||e.length!==this._items.length||e.toArray().some(function(e,i){return e!==t._items.get(i)}),this._items=e}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(this.items.find(this.$props.toggle).index(t.currentTarget))}}],update:function(){var t=this;if(this.items.length&&this._changed){this.items.each(function(e,i){i=St(i),t.toggleNow(i.find(t.content),i.hasClass(t.clsOpen))});var e=!1!==this.active&&j(this.items.eq(Number(this.active)))||!this.collapsible&&j(this.items.eq(0));e&&!e.hasClass(this.clsOpen)&&this.toggle(e,!1)}},methods:{toggle:function(t,e){var i=this,n=w(t,this.items),s=this.items.filter("."+this.clsOpen);(t=this.items.eq(n)).add(!this.multiple&&s).each(function(n,o){var r=(o=St(o)).is(t),a=r&&!o.hasClass(i.clsOpen);if(a||!r||i.collapsible||!(s.length<2)){o.toggleClass(i.clsOpen,a);var l=o[0]._wrapper?o[0]._wrapper.children().first():o.find(i.content);o[0]._wrapper||(o[0]._wrapper=l.wrap("
    ").parent().attr("hidden",a)),i._toggleImmediate(l,!0),i.toggleElement(o[0]._wrapper,a,e).then(function(){o.hasClass(i.clsOpen)===a&&(a||i._toggleImmediate(l,!1),o[0]._wrapper=null,l.unwrap())})}})}}})},Se=function(t){t.component("alert",{mixins:[Ce,_e],args:"animation",props:{close:String},defaults:{animation:[!0],close:".uk-alert-close",duration:150,hideProps:{opacity:0}},events:[{name:"click",delegate:function(){return this.close},handler:function(t){t.preventDefault(),this.closeAlert()}}],methods:{closeAlert:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}})},Oe=function(t){t.component("cover",{mixins:[Ce],props:{width:Number,height:Number},computed:{el:function(){return this.$el[0]},parent:function(){return this.el.parentNode}},ready:function(){this.$el.is("iframe")&&this.$el.css("pointerEvents","none");var t=new he(this.$el);t.isVideo()&&t.mute()},update:{write:function(){0!==this.el.offsetHeight&&this.$el.css({width:"",height:""}).css(jt.cover({width:this.width||this.el.clientWidth,height:this.height||this.el.clientHeight},{width:this.parent.offsetWidth,height:this.parent.offsetHeight}))},events:["load","resize"]},events:{loadedmetadata:function(){this.$emit()}}})},De=function(t){function e(){n||(n=!0,It.on("click",function(t){for(var e;i&&i!==e&&!u(t.target,i.$el)&&(!i.toggle||!u(t.target,i.toggle.$el));)e=i,i.hide(!1)}))}var i;t.component("drop",{mixins:[Ae,_e],args:"pos",props:{mode:"list",toggle:Boolean,boundary:"jQuery",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:["click","hover"],toggle:"- :first",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},init:function(){this.tracker=new et,this.clsDrop=this.clsDrop||"uk-"+this.$options.name,this.clsPos=this.clsDrop,this.$addClass(this.clsDrop)},ready:function(){this.updateAria(this.$el),this.toggle&&(this.toggle=t.toggle(y(this.toggle,this.$el),{target:this.$el,mode:this.mode}))},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.isDefaultPrevented()){var e=St(t.target).attr("href");1===e.length&&t.preventDefault(),1!==e.length&&u(e,this.$el)||this.hide(!1)}}},{name:"toggle",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1))}},{name:te,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){vt(t)||(i&&i!==this&&i.toggle&&~i.toggle.mode.indexOf("hover")&&!u(t.target,i.$el)&&!u(t.target,i.toggle.$el)&&i.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+ee,handler:function(t,e){vt(t)||e&&!this.$el.is(e.target)||(t.preventDefault(),this.toggle&&~this.toggle.mode.indexOf("hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers()}},{name:"show",self:!0,handler:function(){this.tracker.init(),this.toggle.$el.addClass(this.cls).attr("aria-expanded","true"),e()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var e=t.target;this.$el.is(e)?(i=this.isActive()?null:i,this.toggle.$el.removeClass(this.cls).attr("aria-expanded","false").blur().find("a, button").blur(),this.tracker.cancel()):i=null===i&&u(e,this.$el)&&this.isToggled()?this:i}}],update:{write:function(){this.isToggled()&&!Pt.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(t,e){var n=this;void 0===e&&(e=!0);var s=function(){n.isToggled()||(n.position(),n.toggleElement(n.$el,!0))},o=function(){if(n.toggle=t||n.toggle,n.clearTimers(),!n.isActive())if(e&&i&&i!==n&&i.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(i)){if(!i.hideTimer)return;i.hide(!1)}else if(i&&!n.isChildOf(i)&&!n.isParentOf(i))for(var o;i&&i!==o;)o=i,i.hide(!1);e&&n.delayShow?n.showTimer=setTimeout(s,n.delayShow):s(),i=n}};t&&this.toggle&&!this.toggle.$el.is(t.$el)?(this.$el.one("hide",o),this.hide(!1)):o()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return i===this},isChildOf:function(t){return t&&t!==this&&u(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&u(t.$el,this.$el)},position:function(){f(this.$el,this.clsDrop+"-(stack|boundary)").css({top:"",left:""}),this.$el.show().toggleClass(this.clsDrop+"-boundary",this.boundaryAlign);var t=at(this.boundary),e=this.boundaryAlign?t:at(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";this.$el.css(i,e[i])}else this.$el.outerWidth()>Math.max(t.right-e.left,e.right-t.left)&&(this.$addClass(this.clsDrop+"-stack"),this.$el.trigger("stack",[this]));this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),this.$el[0].style.display=""}}}),t.drop.getActive=function(){return i};var n},Ie=function(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))},Ne=function(t){t.component("form-custom",{mixins:[Ce],args:"target",props:{target:Boolean},defaults:{target:!1},computed:{input:function(){return this.$el.find(":input:first")},state:function(){return this.input.next()},target:function(){return this.$props.target&&y(!0===this.$props.target?"> :input:first + :first":this.$props.target,this.$el)}},connected:function(){this.input.trigger("change")},events:[{name:"focusin focusout mouseenter mouseleave",delegate:":input:first",handler:function(t){var e=t.type;this.state.toggleClass("uk-"+(~e.indexOf("focus")?"focus":"hover"),~["focusin","mouseenter"].indexOf(e))}},{name:"change",handler:function(){this.target&&this.target[this.target.is(":input")?"val":"text"](this.input[0].files&&this.input[0].files[0]?this.input[0].files[0].name:this.input.is("select")?this.input.find("option:selected").text():this.input.val())}}]})},Be=function(t){t.component("gif",{update:{read:function(){var t=g(this.$el);!this.isInView&&t&&(this.$el[0].src=this.$el[0].src),this.isInView=t},events:["scroll","load","resize"]}})},Me=function(t){t.component("grid",t.components.margin.extend({mixins:[Ce],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(){this.$toggleClass(this.clsStack,this.stacks)},events:["load","resize"]}}))},Pe=function(t){t.component("height-match",{args:"target",props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},computed:{elements:function(){return St(this.target,this.$el)}},update:{read:function(){var t=this,e=!1;this.elements.css("minHeight",""),this.rows=this.row?this.elements.toArray().reduce(function(t,i){return e!==i.offsetTop?t.push([i]):t[t.length-1].push(i),e=i.offsetTop,t},[]).map(function(e){return t.match(St(e))}):[this.match(this.elements)]},write:function(){this.rows.forEach(function(t){var e=t.height,i=t.elements;return i&&i.each(function(t,i){return i.style.minHeight=e+"px"})})},events:["load","resize"]},methods:{match:function(t){if(t.length<2)return{};var e=0,i=[];return t=t.each(function(t,n){var s,o,r;0===n.offsetHeight&&(o=(s=St(n)).attr("style")||null,r=s.attr("hidden")||null,s.attr({style:o+";display:block !important;",hidden:null})),e=Math.max(e,n.offsetHeight),i.push(n.offsetHeight),s&&s.attr({style:o,hidden:r})}).filter(function(t){return i[t]0&&this.$el.css("min-height",e=this.$el.outerHeight()+s)}else{var o=ht(this.$el);if(o=this.$el.outerHeight()&&this.$el.css("height",e)},events:["load","resize"]}})},je=function(t){i(function(){if(Jt){var e="uk-hover";Nt.on("tap",function(t){var i=t.target;return St("."+e).filter(function(t,e){return!u(i,e)}).removeClass(e)}),Object.defineProperty(t,"hoverSelector",{set:function(t){Nt.on("tap",t,function(t){return t.currentTarget.classList.add(e)})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})},Fe=function(t){function e(e,i){t.component(e,t.components.icon.extend({name:e,mixins:i?[i]:[],defaults:{icon:e}}))}var i={},n={spinner:'',totop:'',marker:'',"close-icon":'',"close-large":'',"navbar-toggle-icon":'',"overlay-icon":'',"pagination-next":'',"pagination-previous":'',"search-icon":'',"search-large":'',"search-navbar":'',"slidenav-next":'',"slidenav-next-large":'',"slidenav-previous":'',"slidenav-previous-large":''};t.component("icon",t.components.svg.extend({attrs:["icon","ratio"],mixins:[Ce],name:"icon",args:"icon",props:["icon"],defaults:{exclude:["id","style","class","src","icon"]},init:function(){this.$addClass("uk-icon"),Bt&&(this.icon=V(V(this.icon,"left","right"),"previous","next"))},update:{read:function(){if(this.delay){var t=this.getIcon();t&&this.delay(t)}},events:["load"]},methods:{getSvg:function(){var t=this,e=this.getIcon();return e?C.resolve(e):"complete"!==document.readyState?C(function(e){t.delay=e}):C.reject("Icon not found.")},getIcon:function(){return n[this.icon]?(i[this.icon]||(i[this.icon]=this.parse(n[this.icon])),i[this.icon]):null}}})),["marker","navbar-toggle-icon","overlay-icon","pagination-previous","pagination-next","totop"].forEach(function(t){return e(t)}),["slidenav-previous","slidenav-next"].forEach(function(t){return e(t,{init:function(){this.$addClass("uk-slidenav"),this.$hasClass("uk-slidenav-large")&&(this.icon+="-large")}})}),e("search-icon",{init:function(){this.$hasClass("uk-search-icon")&&this.$el.parents(".uk-search-large").length?this.icon="search-large":this.$el.parents(".uk-search-navbar").length&&(this.icon="search-navbar")}}),e("close",{init:function(){this.icon="close-"+(this.$hasClass("uk-close-large")?"large":"icon")}}),e("spinner",{connected:function(){var t=this;this.svg.then(function(e){return 1!==t.ratio&&St(e).find("circle").css("stroke-width",1/t.ratio)})}}),t.icon.add=function(t){return Rt(n,t)}},ze=function(t){t.component("margin",{props:{margin:String,firstColumn:Boolean},defaults:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},computed:{items:function(){return this.$el[0].children}},update:{read:function(){var t=this;if(this.items.length&&0!==this.$el[0].offsetHeight){this.stacks=!0;for(var e=[[]],i=0;i=0;o--){var r=e[o];if(!r[0]){r.push(n);break}var a=r[0].getBoundingClientRect();if(s.top>=Math.floor(a.bottom)){e.push([n]);break}if(Math.floor(s.bottom)>a.top){if(t.stacks=!1,s.left
    '+e+"
    ",i);return n.$el.on("hidden",function(t){t.target===t.currentTarget&&n.$destroy(!0)}),n.show(),n},t.modal.alert=function(e,i){return i=Rt({bgClose:!1,escClose:!1,labels:t.modal.labels},i),C(function(n){return t.modal.dialog('
    '+(N(e)?e:St(e).html())+'
    ",i).$el.on("hide",n)})},t.modal.confirm=function(e,i){return i=Rt({bgClose:!1,escClose:!1,labels:t.modal.labels},i),C(function(n,s){return t.modal.dialog('
    '+(N(e)?e:St(e).html())+'
    ",i).$el.on("click",".uk-modal-footer button",function(t){return 0===St(t.target).index()?s():n()})})},t.modal.prompt=function(e,i,n){return n=Rt({bgClose:!1,escClose:!1,labels:t.modal.labels},n),C(function(s){var o=!1,r=t.modal.dialog('
    ",n),a=r.$el.find("input").val(i);r.$el.on("submit","form",function(t){t.preventDefault(),s(a.val()),o=!0,r.hide()}).on("hide",function(){o||s(null)})})},t.modal.labels={ok:"Ok",cancel:"Cancel"}},qe=function(t){t.component("nav",t.components.accordion.extend({name:"nav",defaults:{targets:"> .uk-parent",toggle:"> a",content:"ul:first"}}))},We=function(t){t.component("navbar",{mixins:[Ce],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:"jQuery",duration:Number},defaults:{dropdown:".uk-navbar-nav > li",align:Bt?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200},computed:{boundary:function(){return!0===this.$props.boundary||this.boundaryAlign?this.$el:this.$props.boundary},pos:function(){return"bottom-"+this.align}},ready:function(){this.dropbar&&t.navbarDropbar(y(this.dropbar,this.$el)||St("
    ").insertAfter(this.dropbarAnchor||this.$el),{clsDrop:this.clsDrop,mode:this.dropbarMode,duration:this.duration,navbar:this})},update:function(){t.drop(St(this.dropdown+" ."+this.clsDrop,this.$el),Rt({},this.$props,{boundary:this.boundary,pos:this.pos}))},events:[{name:te,delegate:function(){return this.dropdown},handler:function(t){var e=t.currentTarget,i=this.getActive();i&&i.toggle&&!u(i.toggle.$el,e)&&!i.tracker.movesTo(i.$el)&&i.hide(!1)}}],methods:{getActive:function(){var e=t.drop.getActive();return e&&"click"!==e.mode&&u(e.toggle.$el,this.$el)&&e}}}),t.component("navbar-dropbar",{mixins:[Ce],defaults:{clsDrop:"",mode:"slide",navbar:null,duration:200},init:function(){"slide"===this.mode&&this.$addClass("uk-navbar-dropbar-slide")},events:[{name:"beforeshow",el:function(){return this.navbar.$el},handler:function(t,e){var i=e.$el;if("bottom"===e.dir&&!u(i,this.$el))return i.appendTo(this.$el),e.show(),!1}},{name:"mouseleave",handler:function(){var t=this.navbar.getActive();t&&!this.$el.is(":hover")&&t.hide()}},{name:"beforeshow",handler:function(t,e){var i=e.$el;this.clsDrop&&i.addClass(this.clsDrop+"-dropbar"),this.transitionTo(i.outerHeight(!0))}},{name:"beforehide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();if(this.$el.is(":hover")&&n&&n.$el.is(i))return!1}},{name:"hide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();(!n||n&&n.$el.is(i))&&this.transitionTo(0)}}],methods:{transitionTo:function(t){var e=this;return this.$el.height(this.$el[0].offsetHeight?this.$el.height():0),Mt.cancel(this.$el).then(function(){return Mt.start(e.$el,{height:t},e.duration).then(null,X)})}}})},Re=function(t){t.component("offcanvas",{mixins:[Te],args:"mode",props:{content:String,mode:String,flip:Boolean,overlay:Boolean},defaults:{content:".uk-offcanvas-content:first",mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",clsPanel:"uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContent:"uk-offcanvas-content",clsContentAnimation:"uk-offcanvas-content-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close"},computed:{content:function(){return St(y(this.$props.content,this.$el))},clsFlip:function(){return this.flip?this.$props.clsFlip:""},clsOverlay:function(){return this.overlay?this.$props.clsOverlay:""},clsMode:function(){return this.$props.clsMode+"-"+this.mode},clsSidebarAnimation:function(){return"none"===this.mode||"reveal"===this.mode?"":this.$props.clsSidebarAnimation},clsContentAnimation:function(){return"push"!==this.mode&&"reveal"!==this.mode?"":this.$props.clsContentAnimation},transitionElement:function(){return"reveal"===this.mode?this.panel.parent():this.panel}},update:{write:function(){this.isToggled()&&((this.overlay||this.clsContentAnimation)&&this.content.width(window.innerWidth-this.scrollbarWidth),this.overlay&&(this.content.height(window.innerHeight),ke&&this.content.scrollTop(ke.y)))},events:["resize"]},events:[{name:"click",delegate:function(){return this.panel},handler:function(t){var e=t.target,i=St(e).closest("a[href^=#]").attr("href");i&&i.length>1&&this.content.find(i).length&&(ke=null,this.hide())}},{name:"beforeshow",self:!0,handler:function(){ke=ke||{x:window.pageXOffset,y:window.pageYOffset},"reveal"!==this.mode||this.panel.parent().hasClass(this.clsMode)||this.panel.wrap("
    ").parent().addClass(this.clsMode),Nt.css("overflow-y",(!this.clsContentAnimation||this.flip)&&this.scrollbarWidth&&this.overlay?"scroll":""),this.body.addClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).height(),this.content.addClass(this.clsContentAnimation),this.panel.addClass(this.clsSidebarAnimation+" "+("reveal"!==this.mode?this.clsMode:"")),this.$el.addClass(this.clsOverlay).css("display","block").height()}},{name:"beforehide",self:!0,handler:function(){this.content.removeClass(this.clsContentAnimation),("none"===this.mode||this.getActive()&&this.getActive()!==this)&&this.panel.trigger(ie)}},{name:"hidden",self:!0,handler:function(){if("reveal"===this.mode&&this.panel.unwrap(),this.overlay){if(!ke){var t=this.content[0],e=t.scrollLeft,i=t.scrollTop;ke={x:e,y:i}}}else ke={x:window.pageXOffset,y:window.pageYOffset};this.panel.removeClass(this.clsSidebarAnimation+" "+this.clsMode),this.$el.removeClass(this.clsOverlay).css("display",""),this.body.removeClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).scrollTop(ke.y),Nt.css("overflow-y",""),this.content.width("").height(""),window.scrollTo(ke.x,ke.y),ke=null}},{name:"swipeLeft swipeRight",handler:function(t){this.isToggled()&&vt(t)&&("swipeLeft"===t.type&&!this.flip||"swipeRight"===t.type&&this.flip)&&this.hide()}}]})},Ye=function(t){t.component("responsive",{props:["width","height"],init:function(){this.$addClass("uk-responsive-width")},update:{read:function(){this.dim=!!(this.$el.is(":visible")&&this.width&&this.height)&&{width:this.$el.parent().width(),height:this.height}},write:function(){this.dim&&this.$el.height(jt.contain({height:this.height,width:this.width},this.dim).height)},events:["load","resize"]}})},Ve=function(t){t.component("scroll",{props:{duration:Number,easing:String,offset:Number},defaults:{duration:1e3,easing:"easeOutExpo",offset:0},methods:{scrollToElement:function(t){var e=this,i=ht(St(t))-this.offset,n=v(),s=window.innerHeight;i+s>n&&(i=n-s),St("html,body").stop().animate({scrollTop:Math.round(i)},this.duration,this.easing).promise().then(function(){return e.$el.trigger("scrolled",[e])})}},events:{click:function(t){t.isDefaultPrevented()||(t.preventDefault(),this.scrollToElement(St(this.$el[0].hash).length?this.$el[0].hash:"body"))}}}),St.easing.easeOutExpo=St.easing.easeOutExpo||function(t,e,i,n,s){return e===s?i+n:n*(1-Math.pow(2,-10*e/s))+i}},Ue=function(t){t.component("scrollspy",{args:"cls",props:{cls:"list",target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},defaults:{cls:["uk-scrollspy-inview"],target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"},computed:{elements:function(){return this.target&&St(this.target,this.$el)||this.$el}},update:[{write:function(){this.hidden&&this.elements.filter(":not(."+this.inViewClass+")").css("visibility","hidden")}},{read:function(){var t=this;this.elements.each(function(e,i){if(!i._scrollspy){var n=St(i).attr("uk-scrollspy-class");i._scrollspy={toggles:n&&n.split(",")||t.cls}}i._scrollspy.show=g(i,t.offsetTop,t.offsetLeft)})},write:function(){var t=this,e=1===this.elements.length?1:0;this.elements.each(function(i,n){var s=St(n),o=n._scrollspy,r=o.toggles[i]||o.toggles[0];if(o.show){if(!o.inview&&!o.timer){var a=function(){s.css("visibility","").addClass(t.inViewClass).toggleClass(r).trigger("inview"),t.$update(),o.inview=!0,delete o.timer};t.delay&&e?o.timer=setTimeout(a,t.delay*e):a(),e++}}else o.inview&&t.repeat&&(o.timer&&(clearTimeout(o.timer),delete o.timer),s.removeClass(t.inViewClass).toggleClass(r).css("visibility",t.hidden?"hidden":"").trigger("outview"),t.$update(),o.inview=!1)})},events:["scroll","load","resize"]}]})},Xe=function(t){t.component("scrollspy-nav",{props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},defaults:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(){return this.$el.find('a[href^="#"]').filter(function(t,e){return e.hash})},elements:function(){return this.closest?this.links.closest(this.closest):this.links},targets:function(){return St(this.links.toArray().map(function(t){return t.hash}).join(","))}},update:[{read:function(){this.scroll&&t.scroll(this.links,{offset:this.offset||0})}},{read:function(){var t=this,e=window.pageYOffset+this.offset,i=v()-window.innerHeight+this.offset;this.active=!1,this.targets.each(function(n,s){var o=ht(s=St(s)),r=n+1===t.targets.length;if(!t.overflow&&(0===n&&o>e||r&&o+s[0].offsetTop=i)for(var a=t.targets.length-1;a>n;a--)if(g(t.targets.eq(a))){s=t.targets.eq(a);break}return!(t.active=j(t.links.filter('[href="#'+s.attr("id")+'"]')))}})},write:function(){this.links.blur(),this.elements.removeClass(this.cls),this.active&&this.$el.trigger("active",[this.active,(this.closest?this.active.closest(this.closest):this.active).addClass(this.cls)])},events:["scroll","load","resize"]}]})},Qe=function(e){e.component("sticky",{mixins:[Ce],attrs:!0,props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,widthElement:"jQuery",showOnUp:Boolean,media:"media",target:Number},defaults:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",widthElement:!1,showOnUp:!1,media:!1,target:!1},connected:function(){this.placeholder=St('
    '),this.widthElement=this.$props.widthElement||this.placeholder,this.isActive||this.$addClass(this.clsInactive)},disconnected:function(){this.isActive&&(this.isActive=!1,this.hide(),this.$removeClass(this.clsInactive)),this.placeholder.remove(),this.placeholder=null,this.widthElement=null},ready:function(){var t=this;if(this.target&&location.hash&&window.pageYOffset>0){var e=y(location.hash);e&&Vt(function(){var i=ht(e),n=ht(t.$el),s=t.$el[0].offsetHeight;n+s>=i&&n<=i+e[0].offsetHeight&&window.scrollTo(0,i-s-t.target-t.offset)})}},update:[{write:function(){var e,i=this,n=(this.isActive?this.placeholder:this.$el)[0].offsetHeight;this.placeholder.css("height","absolute"!==this.$el.css("position")?n:"").css(this.$el.css(["marginTop","marginBottom","marginLeft","marginRight"])),document.documentElement.contains(this.placeholder[0])||this.placeholder.insertAfter(this.$el).attr("hidden",!0),this.width=this.widthElement.attr("hidden",null)[0].offsetWidth,this.widthElement.attr("hidden",!this.isActive),this.topOffset=ht(this.isActive?this.placeholder:this.$el),this.bottomOffset=this.topOffset+n,["top","bottom"].forEach(function(n){i[n]=i.$props[n],i[n]&&(t.isNumeric(i[n])?i[n]=i[n+"Offset"]+parseFloat(i[n]):N(i[n])&&i[n].match(/^-?\d+vh$/)?i[n]=window.innerHeight*parseFloat(i[n])/100:(e=!0===i[n]?i.$el.parent():y(i[n],i.$el))&&(i[n]=ht(e)+e[0].offsetHeight))}),this.top=Math.max(parseFloat(this.top),this.topOffset)-this.offset,this.bottom=this.bottom&&this.bottom-n,this.inactive=this.media&&!window.matchMedia(this.media).matches,this.isActive&&this.update()},events:["load","resize"]},{read:function(){this.offsetTop=ht(this.$el),this.scroll=window.pageYOffset,this.visible=this.$el.is(":visible")},write:function(t){var e=this;void 0===t&&(t={});var i=t.dir,n=this.scroll;if(!(n<0||!this.visible||this.disabled||this.showOnUp&&!i))if(this.inactive||nthis.topOffset?Pt.cancel(this.$el).then(function(){return Pt.out(e.$el,e.animation).then(function(){return e.hide()})}):this.hide()}else this.isActive?this.update():this.animation?Pt.cancel(this.$el).then(function(){e.show(),Pt.in(e.$el,e.animation)}):this.show()},events:["scroll"]}],methods:{show:function(){this.isActive=!0,this.update(),this.$el.trigger("active"),this.placeholder.attr("hidden",null)},hide:function(){this.$addClass(this.clsInactive),this.$removeClass(this.clsFixed,this.clsActive,this.clsBelow),this.$el.css({position:"",top:"",width:""}).trigger("inactive"),this.placeholder.attr("hidden",!0)},update:function(){var t=Math.max(0,this.offset),e=this.scroll>this.top;this.bottom&&this.scroll>this.bottom-this.offset&&(t=this.bottom-this.scroll),this.$el.css({position:"fixed",top:t+"px",width:this.width}),this.$addClass(this.clsFixed),this.$toggleClass(this.clsActive,e),this.$toggleClass(this.clsInactive,!e),this.$toggleClass(this.clsBelow,this.scroll>this.bottomOffset)}}})},Je={},Ge=new DOMParser,Ze=function(e){e.component("svg",{attrs:!0,props:{id:String,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String},defaults:{ratio:1,id:!1,exclude:["src"],class:""},init:function(){this.class+=" uk-svg"},connected:function(){var t=this;if(!this.icon&&this.src&&~this.src.indexOf("#")){var e=this.src.split("#");e.length>1&&(this.src=e[0],this.icon=e[1])}this.width=this.$props.width,this.height=this.$props.height,this.svg=this.getSvg().then(function(e){return C(function(i,n){return oe.mutate(function(){var s,o;if(e){if(t.icon)if(s=e.getElementById(t.icon)){var r=s.outerHTML;if(!r){var a=document.createElement("div");a.appendChild(s.cloneNode(!0)),r=a.innerHTML}r=r.replace(//g,"svg>"),o=Ge.parseFromString(r,"image/svg+xml").documentElement}else e.querySelector("symbol")||(o=e.documentElement.cloneNode(!0));else o=e.documentElement.cloneNode(!0);if(o){var l=o.getAttribute("viewBox");l&&(l=l.split(" "),t.width=t.width||l[2],t.height=t.height||l[3]),t.width*=t.ratio,t.height*=t.ratio;for(var h in t.$options.props)t[h]&&!~t.exclude.indexOf(h)&&o.setAttribute(h,t[h]);t.id||o.removeAttribute("id"),t.width&&!t.height&&o.removeAttribute("height"),t.height&&!t.width&&o.removeAttribute("width");var c=t.$el[0];b(c)||"CANVAS"===c.tagName?(t.$el.attr({hidden:!0,id:null}),c.nextSibling?c.parentNode.insertBefore(o,c.nextSibling):c.parentNode.appendChild(o)):c.appendChild(o),i(o)}else n("SVG not found.")}else n("SVG not found.")})})}).then(null,X)},disconnected:function(){b(this.$el)&&this.$el.attr({hidden:null,id:this.id||null}),this.svg&&(this.svg.then(function(t){return t&&t.parentNode&&t.parentNode.removeChild(t)}),this.svg=null)},methods:{getSvg:function(){var e=this;return this.src?Je[this.src]?Je[this.src]:(Je[this.src]=C(function(i,n){0===e.src.lastIndexOf("data:",0)?i(e.parse(decodeURIComponent(e.src.split(",")[1]))):t.ajax(e.src,{dataType:"html"}).then(function(t){i(e.parse(t))},function(){n("SVG not found.")})}),Je[this.src]):C.reject()},parse:function(t){var e=Ge.parseFromString(t,"image/svg+xml");return e.documentElement&&"svg"===e.documentElement.nodeName?e:null}}})},Ke=function(t){t.component("switcher",{mixins:[_e],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},defaults:{connect:!1,toggle:" > *",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(){return y(this.connect,this.$el)||St(this.$el.next("."+this.clsContainer))},toggles:function(){return St(this.toggle,this.$el)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(t.currentTarget)}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(St(t.currentTarget)[t.currentTarget.hasAttribute(this.attrItem)?"attr":"data"](this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(t){vt(t)&&(t.preventDefault(),window.getSelection().toString()||this.show("swipeLeft"===t.type?"next":"previous"))}}],update:function(){this.updateAria(this.connects.children()),this.show(j(this.toggles.filter("."+this.cls+":first"))||j(this.toggles.eq(this.active))||this.toggles.first())},methods:{show:function(t){for(var e,i=this,n=this.toggles.length,s=this.connects.children("."+this.cls).index(),o=s>=0,r=w(t,this.toggles,s),a="previous"===t?-1:1,l=0;l=0&&e.hasClass(this.cls)||s===r||(this.toggles.removeClass(this.cls).attr("aria-expanded",!1),e.addClass(this.cls).attr("aria-expanded",!0),o?this.toggleElement(this.connects.children(":nth-child("+(s+1)+"),:nth-child("+(r+1)+")")):this.toggleNow(this.connects.children(":nth-child("+(r+1)+")")))}}})},ti=function(t){t.component("tab",t.components.switcher.extend({mixins:[Ce],name:"tab",props:{media:"media"},defaults:{media:960,attrItem:"uk-tab-item"},init:function(){var e=this.$hasClass("uk-tab-left")&&"uk-tab-left"||this.$hasClass("uk-tab-right")&&"uk-tab-right";e&&t.toggle(this.$el,{cls:e,mode:"media",media:this.media})}}))},ei=function(t){t.component("toggle",{mixins:[t.mixin.togglable],args:"target",props:{href:String,target:null,mode:"list",media:"media"},defaults:{href:!1,target:!1,mode:"click",queued:!0,media:!1},computed:{target:function(){return y(this.$props.target||this.href,this.$el)||this.$el}},events:[{name:te+" "+ee,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){vt(t)||this.toggle("toggle"+(t.type===te?"show":"hide"))}},{name:"click",filter:function(){return~this.mode.indexOf("click")||Jt},handler:function(t){if(vt(t)||~this.mode.indexOf("click")){var e=St(t.target).closest("a[href]");(St(t.target).closest('a[href="#"], button').length||e.length&&(this.cls||!this.target.is(":visible")||"#"===e.attr("href")[0]&&this.target.is(e.attr("href"))))&&t.preventDefault(),this.toggle()}}}],update:{write:function(){if(~this.mode.indexOf("media")&&this.media){var t=this.isToggled(this.target);(window.matchMedia(this.media).matches?!t:t)&&this.toggle()}},events:["load","resize"]},methods:{toggle:function(t){a(this.target,t||"toggle",[this],!0).isDefaultPrevented()||this.toggleElement(this.target)}}})},ii=function(t){t.component("leader",{mixins:[Ce],props:{fill:String,media:"media"},defaults:{fill:"",media:!1,clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(){return this.$props.fill||J("leader-fill")}},connected:function(){this.wrapper=this.$el.wrapInner('').children().first()},disconnected:function(){this.wrapper.contents().unwrap()},update:[{read:function(){var t=this._width;this._width=Math.floor(this.$el[0].offsetWidth/2),this._changed=t!==this._width,this._hide=this.media&&!window.matchMedia(this.media).matches},write:function(){this.wrapper.toggleClass(this.clsHide,this._hide),this._changed&&this.wrapper.attr(this.attrFill,new Array(this._width).join(this.fill))},events:["load","resize"]}]})},ni=function(t){t.component("video",{props:{automute:Boolean,autoplay:Boolean},defaults:{automute:!1,autoplay:!0},computed:{el:function(){return this.$el[0]}},ready:function(){this.player=new he(this.el),this.automute&&this.player.mute()},update:{write:function(){this.player&&this.autoplay&&(0===this.el.offsetHeight||"hidden"===this.$el.css("visibility")?this.player.pause():this.player.play())},events:["load"]}})};return $e.version="3.0.0-beta.27",function(t){t.mixin.class=Ce,t.mixin.modal=Te,t.mixin.position=Ae,t.mixin.togglable=_e}($e),function(t){var e=0,i=0;n(window,"load resize",t.update),n(window,"scroll",function(i){i.dir=e