").parent().attr("hidden",l),i.toggleNow(r,!0),i.toggleElement(r.parent(),l,e).then(function(){s.hasClass(i.clsOpen)===l&&(l||i.toggleNow(r,!1),r.unwrap())}))})}}})}function st(t){t.component("alert",{mixins:[ge,be],props:{animation:Boolean,close:String},defaults:{animation:!0,close:".uk-alert-close",duration:150},ready:function(){var t=this;this.$el.on("click",this.close,function(e){e.preventDefault(),t.closeAlert()})},methods:{closeAlert:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)}),requestAnimationFrame(function(){return t.$el.css("opacity",0)})}}})}function rt(t){t.component("cover",{props:{automute:Boolean,width:Number,height:Number},defaults:{automute:!0},ready:function(){if(this.$el.is("iframe")&&this.automute){var t=this.$el.attr("src");this.$el.attr("src","").on("load",function(){this.contentWindow.postMessage('{"event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[t,~t.indexOf("?")?"&":"?","enablejsapi=1&api=1"].join(""))}},update:{write:function(){0!==this.$el[0].offsetHeight&&this.$el.css({width:"",height:""}).css(Ut.cover({width:this.width||this.$el.width(),height:this.height||this.$el.height()},{width:this.$el.parent().width(),height:this.$el.parent().height()}))},events:["load","resize","orientationchange"]}})}function at(t){var e;Nt.on("click",function(t){!e||a(t.target,e.$el)||e.toggle&&a(t.target,e.toggle.$el)||e.hide(!1)}),t.component("drop",{mixins:[ye,ke,be],props:{mode:String,toggle:Boolean,boundary:"jQuery",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:"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.clsDrop=this.clsDrop||"uk-"+this.$options.name,this.clsPos=this.clsDrop,this.$el.addClass(this.clsDrop)},ready:function(){var e=this;this.updateAria(this.$el),this.$el.on("click","."+this.clsDrop+"-close",function(t){t.preventDefault(),e.hide(!1)}),this.toggle&&(this.toggle=p(this.toggle,this.$el),this.toggle&&(this.toggle=t.toggle(this.toggle,{target:this.$el,mode:this.mode})[0]))},update:{write:function(){if(this.$el.hasClass(this.cls)){h(this.$el,this.clsDrop+"-(stack|boundary)").css({top:"",left:""}),this.$el.toggleClass(this.clsDrop+"-boundary",this.boundaryAlign),this.dir=this.pos[0],this.align=this.pos[1];var t=L(this.boundary),e=this.boundaryAlign?t:L(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.$el.addClass(this.clsDrop+"-stack"),this.$el.trigger("stack",[this]));this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary)}},events:["resize","orientationchange"]},events:{toggle:function(t,e){t.preventDefault(),this.isToggled(this.$el)?this.hide(!1):this.show(e,!1)},"toggleShow mouseenter":function(t,e){t.preventDefault(),this.show(e||this.toggle)},"toggleHide mouseleave":function(t){t.preventDefault(),this.toggle&&"hover"===this.toggle.mode&&this.hide()}},methods:{show:function t(i,n){var o=this;if(void 0===n&&(n=!0),i&&this.toggle&&!this.toggle.$el.is(i.$el)&&this.hide(!1),this.toggle=i||this.toggle,this.clearTimers(),!this.isActive()){if(n&&e&&e!==this&&e.isDelaying)return void(this.showTimer=setTimeout(this.show,75));e&&e.hide(!1);var t=function(){"rejected"!==o.toggleElement(o.$el,!0).state()&&(o.initMouseTracker(),o.toggle.$el.addClass(o.cls).attr("aria-expanded","true"),o.clearTimers())};n&&this.delayShow?this.showTimer=setTimeout(t,this.delayShow):t(),e=this}},hide:function t(i){var n=this;void 0===i&&(i=!0),this.clearTimers();var t=function(){"rejected"!==n.toggleElement(n.$el,!1,!1).state()&&(e=n.isActive()?null:e,n.toggle.$el.removeClass(n.cls).attr("aria-expanded","false").blur().find("a, button").blur(),n.cancelMouseTracker(),n.clearTimers())};this.isDelaying=this.movesTo(this.$el),i&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):i&&this.delayHide?this.hideTimer=setTimeout(t,this.delayHide):t()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},isActive:function(){return e===this}}}),t.drop.getActive=function(){return e}}function lt(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function ht(t){t.component("form-custom",{mixins:[ge],props:{target:Boolean},defaults:{target:!1},ready:function(){this.input=this.$el.find(":input:first"),this.target=this.target&&p(this.target===!0?"> :input:first + :first":this.target,this.$el);var t=this.input.next();this.input.on({focus:function(e){return t.addClass("uk-focus")},blur:function(e){return t.removeClass("uk-focus")},mouseenter:function(e){return t.addClass("uk-hover")},mouseleave:function(e){return t.removeClass("uk-hover")}}),this.input.trigger("change")},events:{change: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())}}})}function ct(t){t.component("gif",{update:{read:function(){var t=u(this.$el);!this.isInView&&t&&(this.$el[0].src=this.$el[0].src),this.isInView=t},events:["scroll","load","resize","orientationchange"]}})}function ut(t){t.component("grid",t.components.margin.extend({mixins:[ge],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(){this.$el.toggleClass(this.clsStack,this.stacks)},events:["load","resize","orientationchange"]}}))}function dt(t){t.component("height-match",{props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},update:{write:function(){var t=this,e=N(this.target,this.$el).css("min-height","");if(!this.row)return this.match(e),this;var i=!1,n=[];e.each(function(e,o){o=_t(o);var s=o.offset().top;s!=i&&n.length&&(t.match(_t(n)),n=[],s=o.offset().top),n.push(o),i=s}),n.length&&this.match(_t(n))},events:["resize","orientationchange"]},methods:{match:function(t){if(!(t.length<2)){var e=0;t.each(function(t,i){i=_t(i);var n;if("none"===i.css("display")){var o=i.attr("style");i.attr("style",o+";display:block !important;"),n=i.outerHeight(),i.attr("style",o||"")}else n=i.outerHeight();e=Math.max(e,n)}).each(function(t,i){i=_t(i),i.css("min-height",e-(i.outerHeight()-parseFloat(i.css("height")))+"px")})}}}})}function ft(t){t.component("height-viewport",{props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean},defaults:{expand:!1,offsetTop:!1,offsetBottom:!1},init:function(){this._callUpdate()},update:{write:function(){var t,e=window.innerHeight,i=0;if(this.expand){this.$el.css({height:"",minHeight:""});var n=e-document.documentElement.offsetHeight;n>0&&this.$el.css("min-height",t=this.$el.outerHeight()+n)}else{var o=this.$el[0].offsetTop;o
=this.$el.outerHeight()&&this.$el.css("height",t)},events:["load","resize","orientationchange"]}})}function pt(t){i(function(){if(Ft){var e="uk-hover";Nt.on("tap",function(t){var i=t.target;return _t("."+e).filter(function(t,e){return!a(i,e)}).removeClass(e)}),Object.defineProperty(t,"hoverSelector",{set:function(t){Nt.on("tap",t,function(){this.classList.add(e)})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function gt(t){t.component("icon",t.components.svg.extend({mixins:[ge],name:"icon",props:["icon"],defaults:{exclude:["id","style","class","src"]},init:function(){this.$el.addClass("uk-icon")}})),["close","navbar-toggle-icon","overlay-icon","pagination-previous","pagination-next","slidenav","search-icon","totop"].forEach(function(e){return t.component(e,t.components.icon.extend({name:e}))})}function mt(t){t.component("margin",{props:{margin:String,firstColumn:Boolean},defaults:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},connected:function(){this._callUpdate()},update:{read:function(){var t=this;if(0===this.$el[0].offsetHeight)return void(this.hidden=!0);this.hidden=!1,this.stacks=!0;var e=this.$el.children().filter(function(t,e){return e.offsetHeight>0});this.rows=[[e.get(0)]],e.slice(1).each(function(e,i){for(var n=Math.ceil(i.offsetTop),o=n+i.offsetHeight,s=t.rows.length-1;s>=0;s--){var r=t.rows[s],a=Math.ceil(r[0].offsetTop);if(n>=a+r[0].offsetHeight){t.rows.push([i]);break}if(o>a){if(t.stacks=!1,i.offsetLeftthis.panel.outerHeight(!0)).css("display",this.$el.hasClass("uk-flex")?"":"block")},events:["resize","orientationchange"]},events:{beforeshow:function(t){this.$el.is(t.target)&&(this.page.addClass(this.clsPage),this.$el.css("display","block"),this.$el.height())},hide:function(t){this.$el.is(t.target)&&(this.getActive()||this.page.removeClass(this.clsPage),this.$el.css("display","").removeClass("uk-flex uk-flex-center uk-flex-middle"))}}}),e.component("overflow-auto",{mixins:[ge],ready:function(){this.panel=p("!.uk-modal-dialog",this.$el),this.$el.css("min-height",150),new qt(this._callUpdate.bind(this)).observe(this.panel[0],{childList:!0,subtree:!0})},update:{write:function(){var t=this.$el.css("max-height");this.$el.css("max-height",150).css("max-height",Math.max(150,150-(this.panel.outerHeight(!0)-window.innerHeight))),t!==this.$el.css("max-height")&&this.$el.trigger("resize")},events:["load","resize","orientationchange"]}}),e.modal.dialog=function(t,i){var n=e.modal(_t('"),i)[0];return n.show(),n.$el.on("hide",function(){return n.$destroy(!0)}),n},e.modal.alert=function(i,n){n=t.extend({bgClose:!1,escClose:!1,labels:e.modal.labels},n);var o=_t.Deferred();return e.modal.dialog('\n '+(I(i)?i:_t(i).html())+'
\n \n ",n).$el.on("hide",function(){return o.resolve()}),o.promise()},e.modal.confirm=function(i,n){n=t.extend({bgClose:!1,escClose:!1,labels:e.modal.labels},n);var o=_t.Deferred();return e.modal.dialog('\n '+(I(i)?i:_t(i).html())+'
\n \n ",n).$el.on("click",".uk-modal-footer button",function(t){return o[0===_t(t.target).index()?"reject":"resolve"]()}),o.promise()},e.modal.prompt=function(i,n,o){o=t.extend({bgClose:!1,escClose:!1,labels:e.modal.labels},o);var s=_t.Deferred(),r=e.modal.dialog('\n \n ",o),a=r.$el.find("input").val(n);return r.$el.on("submit","form",function(t){t.preventDefault(),s.resolve(a.val()),r.hide()}).on("hide",function(){"pending"===s.state()&&s.resolve(null)}),s.promise()},e.modal.labels={ok:"Ok",cancel:"Cancel"}}function bt(t){t.component("nav",t.components.accordion.extend({name:"nav",defaults:{targets:"> .uk-parent",toggle:"> a",content:"ul:first"}}))}function wt(e){e.component("navbar",{mixins:[ge],props:{dropdown:String,mode:String,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",mode:"hover",align:"left",offset:!1,boundary:!0,boundaryAlign:!1,clsDrop:"uk-navbar-dropdown",delayShow:0,delayHide:800,flip:"x",dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200},ready:function(){var i,n=this;this.boundary=this.boundary===!0||this.boundaryAlign?this.$el:this.boundary,this.pos="bottom-"+this.align,_t(this.dropdown,this.$el).each(function(o,s){i=N("."+n.clsDrop,s),!i||e.getComponent(i,"drop")||e.getComponent(i,"dropdown")||e.drop(i,t.extend({},n))}).on("mouseenter",function(t){var e=t.target,i=n.getActive();!i||a(e,i.toggle.$el)||i.isDelaying||i.hide(!1)}),this.dropbar&&(this.dropbar=p(this.dropbar,this.$el)||_t('
').insertAfter(this.dropbarAnchor||this.$el),"slide"===this.dropbarMode&&this.dropbar.addClass("uk-navbar-dropbar-slide"),this.dropbar.on({mouseleave:function(){var t=n.getActive();t&&!n.dropbar.is(":hover")&&t.hide()},beforeshow:function(t,e){var i=e.$el;i.addClass(n.clsDrop+"-dropbar"),n.transitionTo(i.outerHeight(!0))},beforehide:function(t,e){var i=e.$el,o=n.getActive();if(n.dropbar.is(":hover")&&o&&o.$el.is(i))return!1},hide:function(t,e){var i=e.$el,o=n.getActive();(!o||o&&o.$el.is(i))&&n.transitionTo(0)}}))},events:{beforeshow:function(t,e){var i=e.$el,n=e.dir;this.dropbar&&"bottom"===n&&!a(i,this.dropbar)&&(i.appendTo(this.dropbar),this.dropbar.trigger("beforeshow",[{$el:i}]))}},methods:{getActive:function(){var t=e.drop.getActive();return t&&"click"!==t.mode&&a(t.toggle.$el,this.$el)&&t},transitionTo:function(t){return this.dropbar.height(this.dropbar[0].offsetHeight?this.dropbar.height():0),Mt.cancel(this.dropbar).start(this.dropbar,{height:t},this.duration)}}})}function yt(t){t.component("offcanvas",{mixins:[we],props:{mode:String,flip:Boolean,overlay:Boolean},defaults:{mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsPanel:"uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsPageAnimation:"uk-offcanvas-page-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",clsPageOverlay:"uk-offcanvas-page-overlay",selClose:".uk-offcanvas-close"},ready:function(){this.clsFlip=this.flip?this.clsFlip:"",this.clsOverlay=this.overlay?this.clsOverlay:"",this.clsPageOverlay=this.overlay?this.clsPageOverlay:"",this.clsMode=this.clsMode+"-"+this.mode,"none"!==this.mode&&"reveal"!==this.mode||(this.clsSidebarAnimation=""),"push"!==this.mode&&"reveal"!==this.mode&&(this.clsPageAnimation="")},update:{write:function(){this.isActive()&&this.page.width(window.innerWidth-this.getScrollbarWidth())},events:["resize","orientationchange"]},events:{beforeshow:function(t){this.$el.is(t.target)&&(this.page.addClass(this.clsPage+" "+this.clsFlip+" "+this.clsPageAnimation+" "+this.clsPageOverlay),this.panel.addClass(this.clsSidebarAnimation+" "+this.clsMode),this.$el.addClass(this.clsOverlay).css("display","block").height())},beforehide:function(t){this.$el.is(t.target)&&(this.page.removeClass(this.clsPageAnimation).css("margin-left",""),("none"===this.mode||this.getActive()&&this.getActive()!==this)&&this.panel.trigger(Vt))},hide:function(t){this.$el.is(t.target)&&(this.page.removeClass(this.clsPage+" "+this.clsFlip+" "+this.clsPageOverlay).width(""),this.panel.removeClass(this.clsSidebarAnimation+" "+this.clsMode),this.$el.removeClass(this.clsOverlay).css("display",""))}}})}function kt(t){t.component("responsive",{props:["width","height"],update:{write:function(){this.$el.is(":visible")&&this.width&&this.height&&this.$el.height(Ut.fit({height:this.height,width:this.width},{width:this.$el.parent().width(),height:this.height||this.$el.height()}).height)},events:["load","resize","orientationchange"]}})}function $t(t){t.component("scroll",{props:{duration:Number,transition:String,offset:Number},defaults:{duration:1e3,transition:"easeOutExpo",offset:0},methods:{scrollToElement:function(t){var e=this;t=_t(t);var i=t.offset().top-this.offset,n=Nt.height(),o=window.innerHeight;i+o>n&&(i=n-o),_t("html,body").stop().animate({scrollTop:parseInt(i,10)||1},this.duration,this.transition).promise().then(function(){return e.$el.triggerHandler(_t.Event("scrolled"),[e])})}},events:{click:function(t){t.preventDefault(),this.scrollToElement(_t(this.$el[0].hash).length?this.$el[0].hash:"body")}}}),_t.easing.easeOutExpo||(_t.easing.easeOutExpo=function(t,e,i,n,o){return e==o?i+n:n*(-Math.pow(2,-10*e/o)+1)+i})}function xt(t){t.component("scrollspy",{props:{cls:String,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"},init:function(){this.hidden&&this.getElements().css("visibility","hidden")},ready:function(){this.elements=this.getElements(),this.hidden&&this.elements.css("visibility","hidden")},update:{read:function(){var t=this;this.elements.each(function(e,i){i.__uk_scrollspy||(i.__uk_scrollspy={toggles:(_t(i).attr("uk-scrollspy-class")||t.cls).split(",")}),i.__uk_scrollspy.show=u(i,t.offsetTop,t.offsetLeft)})},write:function(){var t=this,e=1===this.elements.length?1:0;this.elements.each(function(i,n){var o=_t(n),s=n.__uk_scrollspy;
+s.show?s.inview||s.timer||(s.timer=setTimeout(function(){o.css("visibility","").addClass(t.inViewClass).toggleClass(s.toggles[0]).trigger("inview"),s.inview=!0,delete s.timer},t.delay*e++)):s.inview&&t.repeat&&(s.timer&&(clearTimeout(s.timer),delete s.timer),o.removeClass(t.inViewClass).toggleClass(s.toggles[0]).css("visibility",t.hidden?"hidden":"").trigger("outview"),s.inview=!1),s.toggles.reverse()})},events:["scroll","load","resize","orientationchange"]},methods:{getElements:function(){return this.target&&N(this.target,this.$el)||this.$el}}})}function Tt(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},ready:function(){if(this.links=this.$el.find('a[href^="#"]').filter(function(t,e){return e.hash}),this.elements=this.closest?this.links.closest(this.closest):this.links,this.targets=_t(_t.map(this.links,function(t){return t.hash}).join(",")),this.scroll){var e=this.offset||0;this.links.each(function(){t.scroll(this,{offset:e})})}},update:{write:function(){var t=this,e=Pt.scrollTop()+this.offset,i=document.documentElement.scrollHeight-window.innerHeight+this.offset;this.links.blur(),this.elements.removeClass(this.cls),this.targets.each(function(n,o){o=_t(o);var s=o.offset(),r=n+1===t.targets.length;if(!t.overflow&&(0===n&&s.top>e||r&&s.top+o.outerHeight()=i)for(var a=t.targets.length;a>n;a--)if(u(t.targets.eq(a))){o=t.targets.eq(a);break}var l=t.links.filter('[href="#'+o.attr("id")+'"]');return l.length?(l=(t.closest?l.closest(t.closest):l).addClass(t.cls),t.$el.trigger("active",[o,l]),!1):void 0}})},events:["scroll","load","resize","orientationchange"]}})}function Ct(t){t.component("spinner",t.components.icon.extend({name:"spinner",init:function(){this.height=this.width=this.$el.width()},ready:function(){var t=this;this.svg.then(function(e){var i=e.find("circle"),n=Math.floor(t.width/2);e[0].setAttribute("viewBox","0 0 "+t.width+" "+t.width),i.attr({cx:n,cy:n,r:n-parseInt(i.css("stroke-width"),10)})})}}))}function St(e){e.component("sticky",{props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,widthElement:"jQuery",showOnUp:Boolean,media:"media",target:Number},defaults:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",widthElement:!1,showOnUp:!1,media:!1,target:!1},connected:function(){this.placeholder=_t('
').insertAfter(this.$el).attr("hidden",!0),this._widthElement=this.widthElement||this.placeholder},disconnected:function(){this.placeholder.remove(),this.placeholder=null,this._widthElement=null},ready:function(){var t=this;if(this.topProp=this.top,this.bottomProp=this.bottom,this.target&&location.hash&&Pt.scrollTop()>0){var e=p(location.hash);e&&Lt(function(){var i=e.offset().top,n=t.$el.offset().top,o=t.$el.outerHeight(),s=n+o;s>=i&&n<=i+e.outerHeight()&&window.scrollTo(0,i-o-t.target-t.offset)})}},update:[{write:function(e){var i,n=this,o=e.type,s=this.$el.hasClass(this.clsActive)&&!this.$el.hasClass("uk-animation-leave"),r=this.$el.outerHeight();this.placeholder.css("height","absolute"!==this.$el.css("position")?r:"").css(this.$el.css(["marginTop","marginBottom","marginLeft","marginRight"])),this.topOffset=(s?this.placeholder.offset():this.$el.offset()).top,this.bottomOffset=this.topOffset+r,["top","bottom"].forEach(function(e){n[e]=n[e+"Prop"],n[e]&&(t.isNumeric(n[e])?n[e]=n[e+"Offset"]+parseFloat(n[e]):I(n[e])&&n[e].match(/^-?\d+vh$/)?n[e]=window.innerHeight*parseFloat(n[e])/100:(i=n[e]===!0?n.$el.parent():p(n[e],n.$el),i&&(n[e]=i.offset().top+i.outerHeight())))}),this.top=Math.max(parseFloat(this.top),this.topOffset)-this.offset,this.bottom=this.bottom&&this.bottom-r,this.inactive=this.media&&!window.matchMedia(this.media).matches,"update"!==o&&this._callUpdate("scroll")},events:["load","resize","orientationchange"]},{write:function(t){var e=this,i=t.dir,n=this.$el.hasClass(this.clsActive)&&!this.$el.hasClass("uk-animation-leave"),o=Pt.scrollTop();if(!(o<0||!this.$el.is(":visible")||this.disabled))if(this.inactive||othis.bottom-this.offset&&(t=this.bottom-e),this.$el.css({position:"fixed",top:t+"px",width:this._widthElement[0].getBoundingClientRect().width})}}})}function Et(t){function e(t){var e=i(t);if(!e){if(t=t.clone().empty().attr("uk-no-boot","").appendTo(document.body).show(),t.is(":visible")||(e=i(t)),!e&&"CANVAS"===t[0].tagName){var n=_t(t[0].outerHTML.replace(/canvas/g,"span")).insertAfter(t);e=i(n),n.remove()}t.remove()}return e&&e.slice(4,-1).replace(/"/g,"")}function i(t){var e=m(t[0],"backgroundImage","::before");return"none"!==e&&e}t.component("svg",{props:{id:String,icon:String,src:String,class:String,style:String,width:Number,height:Number,ratio:Number},defaults:{ratio:1,id:!1,class:"",exclude:["src"]},connected:function(){this.svg=_t.Deferred()},update:{read:function(){var t=this;if(this.src||(this.src=e(this.$el)),this.src&&!this.isSet){if(this.isSet=!0,!this.icon&&~this.src.indexOf("#")){var i=this.src.split("#");i.length>1&&(this.src=i[0],this.icon=i[1])}this.get(this.src).then(function(e){return Gt.mutate(function(){var i;if(i=t.icon?(i=N("#"+t.icon,e))&&N((i[0].outerHTML||_t("").append(i.clone()).html()).replace(/symbol/g,"svg"))||!N("symbol",e)&&e.clone():e.clone(),!i||!i.length)return _t.Deferred().reject("SVG not found.");var n=i[0].getAttribute("viewBox");n&&(n=n.split(" "),t.width=t.width||n[2],t.height=t.height||n[3]),t.width*=t.ratio,t.height*=t.ratio;for(var o in t.$options.props)t[o]&&!~t.exclude.indexOf(o)&&i.attr(o,t[o]);t.id||i.removeAttr("id"),t.width&&!t.height&&i.removeAttr("height"),t.height&&!t.width&&i.removeAttr("width"),f(t.$el)||"CANVAS"===t.$el[0].tagName?(t.$el.attr({hidden:!0,id:null}),i.insertAfter(t.$el)):i.appendTo(t.$el),t.svg.resolve(i)})})}},events:["load"]},methods:{get:function(e){function i(t){return _t(t).filter("svg")}if(xe[e])return xe[e];if(xe[e]=_t.Deferred(),0===e.lastIndexOf("data:",0))xe[e].resolve(i(decodeURIComponent(e.split(",")[1])));else{var n="uikit_"+t.version+"_"+e;$e[n]?xe[e].resolve(i($e[n])):_t.get(e).then(function(t,o,s){$e[n]=s.responseText,xe[e].resolve(i($e[n]))})}return xe[e]}},destroy:function(){f(this.$el)&&this.$el.attr({hidden:null,id:this.id||null}),this.svg&&this.svg.then(function(t){return t.remove()})}})}function At(t){t.component("switcher",{mixins:[be],props:{connect:"jQuery",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},ready:function(){var t=this;this.toggles=N(this.toggle,this.$el),this.connect||(this.connect=N(this.$el.next("."+this.clsContainer))),this.connect&&this.toggles&&(this.$el.on("click",this.toggle+":not(.uk-disabled)",function(e){e.preventDefault(),t.show(e.currentTarget)}),this.connect.on("click","["+this.attrItem+"]",function(e){e.preventDefault(),t.show(_t(e.currentTarget).attr(t.attrItem))}),this.swiping&&this.connect.on("swipeRight swipeLeft",function(e){e.preventDefault(),window.getSelection().toString()||t.show("swipeLeft"==e.type?"next":"previous")}),this.updateAria(this.connect.children()),this.show(N(this.toggles.filter("."+this.cls+":first"))||N(this.toggles.eq(this.active))||this.toggles.first()))},methods:{show:function(t){for(var e,i=this,n=this.toggles.length,o=this.connect.children("."+this.cls).index(),s=o>=0,r=d(t,this.toggles,o),a="previous"===t?-1:1,l=0;l
=0&&e.hasClass(this.cls)||o===r||(this.toggles.removeClass(this.cls).attr("aria-expanded",!1),e.addClass(this.cls).attr("aria-expanded",!0),s?this.toggleElement(this.connect.children(":nth-child("+(o+1)+"),:nth-child("+(r+1)+")")):this.toggleNow(this.connect.children(":nth-child("+(r+1)+")")))}}})}function Dt(t){t.component("tab",t.components.switcher.extend({mixins:[ge],name:"tab",defaults:{media:960,attrItem:"uk-tab-item"},init:function(){var e=this.$el.hasClass("uk-tab-left")&&"uk-tab-left"||this.$el.hasClass("uk-tab-right")&&"uk-tab-right";e&&t.toggle(this.$el,{cls:e,mode:"media",media:this.media})}}))}function It(t){t.component("toggle",{mixins:[t.mixin.toggable],props:{href:"jQuery",target:"jQuery",mode:String,media:"media"},defaults:{href:!1,target:!1,mode:"click",queued:!0,media:!1},ready:function(){var t=this;this.target=this.target||this.href||this.$el,this.mode=Ft&&"hover"==this.mode?"click":this.mode,"media"!==this.mode&&("hover"===this.mode&&this.$el.on({mouseenter:function(){return t.toggle("toggleShow")},mouseleave:function(){return t.toggle("toggleHide")}}),this.$el.on("click",function(e){(_t(e.target).closest('a[href="#"], button').length||_t(e.target).closest("a[href]")&&(t.cls||!t.target.is(":visible")))&&e.preventDefault(),t.toggle()}))},update:{write:function(){if("media"===this.mode&&this.media){var t=this.isToggled(this.target);(window.matchMedia(this.media).matches?!t:t)&&this.toggle()}},events:["load","resize","orientationchange"]},methods:{toggle:function(t){var e=_t.Event(t||"toggle");this.target.triggerHandler(e,[this]),e.isDefaultPrevented()||this.toggleElement(this.target)}}})}function Ot(t){function e(t){return 0===(m(t,"animationName")||"").lastIndexOf("uk-",0)}var i,o,s,r=null;Pt.on("load",t.update).on("resize orientationchange",function(e){s||(Lt(function(){t.update(e),s=!1}),s=!0)}).on("scroll",function(e){null===r&&(r=window.pageYOffset),i=ri[t]?n.ratio(e,t,i[t]):e}),e},cover:function(e,i){var n=this;return e=this.fit(e,i),t.each(e,function(t){return e=e[t]0||navigator.pointerEnabled&&navigator.maxTouchPoints>0,Wt=Ft?window.PointerEvent?"pointerdown":"touchstart":"mousedown",Yt=Ft?window.PointerEvent?"pointermove":"touchmove":"mousemove",Rt=Ft?window.PointerEvent?"pointerup":"touchend":"mouseup",Vt=function(){var t,e=document.body||document.documentElement,i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}(),Qt=function(){var t,e=document.body||document.documentElement,i={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in i)if(void 0!==e.style[t])return i[t]}(),Xt=Element.prototype.matches?"matches":Element.prototype.msMatchesSelector?"msMatchesSelector":!!Element.prototype.webkitMatchesSelector&&"webkitMatchesSelector";b.prototype={constructor:b,measure:function(t,e){var i=e?t.bind(e):t;return this.reads.push(i),w(this),i},mutate:function(t,e){var i=e?t.bind(e):t;return this.writes.push(i),w(this),i},clear:function(t){return $(this.reads,t)||$(this.writes,t)},extend:function(t){if("object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return x(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var Gt=new b,Jt=Object.prototype.hasOwnProperty,Kt=/-(\w)/g,Zt={"!":"closest","+":"nextAll","-":"prevAll"},te={},ee={};ee.created=ee.init=ee.ready=ee.update=ee.connected=ee.disconnected=ee.destroy=function(e,i){return i?e?e.concat(i):t.isArray(i)?i:[i]:e},ee.events=function(e,i){if(!i)return e;if(!e)return i;var n=t.extend({},e);for(var o in i){var s=n[o],r=i[o];s&&!t.isArray(s)&&(s=[s]),n[o]=s?s.concat(r):[r]}return n},ee.props=function(e,i){if(t.isArray(i)){var n={};i.forEach(function(t){n[t]=String}),i=n}return ee.methods(e,i)},ee.defaults=ee.methods=function(e,i){return i?e?t.extend({},e,i):i:e};var ie,ne,oe,se,re,ae,le=function(t,e){return void 0===e?t:e},he={x:["width","left","right"],y:["height","top","bottom"]},ce={},ue=750;i(function(){var t,e,i,n=0,o=0;"MSGesture"in window&&(re=new MSGesture,re.target=document.body),document.addEventListener("click",function(){return ae=!0},!0),Nt.on("MSGestureEnd gestureend",function(t){var e=t.originalEvent.velocityX>1?"Right":t.originalEvent.velocityX<-1?"Left":t.originalEvent.velocityY>1?"Down":t.originalEvent.velocityY<-1?"Up":null;e&&void 0!==ce.el&&(ce.el.trigger("swipe"),ce.el.trigger("swipe"+e))}).on(Wt,function(n){i=n.originalEvent.touches?n.originalEvent.touches[0]:n,t=Date.now(),e=t-(ce.last||t),ce.el=_t("tagName"in i.target?i.target:i.target.parentNode),ie&&clearTimeout(ie),ce.x1=i.pageX,ce.y1=i.pageY,e>0&&e<=250&&(ce.isDoubleTap=!0),ce.last=t,se=setTimeout(V,ue),!re||"pointerdown"!=n.type&&"touchstart"!=n.type||re.addPointer(n.originalEvent.pointerId),ae=!1}).on(Yt,function(t){i=t.originalEvent.touches?t.originalEvent.touches[0]:t,Q(),ce.x2=i.pageX,ce.y2=i.pageY,n+=Math.abs(ce.x1-ce.x2),o+=Math.abs(ce.y1-ce.y2)}).on(Rt,function(){Q(),ce.x2&&Math.abs(ce.x1-ce.x2)>30||ce.y2&&Math.abs(ce.y1-ce.y2)>30?oe=setTimeout(function(){void 0!==ce.el&&(ce.el.trigger("swipe"),ce.el.trigger("swipe"+R(ce.x1,ce.x2,ce.y1,ce.y2))),ce={}},0):"last"in ce&&(isNaN(n)||n<30&&o<30?ne=setTimeout(function(){var t=_t.Event("tap");t.cancelTouch=X,void 0!==ce.el&&ce.el.trigger(t),ce.isDoubleTap?(void 0!==ce.el&&ce.el.trigger("doubleTap"),ce={}):ie=setTimeout(function(){ie=null,void 0!==ce.el&&(ce.el.trigger("singleTap"),ae||ce.el.trigger("click")),ce={}},300)}):ce={},n=o=0)}).on("touchcancel pointercancel",X),Pt.on("scroll",X)});var de=Object.freeze({win:Pt,doc:Nt,langDirection:Ht,isReady:e,ready:i,on:n,off:o,transition:s,Transition:Mt,animate:r,Animation:Bt,isWithin:a,attrFilter:l,removeClass:h,createEvent:c,isInView:u,getIndex:d,isVoidElement:f,Dimensions:Ut,query:p,Observer:qt,requestAnimationFrame:Lt,cancelAnimationFrame:zt,hasTouch:Ft,pointerDown:Wt,pointerMove:Yt,pointerUp:Rt,transitionend:Vt,animationend:Qt,matches:g,getStyle:m,getCssVar:v,fastdom:Gt,$:_t,bind:T,hasOwn:C,classify:S,hyphenate:E,camelize:A,isString:I,isNumber:O,isContextSelector:_,getContextSelectors:P,toJQuery:N,toBoolean:H,toNumber:M,toMedia:B,coerce:j,ajax:t.ajax,each:t.each,extend:t.extend,map:t.map,merge:t.merge,isArray:t.isArray,isNumeric:t.isNumeric,isFunction:t.isFunction,isPlainObject:t.isPlainObject,mergeOptions:U,position:q,getDimensions:L,flipPosition:Y}),fe=function(t){this._init(t)};fe.util=de,fe.data="__uikit__",fe.prefix="uk-",fe.options={},fe.instances={},fe.elements=[],J(fe),Z(fe),tt(fe),et(fe),G(fe);var pe,ge={init:function(){this.$el.addClass(this.$name)}},me={overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},ve={overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0},be={props:{cls:Boolean,animation:Boolean,duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:!1,duration:200,origin:!1,transition:"linear",queued:!1},ready:function(){I(this.animation)&&(this.animation=this.animation.split(","),1===this.animation.length&&(this.animation[1]=this.animation[0]),this.animation=this.animation.map(function(t){return t.trim()})),this.queued=this.queued&&!!this.animation},methods:{toggleElement:function(t,e,i){var n,o=this,s=document.body,r=s.scrollTop,a=function(t){return _t.when.apply(_t,t.toArray().map(function(t){return o._toggleElement(t,e,i)}))},l=function(t){var e=a(t);return o.queued=!0,s.scrollTop=r,e};return t=_t(t),!this.queued||t.length<2?a(t):this.queued!==!0?l(t.not(this.queued)):(this.queued=t.not(n=t.filter(function(t,e){return o.isToggled(e)})),a(n).then(function(){return o.queued!==!0&&l(o.queued)}))},toggleNow:function(t,e){var i=this;_t(t).each(function(t,n){return i._toggleElement(n,e,!1)})},isToggled:function(t){return t=_t(t),this.cls?t.hasClass(this.cls.split(" ")[0]):!t.attr("hidden")},updateAria:function(t){this.cls===!1&&t.attr("aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;t=_t(t);var o;if(Bt.inProgress(t))return Bt.cancel(t).then(function(){return n._toggleElement(t,e,i)});e="boolean"==typeof e?e:!this.isToggled(t);var s=_t.Event("before"+(e?"show":"hide"));return t.trigger(s,[this]),s.result===!1?_t.Deferred().reject():(o=(this.animation===!0&&i!==!1?this._toggleHeight:this.animation&&i!==!1?this._toggleAnimation:this._toggleImmediate)(t,e),t.trigger(e?"show":"hide",[this]),o)},_toggle:function(t,e){t=_t(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),this.$update(null,t)},_toggleImmediate:function(t,e){return this._toggle(t,e),_t.Deferred().resolve()},_toggleHeight:function(e,i){var n,o=this,s=Mt.inProgress(e),r=parseFloat(e.children().first().css("margin-top"))+parseFloat(e.children().last().css("margin-bottom")),a=e[0].offsetHeight?e.height()+(s?0:r):0;return Mt.cancel(e),this.isToggled(e)||this._toggle(e,!0),e.css("height",""),n=e.height()+(s?0:r),e.height(a),i?Mt.start(e,t.extend(me,{overflow:"hidden",height:n}),Math.round(this.duration*(1-a/n)),this.transition):Mt.start(e,ve,Math.round(this.duration*(a/n)),this.transition).then(function(){o._toggle(e,!1),e.css(me)})},_toggleAnimation:function(t,e){var i=this;return e?(this._toggle(t,!0),Bt.in(t,this.animation[0],this.duration,this.origin)):Bt.out(t,this.animation[1],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}};Nt.on({click:function(t){pe&&pe.bgClose&&!t.isDefaultPrevented()&&!a(t.target,pe.panel)&&pe.hide()},keydown:function(t){27===t.keyCode&&pe&&pe.escClose&&(t.preventDefault(),pe.hide())}});var we={mixins:[ge,be],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},ready:function(){var t=this;this.page=_t(document.documentElement),this.body=_t(document.body),this.panel=N("."+this.clsPanel,this.$el),this.$el.on("click",this.selClose,function(e){e.preventDefault(),t.hide()})},events:{toggle:function(t){t.preventDefault(),this.toggleNow(this.$el)},beforeshow:function(t){var e=this;if(this.$el.is(t.target)){if(this.isActive())return!1;var i=pe&&pe!==this&&pe;pe||this.body.css("overflow-y",this.getScrollbarWidth()&&this.overlay?"scroll":""),pe=this,i&&(this.stack?this.prev=i:i.hide()),this.panel.one(Vt,function(){var t=_t.Event("show");t.isShown=!0,e.$el.trigger(t,[e])})}},show:function(t){this.$el.is(t.target)&&(t.isShown||t.stopImmediatePropagation())},beforehide:function(t){var e=this;this.$el.is(t.target)&&(pe=pe&&pe!==this&&pe||this.prev,this.panel.one(Vt,function(){var t=_t.Event("hide");t.isHidden=!0,e.$el.trigger(t,[e])}))},hide:function(t){if(this.$el.is(t.target))return t.isHidden?void(pe||this.body.css("overflow-y","")):void t.stopImmediatePropagation()}},methods:{isActive:function(){return this.$el.hasClass(this.cls)},toggle:function(){return this.isActive()?this.hide():this.show()},show:function(){var t=_t.Deferred();return this.$el.one("show",function(){return t.resolve()}),this.toggleNow(this.$el,!0),t.promise()},hide:function(){var t=_t.Deferred();return this.$el.one("hide",function(){return t.resolve()}),this.toggleNow(this.$el,!1),t.promise()},getActive:function(){return pe},getScrollbarWidth:function(){var t=this.page[0].style.width;this.page.css("width","");var e=window.innerWidth-this.page.width();return t&&this.page.width(t),e}}},ye={defaults:{positions:[],position:null},methods:{initMouseTracker:function(){var t=this;this.positions=[],this.position=null,this.mouseHandler=function(e){t.positions.push({x:e.pageX,y:e.pageY}),t.positions.length>5&&t.positions.shift()},Nt.on("mousemove",this.mouseHandler)},cancelMouseTracker:function(){this.mouseHandler&&Nt.off("mousemove",this.mouseHandler)},movesTo:function(t){var e=L(t),i=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]],n=this.positions[this.positions.length-1],o=this.positions[0]||n;if(!n)return!1;e.right<=n.x||(e.left>=n.x?(i[0].reverse(),i[1].reverse()):e.bottom<=n.y?i[0].reverse():e.top>=n.y&&i[1].reverse());var s=n&&!(this.position&&n.x===this.position.x&&n.y===this.position.y)&&i.reduce(function(t,e){return t+(it(o,e[0])it(n,e[1]))},0);return this.position=s?n:null,s}}},ke={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:"bottom-left",flip:!0,offset:!1,clsPos:""},init:function(){this.pos=(this.pos+(~this.pos.indexOf("-")?"":"-center")).split("-"),this.dir=this.pos[0],this.align=this.pos[1]},methods:{positionAt:function(t,e,i){h(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?").css({top:"",left:""}),this.dir=this.pos[0],this.align=this.pos[1];var n=M(this.offset)||0,o=this.getAxis(),s=q(t,e,"x"===o?Y(this.dir)+" "+this.align:this.align+" "+Y(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-1*n:n):" "+("top"===this.dir?-1*n:n),null,this.flip,i);this.dir="x"===o?s.target.x:s.target.y,this.align="x"===o?s.target.y:s.target.x,t.css("display","").toggleClass(this.clsPos+"-"+this.dir+"-"+this.align,this.offset===!1)},getAxis:function(){return"top"===this.pos[0]||"bottom"===this.pos[0]?"y":"x"}}},$e=window.sessionStorage||{},xe={};return fe.version="3.0.0",nt(fe),Ot(fe),"undefined"!=typeof module&&(module.exports=fe),fe}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("uikit")):"function"==typeof define&&define.amd?define(["uikit"],e):e(t.UIkit)}(this,function(t){"use strict";var e,i=t.util.$,n=t.util.doc,o=t.util.extend,s=t.util.Dimensions,r=t.util.getIndex,a=t.util.Transition;n.on({keydown:function(t){if(e)switch(t.keyCode){case 37:e.show("previous");break;case 39:e.show("next")}}}),UIkit.component("lightbox",{name:"lightbox",props:{toggle:String,duration:Number,inverse:Boolean},defaults:{toggle:"a",duration:400,dark:!1,attrItem:"uk-lightbox-item",items:[],index:0},ready:function(){var t=this;this.toggles=i(this.toggle,this.$el),this.toggles.each(function(e,n){n=i(n),t.items.push({source:n.attr("href"),title:n.attr("title"),type:n.attr("type")})}),this.$el.on("click",this.toggle+":not(.uk-disabled)",function(e){e.preventDefault(),t.show(t.toggles.index(e.currentTarget))})},update:{write:function(){var t=this,e=this.getItem();if(this.modal&&e.content){var n=this.modal.panel,o={width:n.width(),height:n.height()},r={width:window.innerWidth-(n.outerWidth(!0)-o.width),height:window.innerHeight-(n.outerHeight(!0)-o.height)},l=s.fit({width:e.width,height:e.height},r);a.stop(n).stop(this.modal.content),this.modal.content&&this.modal.content.remove(),this.modal.content=i(e.content).css("opacity",0).appendTo(n),n.css(o),a.start(n,l,this.duration).then(function(){a.start(t.modal.content,{opacity:1},400).then(function(){n.find("[uk-transition-hide]").show(),n.find("[uk-transition-show]").hide()})})}},events:["resize","orientationchange"]},events:{showitem:function(t){var e=this.getItem();e.content&&(this.$update(),t.stopImmediatePropagation())}},methods:{show:function(t){var n=this;this.index=r(t,this.items,this.index),this.modal||(this.modal=UIkit.modal.dialog('\n \n \n ',{center:!0}),this.modal.$el.css("overflow","hidden").addClass("uk-modal-lightbox"),this.modal.panel.css({width:200,height:200}),this.modal.caption=i('
').appendTo(this.modal.panel),this.items.length>1&&i('\n ').appendTo(this.modal.panel.addClass("uk-slidenav-position")),this.modal.$el.on("hide",this.hide).on("click","["+this.attrItem+"]",function(t){t.preventDefault(),n.show(i(t.currentTarget).attr(n.attrItem))}).on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||n.show("swipeLeft"==t.type?"next":"previous")})),e=this,this.modal.panel.find("[uk-transition-hide]").hide(),this.modal.panel.find("[uk-transition-show]").show(),this.modal.content&&this.modal.content.remove(),this.modal.caption.text(this.getItem().title);var o=i.Event("showitem");this.$el.trigger(o),o.isImmediatePropagationStopped()||this.setError(this.getItem())},hide:function(){var t=this;e=e&&e!==this&&e,this.modal.hide().then(function(){t.modal.$destroy(!0),t.modal=null})},getItem:function(){return this.items[this.index]||{source:"",title:"",type:""}},setItem:function(t,e,i,n){void 0===i&&(i=200),void 0===n&&(n=200),o(t,{content:e,width:i,height:n}),this.$update()},setError:function(t){this.setItem(t,'Loading resource failed!
',400,300)}}}),UIkit.mixin({events:{showitem:function(t){var e=this,i=this.getItem();if("image"===i.type||!i.source||i.source.match(/\.(jp(e)?g|png|gif|svg)$/i)){var n=new Image;n.onerror=function(){return e.setError(i)},n.onload=function(){return e.setItem(i,' ',n.width,n.height)},n.src=i.source,t.stopImmediatePropagation()}}}},"lightbox"),UIkit.mixin({events:{showitem:function(t){var e=this,n=this.getItem();if("video"===n.type||!n.source||n.source.match(/\.(mp4|webm|ogv)$/i)){var o=i(' ').on("loadedmetadata",function(){return e.setItem(n,o.attr({width:o[0].videoWidth,height:o[0].videoHeight}),o[0].videoWidth,o[0].videoHeight)}).attr("src",n.source);t.stopImmediatePropagation()}}}},"lightbox"),UIkit.mixin({events:{showitem:function(t){var e,i=this,n=this.getItem();if((e=n.source.match(/\/\/.*?youtube\.[a-z]+\/watch\?v=([^&]+)&?(.*)/))||n.source.match(/youtu\.be\/(.*)/)){var o=e[1],s=new Image,r=!1,a=function(t,e){return i.setItem(n,'',t,e)};s.onerror=function(){return a(640,320)},s.onload=function(){120===s.width&&90===s.height?r?a(640,320):(r=!0,s.src="//img.youtube.com/vi/"+o+"/0.jpg"):a(s.width,s.height)},s.src="//img.youtube.com/vi/"+o+"/maxresdefault.jpg",t.stopImmediatePropagation()}}}},"lightbox"),UIkit.mixin({events:{showitem:function(t){var e,n=this,o=this.getItem();if(e=o.source.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/)){var s=e[2],r=function(t,e){return n.setItem(o,'',t,e)};i.ajax({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(o.source),jsonp:"callback",dataType:"jsonp"}).then(function(t){return r(t.width,t.height)}),t.stopImmediatePropagation()}}}},"lightbox")}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("uikit")):"function"==typeof define&&define.amd?define(["uikit"],e):e(t.UIkit)}(this,function(t){"use strict";var e=t.util.$,i=t.util.Transition,n={};UIkit.component("notification",{defaults:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:null},created:function(){n[this.pos]||(n[this.pos]=e('
').appendTo(t.container)),this.$mount(e('").appendTo(n[this.pos].show()))},ready:function(){var t=this,e=parseInt(this.$el.css("margin-bottom"),10);i.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),t.$el.on("mouseenter",function(){return clearTimeout(t.timer)}).on("mouseleave",function(){return t.timer=setTimeout(t.close,t.timeout)}))})},events:{click:function(t){t.preventDefault(),this.close()}},methods:{close:function(t){var e=this,o=function(){e.onClose&&e.onClose(),e.$el.trigger("close",[e]).remove(),n[e.pos].children().length||n[e.pos].hide()};this.timer&&clearTimeout(this.timer),t?o():i.start(this.$el,{opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}).then(o)}}}),UIkit.notification.closeAll=function(t,e){var i;UIkit.elements.forEach(function(n){!(i=UIkit.getComponent(n,"notification"))||t&&t!==i.group||i.close(e)})}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("uikit")):"function"==typeof define&&define.amd?define(["uikit"],e):e(t.UIkit)}(this,function(t){"use strict";function e(t){return UIkit.getComponent(t,"sortable")||t.parentNode&&e(t.parentNode)}
+function i(){var t=setTimeout(function(){return o.trigger("click")},0),e=function(i){i.preventDefault(),i.stopPropagation(),clearTimeout(t),h(o,"click",e,!0)};l(o,"click",e,!0)}var n=t.util.$,o=t.util.doc,s=t.util.extend,r=t.util.isWithin,a=t.util.Observer,l=t.util.on,h=t.util.off,c=t.util.pointerDown,u=t.util.pointerMove,d=t.util.pointerUp,f=t.util.requestAnimationFrame,p=t.util.win;UIkit.component("sortable",{mixins:[t.mixin.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},ready:function(){var t=this;if(["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,o=n.pageX,s=n.pageY;t.pos={x:o,y:s},i(e)}}),l(this.$el,c,this.init),this.clsEmpty){var e=function(){return t.$el.toggleClass(t.clsEmpty,!t.$el.children().length)};new a(e).observe(this.$el[0],{childList:!0}),e()}},update:{write:function(){var t=this;if(this.drag){this.drag.offset({top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e=this.drag.offset().top,i=e+this.drag[0].offsetHeight;e>0&&ewindow.innerHeight+this.scrollY&&setTimeout(function(){return p.scrollTop(t.scrollY+5)},5)}}},methods:{init:function(t){var e=n(t.target),i=this.$el.children().filter(function(e,i){return r(t.target,i)});!i.length||e.is(":input")||this.handle&&!r(e,this.handle)||t.button&&0!==t.button||r(e,"."+this.clsNoDrag)||(t.preventDefault(),t.stopPropagation(),this.touched=[this],this.placeholder=i,this.origin=s({target:e,index:this.placeholder.index()},this.pos),o.on(u,this.move),o.on(d,this.end),p.on("scroll",this.scroll),this.threshold||this.start(t))},start:function(e){this.drag=n(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=this.placeholder.offset(),r=i.left,a=i.top;s(this.origin,{left:r-this.pos.x,top:a-this.pos.y}),this.placeholder.addClass(this.clsPlaceholder),this.$el.children().addClass(this.clsItem),o.addClass(this.clsDragState),this.$el.trigger("start",[this,this.placeholder,this.drag]),this.move(e)},move:function t(i){if(!this.drag)return void((Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(i));this.update();var o="mousemove"===i.type?i.target:document.elementFromPoint(this.pos.x-document.body.scrollLeft,this.pos.y-document.body.scrollTop),s=e(o),a=e(this.placeholder[0]),t=s!==a;if(s&&!r(o,this.placeholder)&&(!t||s.group&&s.group===a.group)){if(o=s.$el.is(o.parentNode)&&n(o)||s.$el.children().has(o),t)a.remove(this.placeholder);else if(!o.length)return;s.insert(this.placeholder,o),~this.touched.indexOf(s)||this.touched.push(s)}},scroll:function t(){var t=window.scrollY;t!==this.scrollY&&(this.pos.y+=t-this.scrollY,this.scrollY=t,this.update())},end:function(t){if(o.off(u,this.move),o.off(d,this.end),p.off("scroll",this.scroll),!this.drag)return void("mouseup"!==t.type&&r(t.target,"a[href]")&&(location.href=n(t.target).closest("a[href]").attr("href")));i();var s=e(this.placeholder[0]);this===s?this.origin.index!==this.placeholder.index()&&this.$el.trigger("change",[this,this.placeholder,"moved"]):(s.$el.trigger("change",[s,this.placeholder,"added"]),this.$el.trigger("change",[this,this.placeholder,"removed"])),this.$el.trigger("stop",[this]),this.drag.remove(),this.drag=null,this.touched.forEach(function(t){return t.$el.children().removeClass(t.clsPlaceholder+" "+t.clsItem)}),o.removeClass(this.clsDragState)},update:function(){this._callUpdate()},insert:function t(e,i){var n=this;this.$el.children().addClass(this.clsItem);var t=function(){i.length?!n.$el.has(e).length||e.prevAll().filter(i).length?e.insertBefore(i):e.insertAfter(i):n.$el.append(e),n.$updateParents()};this.animation?this.animate(t):t()},remove:function t(e){var i=this;if(this.$el.has(e).length){var t=function(){e.remove(),i.$updateParents()};this.animation?this.animate(t):t()}},animate:function(t){var e=this,i=[],o=this.$el.children().toArray().map(function(t){return t=n(t),i.push(s({position:"absolute",pointerEvents:"none",width:t.outerWidth(),height:t.outerHeight()},t.position())),t}),r={position:"",width:"",height:"",pointerEvents:"",top:"",left:""};t(),o.forEach(function(t){return t.stop()}),this.$el.children().css(r),this.$updateParents(),f(function(){e.$el.css("min-height",e.$el.height());var t=o.map(function(t){return t.position()});n.when.apply(n,o.map(function(n,o){return n.css(i[o]).animate(t[o],e.animation).promise()})).then(function(){e.$el.css("min-height","").children().css(r),e.$updateParents()})})}}})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("uikit")):"function"==typeof define&&define.amd?define(["uikit"],e):e(t.UIkit)}(this,function(t){"use strict";var e=t.util.$,i=t.util.flipPosition;UIkit.component("tooltip",{mixins:[t.mixin.toggable,t.mixin.position],props:{delay:Number},defaults:{pos:"top",delay:0,animation:"uk-animation-scale-up",duration:100,cls:"uk-active",clsPos:"uk-tooltip"},ready:function(){this.content=this.$el.attr("title"),this.$el.removeAttr("title").attr("aria-expanded",!1)},methods:{show:function(){var n=this;clearTimeout(this.showTimer),"true"!==this.$el.attr("aria-expanded")&&(this.tooltip=e('").appendTo(t.container),this.$el.attr("aria-expanded",!0),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?i(this.dir)+"-"+this.align:this.align+"-"+i(this.dir),this.showTimer=setTimeout(function(){n.toggleElement(n.tooltip,!0),n.hideTimer=setInterval(function(){n.$el.is(":visible")||n.hide()},150)},this.delay))},hide:function(){this.$el.is("input")&&this.$el[0]===document.activeElement||(clearTimeout(this.showTimer),clearInterval(this.hideTimer),this.$el.attr("aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip.remove(),this.tooltip=!1)}},events:{"focus mouseenter":"show","blur mouseleave":"hide"}})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("uikit")):"function"==typeof define&&define.amd?define(["uikit"],e):e(t.UIkit)}(this,function(t){"use strict";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;n