/*! uikit 3.0.0-beta.20 | http://www.getuikit.com | (c) 2014 - 2017 yootheme | mit license */ !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&&!document.documentelement.doscroll}function i(t){var i=function(){o(document,"domcontentloaded",i),o(window,"load",i),t()};e()?t():(n(document,"domcontentloaded",i),n(window,"load",i))}function n(t,e,i,n){e(t).addeventlistener(e,i,n)}function o(t,e,i,n){e(t).removeeventlistener(e,i,n)}function s(t,e,i,n){void 0===i&&(i=400),void 0===n&&(n="linear");var o=w(function(s,r){t=kt(t);for(var a in e)t.css(a,t.css(a));var l=settimeout(function(){return t.trigger(_e||"transitionend")},i);t.one(_e||"transitionend",function(e,i){e.promise=o,cleartimeout(l),t.removeclass("uk-transition").css("transition",""),i?r():s()}).addclass("uk-transition").css("transition","all "+i+"ms "+n).css(e)}).then(null,function(){});return o}function r(t,e,i,n,o){void 0===i&&(i=200);var s=w(function(r){function a(){t.css("animation-duration","").removeclass(l+" "+e)}var l=o?"uk-animation-leave":"uk-animation-enter";t=kt(t),0===e.lastindexof("uk-animation-",0)&&(n&&(e+=" uk-animation-"+n),o&&(e+=" uk-animation-reverse")),a(),fe(function(){return t.one(ae||"animationend",function(t){t.promise=s,s.then(a),r()}).css("animation-duration",i+"ms").addclass(e).addclass(l)}),ae||fe(function(){return se.cancel(t)})});return s}function a(t){return t instanceof kt}function l(t,e){return t=kt(t),t.is(e)||!!(k(e)?t.parents(e).length:kt.contains(e(e),t[0]))}function h(t,e,i,n){return t=kt(t),t.attr(e,function(t,e){return e?e.replace(i,n):e})}function c(t,e){return h(t,"class",new regexp("(^|\\s)"+e+"(?!\\s)","g"),"")}function u(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),void 0===n&&(n=!1),k(t)){var o=document.createevent("event");o.initevent(t,e,i),t=o}return n&&kt.extend(t,n),t}function d(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var n=e(t).getboundingclientrect();return n.bottom>=-1*e&&n.right>=-1*i&&n.top<=(window.innerheight||document.documentelement.clientheight)+e&&n.left<=(window.innerwidth||document.documentelement.clientwidth)+i}function f(t,e,i){void 0===i&&(i=0),e=kt(e);var n=kt(e).length;return t=(c(t)?t:"next"===t?i+1:"previous"===t?i-1:k(t)?parseint(t,10):e.index(t))%n,t<0?t+n:t}function p(t){return re[e(t).tagname.tolowercase()]}function g(t,e){var i=s(t);return i?i.reduce(function(t,e){return a(e,t)},e):a(t)}function m(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function v(t,e){return le.call(t,e)}function w(t){if(ve)return new promise(t);var e=kt.deferred();return t(e.resolve,e.reject),e}function y(t){return t.replace(/(?:^|[-_\/])(\w)/g,function(t,e){return e?e.touppercase():""})}function b(t){return t.replace(/([a-z\d])([a-z])/g,"$1-$2").tolowercase()}function $(t){return t.replace(he,x)}function x(t,e){return e?e.touppercase():""}function k(t){return"string"==typeof t}function c(t){return"number"==typeof t}function t(t){return void 0===t}function _(t){return k(t)&&t.match(/^(!|>|\+|-)/)}function s(t){return _(t)&&t.split(/(?=\s(?:!|>|\+|-))/g).map(function(t){return t.trim()})}function a(t,e){if(t===!0)return null;try{if(e&&_(t)&&">"!==t[0]){var i=ce[t[0]],n=t.substr(1);e=kt(e),"closest"===i&&(e=e.parent(),n=n||"*"),t=e[i](n)}else t=kt(t,e)}catch(t){return null}return t.length?t:null}function e(t){return t&&(a(t)?t[0]:t)}function o(t){return"boolean"==typeof t?t:"true"===t||"1"==t||""===t||"false"!==t&&"0"!=t&&t}function d(t){var e=number(t);return!isnan(e)&&e}function i(e){return t.isarray(e)?e:k(e)?e.split(",").map(function(t){return o(t.trim())}):[e]}function n(t){if(k(t))if("@"==t[0]){var e="media-"+t.substr(1);t=ue[e]||(ue[e]=parsefloat(j(e)))}else if(t.match(/^\(min-width:/))return t;return!(!t||isnan(t))&&"(min-width: "+t+"px)"}function b(t,e,i){return t===boolean?o(e):t===number?d(e):"jquery"===t?g(e,i):"list"===t?i(e):"media"===t?n(e):t?t(e):e}function p(t){return t?"ms"===t.substr(-2)?parsefloat(t):1e3*parsefloat(t):0}function h(t,e,i){return t.replace(new regexp(e+"|"+i,"mg"),function(t){return t===e?i:e})}function m(t,e,i){return(window.getcomputedstyle(t,i)||{})[e]}function j(t){var e,i=document.documentelement,n=i.appendchild(document.createelement("div"));n.classlist.add("var-"+t);try{e=m(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),e=json.parse(e)}catch(t){}return i.removechild(n),e||void 0}function f(t,e){var i,n=y(t),o=y(e).tolowercase(),s=y(e),r=document.body||document.documentelement,a=(i={},i["webkit"+n]="webkit"+s,i["moz"+n]=o,i["o"+n]="o"+s+" o"+o,i[t]=o,i);for(t in a)if(void 0!==r.style[t])return a[t]}function l(t){t.scheduled||(t.scheduled=!0,fe(z.bind(null,t)))}function z(t){w(t.reads),w(t.writes.splice(0,t.writes.length)),t.scheduled=!1,(t.reads.length||t.writes.length)&&l(t)}function w(t){for(var e;e=t.shift();)e()}function q(t,e){var i=t.indexof(e);return!!~i&&!!t.splice(i,1)}function y(){}function r(t,e){return(e.y-t.y)/(e.x-t.x)}function u(t,e){function i(i){o[i]=(oe[i]||he)(t[i],e[i])}var n,o={};if(e.mixins)for(var s=0,r=e.mixins.length;sl[f]){var m=d[r]+p+g-2*s[t];m>=l[r]&&m+c[i]<=l[f]&&(d[r]=m,["element","target"].foreach(function(e){h[e][t]=p?h[e][t]===me[t][1]?me[t][2]:me[t][1]:h[e][t]}))}}}),kt(e).offset({left:d.left,top:d.top}),h}function x(t){t=e(t);var e=g(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 o=!1;t.offsetheight||(o=t.style.display,t.style.display="block");var s=t.getboundingclientrect();return o!==!1&&(t.style.display=o),{height:s.height,width:s.width,top:s.top+i,left:s.left+n,bottom:s.bottom+i,right:s.right+n}}function q(t){return t=e(t),t.getboundingclientrect().top+g(t).pageyoffset}function g(t){return t&&t.ownerdocument?t.ownerdocument.defaultview:window}function j(e,i,n,o){t.each(me,function(t,s){var r=s[0],a=s[1],l=s[2];i[t]===l?e[a]+=n[r]*o:"center"===i[t]&&(e[a]+=n[r]*o/2)})}function z(t){var e=/left|center|right/,i=/top|center|bottom/;return t=(t||"").split(" "),1===t.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 k(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 tt(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function et(t,e,i,n){return math.abs(t-e)>=math.abs(i-n)?t-e>0?"left":"right":i-n>0?"up":"down"}function it(){de&&cleartimeout(de),ie&&cleartimeout(ie),ne&&cleartimeout(ne),de=ie=ne=null,je={}}function nt(t){return fe||"touch"===(t.originalevent||t).pointertype}function ot(t){function e(){o(document.body,t.connect),new de(function(e){return e.foreach(function(e){for(var i=0;i *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsopen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function t(){var e=this,t=kt(this.targets,this.$el);return this._changed=!this._items||t.length!==this._items.length||t.toarray().some(function(t,i){return t!==e._items.get(i)}),this._items=t}},connected:function(){this.$emitsync()},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&&this._changed){this.items.each(function(e,i){i=kt(i),t.togglenow(i.find(t.content),i.hasclass(t.clsopen))});var e=this.active!==!1&&a(this.items.eq(number(this.active)))||!this.collapsible&&a(this.items.eq(0));e&&!e.hasclass(this.clsopen)&&this.toggle(e,!1)}},methods:{toggle:function(t,e){var i=this,n=f(t,this.items),o=this.items.filter("."+this.clsopen);t=this.items.eq(n),t.add(!this.multiple&&o).each(function(n,s){s=kt(s);var r=s.is(t),a=r&&!s.hasclass(i.clsopen);if(a||!r||i.collapsible||!(o.length<2)){s.toggleclass(i.clsopen,a);var l=s[0]._wrapper?s[0]._wrapper.children().first():s.find(i.content);s[0]._wrapper||(s[0]._wrapper=l.wrap("
").parent().attr("hidden",a)),i._toggleimmediate(l,!0),i.toggleelement(s[0]._wrapper,a,e).then(function(){s.hasclass(i.clsopen)===a&&(a||i._toggleimmediate(l,!1),s[0]._wrapper=null,l.unwrap())})}})}}})}function $t(t){t.component("alert",{mixins:[ye,re],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)})}}})}function xt(t){t.component("cover",{mixins:[ye],props:{automute:boolean,width:number,height:number},defaults:{automute:!0},computed:{el:function(){return this.$el[0]},parent:function(){return this.$el.parent()[0]}},ready:function(){if(this.$el.is("iframe")&&(this.$el.css("pointerevents","none"),this.automute)){var t=this.$el.attr("src");this.$el.attr("src",""+t+(~t.indexof("?")?"&":"?")+"enablejsapi=1&api=1").on("load",function(t){var e=t.target;return e.contentwindow.postmessage('{"event": "command", "func": "mute", "method":"setvolume", "value":0}',"*")})}},update:{write:function(){0!==this.el.offsetheight&&this.$el.css({width:"",height:""}).css(ae.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()}}})}function kt(t){var e;ee.on("click",function(t){for(var i;e&&e!==i&&!l(t.target,e.$el)&&(!e.toggle||!l(t.target,e.toggle.$el));)i=e,e.hide(!1)}),t.component("drop",{mixins:[ve,re],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 y,this.clsdrop=this.clsdrop||"uk-"+this.$options.name,this.clspos=this.clsdrop,this.$el.addclass(this.clsdrop)},ready:function(){this.updatearia(this.$el),this.toggle&&(this.toggle=t.toggle(g(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=kt(t.target).attr("href");1===e.length&&t.preventdefault(),1!==e.length&&l(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:xe,filter:function(){return~this.mode.indexof("hover")},handler:function(t){nt(t)||(e&&e!==this&&e.toggle&&~e.toggle.mode.indexof("hover")&&!l(t.target,e.$el)&&!l(t.target,e.toggle.$el)&&e.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 "+ke,handler:function(t,e){nt(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")}},{name:"beforehide",self:!0,handler:function(){this.cleartimers()}},{name:"hide",handler:function(t){var i=t.target;return this.$el.is(i)?(e=this.isactive()?null:e,this.toggle.$el.removeclass(this.cls).attr("aria-expanded","false").blur().find("a, button").blur(),void this.tracker.cancel()):void(e=null===e&&l(i,this.$el)&&this.istoggled()?this:e)}}],update:{write:function(){if(this.$el.hasclass(this.cls)){c(this.$el,this.clsdrop+"-(stack|boundary)").css({top:"",left:""}),this.$el.toggleclass(this.clsdrop+"-boundary",this.boundaryalign);var t=x(this.boundary),e=this.boundaryalign?t:x(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"]},methods:{show:function t(i,n){var o=this;void 0===n&&(n=!0);var t=function(){return!o.istoggled()&&o.toggleelement(o.$el,!0)},s=function(){if(o.toggle=i||o.toggle,o.cleartimers(),!o.isactive()){if(n&&e&&e!==o&&e.isdelaying)return void(o.showtimer=settimeout(o.show,10));if(o.isparentof(e)){if(!e.hidetimer)return;e.hide(!1)}else if(e&&!o.ischildof(e)&&!o.isparentof(e))for(var s;e&&e!==s;)s=e,e.hide(!1);n&&o.delayshow?o.showtimer=settimeout(t,o.delayshow):t(),e=o}};i&&this.toggle&&!this.toggle.$el.is(i.$el)?(this.$el.one("hide",s),this.hide(!1)):s()},hide:function t(e){var i=this;void 0===e&&(e=!0);var t=function(){return i.togglenow(i.$el,!1)};this.cleartimers(),this.isdelaying=this.tracker.movesto(this.$el),e&&this.isdelaying?this.hidetimer=settimeout(this.hide,this.hoveridle):e&&this.delayhide?this.hidetimer=settimeout(t,this.delayhide):t()},cleartimers:function(){cleartimeout(this.showtimer),cleartimeout(this.hidetimer),this.showtimer=null,this.hidetimer=null,this.isdelaying=!1},isactive:function(){return e===this},ischildof:function(t){return t&&t!==this&&l(this.$el,t.$el)},isparentof:function(t){return t&&t!==this&&l(t.$el,this.$el)}}}),t.drop.getactive=function(){return e}}function ct(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function tt(t){t.component("form-custom",{mixins:[ye],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&&g(this.$props.target===!0?"> :input:first + :first":this.$props.target,this.$el)}},connected:function(){this.input.trigger("change")},events:[{name:"focus blur mouseenter mouseleave",delegate:":input:first",handler:function(t){var e=t.type;this.state.toggleclass("uk-"+(~["focus","blur"].indexof(e)?"focus":"hover"),~["focus","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())}}]})}function _t(t){t.component("gif",{update:{read:function(){var t=d(this.$el);!this.isinview&&t&&(this.$el[0].src=this.$el[0].src),this.isinview=t},events:["scroll","load","resize"]}})}function st(t){t.component("grid",t.components.margin.extend({mixins:[ye],name:"grid",defaults:{margin:"uk-grid-margin",clsstack:"uk-grid-stack"},update:{write:function(){this.$el.toggleclass(this.clsstack,this.stacks)},events:["load","resize"]}}))}function at(t){t.component("height-match",{args:"target",props:{target:string,row:boolean},defaults:{target:"> *",row:!0},computed:{elements:function(){return kt(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(kt(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:["resize"]},methods:{match:function(t){if(t.length<2)return{};var e=0,i=[];return t=t.each(function(t,n){var o,s,r;0===n.offsetheight&&(o=kt(n),s=o.attr("style")||null,r=o.attr("hidden")||null,o.attr({style:s+";display:block !important;",hidden:null})),e=math.max(e,n.offsetheight),i.push(n.offsetheight),o&&o.attr({style:s,hidden:r})}).filter(function(t){return i[t]0&&this.$el.css("min-height",e=this.$el.outerheight()+o)}else{var s=q(this.$el);if(s=this.$el.outerheight()&&this.$el.css("height",e)},events:["load","resize"]}})}function ot(t){i(function(){if(we){var e="uk-hover";ie.on("tap",function(t){var i=t.target;return kt("."+e).filter(function(t,e){return!l(i,e)}).removeclass(e)}),object.defineproperty(t,"hoverselector",{set:function(t){ie.on("tap",t,function(t){var i=t.currenttarget;return i.classlist.add(e)})}}),t.hoverselector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function dt(e){function i(t,i){e.component(t,e.components.icon.extend({name:t,mixins:i?[i]:[],defaults:{icon:t}}))}var n={},o={spinner:ai,totop:li,"close-icon":xe,"close-large":qe,"navbar-toggle-icon":ge,"overlay-icon":je,"pagination-next":ze,"pagination-previous":ke,"search-icon":ti,"search-large":ei,"search-navbar":ii,"slidenav-next":ni,"slidenav-next-large":oi,"slidenav-previous":si,"slidenav-previous-large":ri};e.component("icon",e.components.svg.extend({attrs:["icon","ratio"],mixins:[ye],name:"icon",args:"icon",props:["icon"],defaults:{exclude:["id","style","class","src"]},init:function(){this.$el.addclass("uk-icon"),ne&&(this.icon=h(h(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?w.resolve(e):"complete"!==document.readystate?w(function(e){t.delay=e}):w.reject("icon not found.")},geticon:function(){return o[this.icon]?(n[this.icon]||(n[this.icon]=this.parse(o[this.icon])),n[this.icon]):null}}})),["navbar-toggle-icon","overlay-icon","pagination-previous","pagination-next","totop"].foreach(function(t){return i(t)}),["slidenav-previous","slidenav-next"].foreach(function(t){return i(t,{init:function(){this.$el.addclass("uk-slidenav"),this.$el.hasclass("uk-slidenav-large")&&(this.icon+="-large")}})}),i("search-icon",{init:function(){this.$el.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")}}),i("close",{init:function(){this.icon="close-"+(this.$el.hasclass("uk-close-large")?"large":"icon")}}),i("spinner",{connected:function(){var t=this;this.height=this.width=this.$el.width(),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-parsefloat(i.css("stroke-width")||0)})})}}),e.icon.add=function(e){return t.extend(o,e)}}function it(t){t.component("margin",{props:{margin:string,firstcolumn:boolean},defaults:{margin:"uk-margin-small-top",firstcolumn:"uk-first-column"},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"]},events:[{name:"beforeshow",self:!0,handler:function(){this.$el.css("display","block").height()}},{name:"hidden",self:!0,handler:function(){this.$el.css("display","").removeclass("uk-flex uk-flex-center uk-flex-middle")}}]}),e.component("overflow-auto",{mixins:[ye],computed:{panel:function(){return this.$el.closest(".uk-modal-dialog")}},connected:function(){this.$el.css("min-height",150)},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"]}}),e.modal.dialog=function(t,i){var n=e.modal('
\n
'+t+"
\n
",i);return n.$el.on("hidden",function(){return n.$destroy(!0)}),n.show(),n},e.modal.alert=function(i,n){return n=t.extend({bgclose:!1,escclose:!1,labels:e.modal.labels},n),w(function(t){return e.modal.dialog('\n
'+(k(i)?i:kt(i).html())+'
\n \n ",n).$el.on("hide",t); })},e.modal.confirm=function(i,n){return n=t.extend({bgclose:!1,escclose:!1,labels:e.modal.labels},n),w(function(t,o){return e.modal.dialog('\n
'+(k(i)?i:kt(i).html())+'
\n \n ",n).$el.on("click",".uk-modal-footer button",function(e){return 0===kt(e.target).index()?o():t()})})},e.modal.prompt=function(i,n,o){return o=t.extend({bgclose:!1,escclose:!1,labels:e.modal.labels},o),w(function(t){var s=!1,r=e.modal.dialog('\n
\n
\n \n \n
\n \n
\n ",o),a=r.$el.find("input").val(n);r.$el.on("submit","form",function(e){e.preventdefault(),t(a.val()),s=!0,r.hide()}).on("hide",function(){s||t(null)})})},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 pt(e){e.component("navbar",{mixins:[ye],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:ne?"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 this.$props.boundary===!0||this.boundaryalign?this.$el:this.$props.boundary},pos:function(){return"bottom-"+this.align}},ready:function(){this.dropbar&&e.navbardropbar(g(this.dropbar,this.$el)||kt("
").insertafter(this.dropbaranchor||this.$el),{clsdrop:this.clsdrop,mode:this.dropbarmode,duration:this.duration,navbar:this})},update:function(){e.drop(kt(this.dropdown+" ."+this.clsdrop,this.$el),t.extend({},this))},events:[{name:xe,delegate:function(){return this.dropdown},handler:function(t){var e=t.currenttarget,i=this.getactive();i&&i.toggle&&!l(i.toggle.$el,e)&&!i.tracker.movesto(i.$el)&&i.hide(!1)}}],methods:{getactive:function(){var t=e.drop.getactive();return t&&"click"!==t.mode&&l(t.toggle.$el,this.$el)&&t}}}),e.component("navbar-dropbar",{mixins:[ye],defaults:{clsdrop:"",mode:"slide",navbar:null,duration:200},init:function(){"slide"===this.mode&&this.$el.addclass("uk-navbar-dropbar-slide")},events:[{name:"beforeshow",el:function(){return this.navbar.$el},handler:function(t,e){var i=e.$el,n=e.dir;"bottom"!==n||l(i,this.$el)||(i.appendto(this.$el),this.$el.trigger("beforeshow",[{$el:i}]))}},{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),oe.cancel(this.$el).then(function(){return oe.start(e.$el,{height:t},e.duration)})}}})}function ht(t){t.component("offcanvas",{mixins:[ue],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 kt(g(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),qe&&this.content.scrolltop(qe.y)))},events:["resize"]},events:[{name:"beforeshow",self:!0,handler:function(){qe=qe||{x:window.pagexoffset,y:window.pageyoffset},"reveal"!==this.mode||this.panel.parent().hasclass(this.clsmode)||this.panel.wrap("
").parent().addclass(this.clsmode),ie.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(_e)}},{name:"hidden",self:!0,handler:function(){"reveal"===this.mode&&this.panel.unwrap(),this.overlay||(qe={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(qe.y),ie.css("overflow-y",""),this.content.width("").height(""),window.scrollto(qe.x,qe.y),qe=null}},{name:"swipeleft swiperight",handler:function(t){this.istoggled()&&nt(t)&&("swipeleft"===t.type&&!this.flip||"swiperight"===t.type&&this.flip)&&this.hide()}}]})}function mt(t){t.component("responsive",{props:["width","height"],init:function(){this.$el.addclass("uk-responsive-width")},update:{write:function(){this.$el.is(":visible")&&this.width&&this.height&&this.$el.height(ae.fit({height:this.height,width:this.width},{width:this.$el.parent().width(),height:this.height||this.$el.height()}).height)},events:["load","resize"]}})}function jt(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=kt(t);var i=q(t)-this.offset,n=document.documentelement.offsetheight,o=window.innerheight;i+o>n&&(i=n-o),kt("html,body").stop().animate({scrolltop:parseint(i,10)||1},this.duration,this.transition).promise().then(function(){return e.$el.trigger("scrolled",[e])})}},events:{click:function(t){t.isdefaultprevented()||(t.preventdefault(),this.scrolltoelement(kt(this.$el[0].hash).length?this.$el[0].hash:"body"))}}}),kt.easing.easeoutexpo||(kt.easing.easeoutexpo=function(t,e,i,n,o){return e==o?i+n:n*(-math.pow(2,-10*e/o)+1)+i})}function ft(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"},init:function(){this.$emitsync()},computed:{elements:function(){return this.target&&kt(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=kt(i).attr("uk-scrollspy-class");i._scrollspy={toggles:n&&n.split(",")||t.cls}}i._scrollspy.show=d(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=kt(n),s=n._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"]}]})}function lt(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 kt(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=document.documentelement.scrollheight-window.innerheight+this.offset;this.active=!1,this.targets.each(function(n,o){o=kt(o);var s=q(o),r=n+1===t.targets.length;if(!t.overflow&&(0===n&&s>e||r&&s+o[0].offsettop=i)for(var a=t.targets.length-1;a>n;a--)if(d(t.targets.eq(a))){o=t.targets.eq(a);break}return!(t.active=a(t.links.filter('[href="#'+o.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"]}]})}function zt(e){e.component("sticky",{mixins:[ye],attrs:!0,props:{top:null,bottom:boolean,offset:number,animation:string,clsactive:string,clsinactive:string,clsfixed: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",widthelement:!1,showonup:!1,media:!1,target:!1},connected:function(){this.placeholder=kt('
'),this.widthelement=this.$props.widthelement||this.placeholder,this.isactive||this.$el.addclass(this.clsinactive)},disconnected:function(){this.isactive&&(this.isactive=!1,this.hide(),this.$el.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=g(location.hash);e&&fe(function(){var i=q(e),n=q(t.$el),o=t.$el[0].offsetheight,s=n+o;s>=i&&n<=i+e[0].offsetheight&&window.scrollto(0,i-o-t.target-t.offset)})}},update:[{write:function(){var e,i=this,n=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=q(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]):k(i[n])&&i[n].match(/^-?\d+vh$/)?i[n]=window.innerheight*parsefloat(i[n])/100:(e=i[n]===!0?i.$el.parent():g(i[n],i.$el),e&&(i[n]=q(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=q(this.$el)},write:function(t){var e=this;void 0===t&&(t={});var i=t.dir,n=window.pageyoffset;if(!(n<0||!this.$el.is(":visible")||this.disabled||this.showonup&&!i))if(this.inactive||nthis.top;this.bottom&&e>this.bottom-this.offset&&(t=this.bottom-e),this.$el.css({position:"fixed",top:t+"px",width:this.width}).addclass(this.clsfixed).toggleclass(this.clsactive,i).toggleclass(this.clsinactive,!i)}}})}function wt(t){t.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 w(function(i,n){return ee.mutate(function(){var o,s;if(!e)return void n("svg not found.");if(t.icon)if(o=e.getelementbyid(t.icon)){var r=o.outerhtml;if(!r){var a=document.createelement("div");a.appendchild(o.clonenode(!0)),r=a.innerhtml}r=r.replace(//g,"svg>"),s=ci.parsefromstring(r,"image/svg+xml").documentelement}else e.queryselector("symbol")||(s=e.documentelement.clonenode(!0));else s=e.documentelement.clonenode(!0);if(!s)return void n("svg not found.");var l=s.getattribute("viewbox");l&&(l=l.split(" "),t.width=t.width||l[2],t.height=t.height||l[3]),s=kt(s),t.width*=t.ratio,t.height*=t.ratio;for(var h in t.$options.props)t[h]&&!~t.exclude.indexof(h)&&s.attr(h,t[h]);t.id||s.removeattr("id"),t.width&&!t.height&&s.removeattr("height"),t.height&&!t.width&&s.removeattr("width"),p(t.$el)||"canvas"===t.$el[0].tagname?(t.$el.attr({hidden:!0,id:null}),s.insertafter(t.$el)):s.appendto(t.$el),i(s)})})}).then(null,function(){}),this._isready||this.$emitsync()},disconnected:function(){p(this.$el)&&this.$el.attr({hidden:null,id:this.id||null}),this.svg&&(this.svg.then(function(t){t&&t.remove()}),this.svg=null)},methods:{getsvg:function(){var t=this;return this.src?hi[this.src]?hi[this.src]:(hi[this.src]=w(function(e,i){0===t.src.lastindexof("data:",0)?e(t.parse(decodeuricomponent(t.src.split(",")[1]))):kt.ajax(t.src,{datatype:"html"}).then(function(i){e(t.parse(i))},function(){i("svg not found.")})}),hi[this.src]):w.reject()},parse:function(t){var e=ci.parsefromstring(t,"image/svg+xml");return e.documentelement&&"svg"===e.documentelement.nodename?e:null}}})}function qt(t){t.component("switcher",{mixins:[re],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},connected:function(){this.$emitsync()},computed:{connects:function(){return g(this.connect,this.$el)||kt(this.$el.next("."+this.clscontainer))},toggles:function(){return kt(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(kt(t.currenttarget)[t.currenttarget.hasattribute(this.attritem)?"attr":"data"](this.attritem))}},{name:"swiperight swipeleft",filter:function(){return this.swiping},el:function(){return this.connects},delegate:function(){return"["+this.attritem+"],[data-"+this.attritem+"]"},handler:function(t){nt(t)&&(t.preventdefault(),window.getselection().tostring()||this.show("swipeleft"==t.type?"next":"previous"))}}],update:function(){this.updatearia(this.connects.children()),this.show(a(this.toggles.filter("."+this.cls+":first"))||a(this.toggles.eq(this.active))||this.toggles.first())},methods:{show:function(t){for(var e,i=this,n=this.toggles.length,o=this.connects.children("."+this.cls).index(),s=o>=0,r=f(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.connects.children(":nth-child("+(o+1)+"),:nth-child("+(r+1)+")")):this.togglenow(this.connects.children(":nth-child("+(r+1)+")")))}}})}function yt(t){t.component("tab",t.components.switcher.extend({mixins:[ye],name:"tab",props:{media:"media"},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 rt(t){t.component("toggle",{mixins:[t.mixin.toggable],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 g(this.$props.target||this.href,this.$el)||this.$el}},events:[{name:xe+" "+ke,filter:function(){return~this.mode.indexof("hover")},handler:function(t){nt(t)||this.toggle("toggle"+(t.type===xe?"show":"hide"))}},{name:"click",filter:function(){return~this.mode.indexof("click")||we},handler:function(t){if(nt(t)||~this.mode.indexof("click")){var e=kt(t.target).closest("a[href]");(kt(t.target).closest('a[href="#"], button').length||e.length&&(this.cls||!this.target.is(":visible")||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){var e=kt.event(t||"toggle");this.target.triggerhandler(e,[this]),e.isdefaultprevented()||this.toggleelement(this.target)}}})}function ut(t){t.component("leader",{mixins:[ye],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,array(this._width).join(this.fill))},events:["load","resize"]}]})}function vt(t){var e,i,o,s=null,r=0;te.on("load",t.update).on("resize",function(e){o||(fe(function(){t.update(e),o=!1}),o=!0)}).on("scroll",function(n){null===s&&(s=0),s!==window.pageyoffset&&(e=s\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=n('
').appendto(this.modal.panel),this.items.length>1&&n('
\n \n \n
\n ').appendto(this.modal.panel.addclass("uk-slidenav-position")),this.modal.$el.on("hidden",this.hide).on("click","["+this.attritem+"]",function(t){t.preventdefault(),o.show(n(t.currenttarget).attr(o.attritem))}).on("swiperight swipeleft",function(t){t.preventdefault(),window.getselection().tostring()||o.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 s=n.event("showitem");this.$el.trigger(s),s.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),s(t,{content:e,width:i,height:n}),this.$update()},seterror:function(t){this.setitem(t,'
loading resource failed!
',400,300)}}}),t.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"),t.mixin({events:{showitem:function(t){var e=this,i=this.getitem();if("video"===i.type||!i.source||i.source.match(/\.(mp4|webm|ogv)$/i)){var o=n('').on("loadedmetadata",function(){return e.setitem(i,o.attr({width:o[0].videowidth,height:o[0].videoheight}),o[0].videowidth,o[0].videoheight)}).attr("src",i.source);t.stopimmediatepropagation()}}}},"lightbox"),t.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"),t.mixin({events:{showitem:function(t){var e,i=this,o=this.getitem();if(e=o.source.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/)){var s=e[2],r=function(t,e){return i.setitem(o,'',t,e)};n.ajax({type:"get",url:" "}).then(function(t){return r(t.width,t.height)}),t.stopimmediatepropagation()}}}},"lightbox")}}function qt(t){if(!qt.installed){var e=t.util,i=e.$,n=e.each,o=e.pointerenter,s=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"},created:function(){a[this.pos]||(a[this.pos]=i('
').appendto(t.container)),this.$mount(i('
\n \n
'+this.message+"
\n
").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),t.$el.on(o,function(){return cleartimeout(t.timer)}).on(s,function(){return t.timer=settimeout(t.close,t.timeout)}))})},events:{click:function(t){i(t.target).closest('a[href="#"]').length&&t.preventdefault(),this.close()}},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)}}}),t.notification.closeall=function(e,i){n(t.instances,function(t,n){"notification"!==n.$options.name||e&&e!==n.group||n.close(i)})}}}function gt(t){function e(i){return t.getcomponent(i,"sortable")||i.parentnode&&e(i.parentnode)}function i(){var t=settimeout(function(){return r.trigger("click")},0),e=function(i){i.preventdefault(),i.stoppropagation(),cleartimeout(t),u(r,"click",e,!0)};c(r,"click",e,!0)}if(!gt.installed){var n=t.mixin,o=t.util,s=o.$,r=o.docelement,a=o.extend,l=o.getdimensions,h=o.iswithin,c=o.on,u=o.off,d=o.offsettop,f=o.pointerdown,p=o.pointermove,g=o.pointerup,m=o.promise,v=o.win;t.component("sortable",{mixins:[n.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,o=n.pagex,s=n.pagey;t.pos={x:o,y:s},i(e)}})},events:(w={},w[f]="init",w),update:{write:function(){var t=this;if(this.clsempty&&this.$el.toggleclass(this.clsempty,!this.$el.children().length),this.drag){this.drag.offset({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 v.scrolltop(t.scrolly+5)},5)}}},methods:{init:function(t){var e=s(t.target),i=this.$el.children().filter(function(e,i){return h(t.target,i)});!i.length||e.is(":input")||this.handle&&!h(e,this.handle)||t.button&&0!==t.button||h(e,"."+this.clsnodrag)||(t.preventdefault(),t.stoppropagation(),this.touched=[this],this.placeholder=i,this.origin=a({target:e,index:this.placeholder.index()},this.pos),r.on(p,this.move),r.on(g,this.end),v.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=l(this.placeholder),n=i.left,o=i.top;a(this.origin,{left:n-this.pos.x,top:o-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(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.$emit();var n="mousemove"===i.type?i.target:document.elementfrompoint(this.pos.x-document.body.scrollleft,this.pos.y-document.body.scrolltop),o=e(n),r=e(this.placeholder[0]),t=o!==r;if(o&&!h(n,this.placeholder)&&(!t||o.group&&o.group===r.group)){if(n=o.$el.is(n.parentnode)&&s(n)||o.$el.children().has(n),t)r.remove(this.placeholder);else if(!n.length)return;o.insert(this.placeholder,n),~this.touched.indexof(o)||this.touched.push(o); }},scroll:function t(){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),v.off("scroll",this.scroll),!this.drag)return void("mouseup"!==t.type&&h(t.target,"a[href]")&&(location.href=s(t.target).closest("a[href]").attr("href")));i();var n=e(this.placeholder[0]);this===n?this.origin.index!==this.placeholder.index()&&this.$el.trigger("change",[this,this.placeholder,"moved"]):(n.$el.trigger("change",[n,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)}),r.removeclass(this.clsdragstate)},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)};this.animation?this.animate(t):t()},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(a({position:"absolute",pointerevents:"none",width:t.outerwidth(),height:t.outerheight()},t.position())),t}),o={position:"",width:"",height:"",pointerevents:"",top:"",left:""};t(),n.foreach(function(t){return t.stop()}),this.$el.children().css(o),this.$updatesync("update",!0),this.$el.css("min-height",this.$el.height());var r=n.map(function(t){return t.position()});m.all(n.map(function(t,n){return t.css(i[n]).animate(r[n],e.animation).promise()})).then(function(){e.$el.css("min-height","").children().css(o),e.$updatesync("update",!0)})}}});var w}}function jt(t){if(!jt.installed){var e,i=t.util,n=t.mixin,o=i.$,s=i.doc,r=i.fastdom,a=i.flipposition,l=i.istouch,h=i.iswithin,c=i.pointerdown,u=i.pointerenter,d=i.pointerleave,f=i.tojquery;s.on("click",function(t){e&&!h(t.target,e.$el)&&e.hide()}),t.component("tooltip",{attrs:!0,mixins:[n.toggable,n.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},init:function(){this.container=this.container===!0&&t.container||this.container&&f(this.container)},connected:function(){var t=this;r.mutate(function(){return t.$el.removeattr("title").attr("aria-expanded",!1)})},disconnected:function(){this.hide()},methods:{show:function(){var t=this;e!==this&&(e&&e.hide(),e=this,cleartimeout(this.showtimer),this.tooltip=o('").appendto(this.container),this.$el.attr("aria-expanded",!0),this.positionat(this.tooltip,this.$el),this.origin="y"===this.getaxis()?a(this.dir)+"-"+this.align:this.align+"-"+a(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(){this.$el.is("input")&&this.$el[0]===document.activeelement||(e=e!==this&&e||!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)}},events:(p={blur:"hide"},p["focus "+u+" "+c]=function(t){t.type===c&&l(t)||this.show()},p[d]=function(t){l(t)||this.hide()},p)});var p}}function zt(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[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,ye=we?ge?"touchstart":"pointerdown":"mousedown",be=we?ge?"touchmove":"pointermove":"mousemove",$e=we?ge?"touchend":"pointerup":"mouseup",xe=we&&me?"pointerenter":"mouseenter",ke=we&&me?"pointerleave":"mouseleave",ce=we&&ge?"touchcancel":"pointercancel",te=f("transition","transition-start"),_e=f("transition","transition-end"),se=f("animation","animation-start"),ae=f("animation","animation-end"),ee={reads:[],writes:[],measure:function(t){return this.reads.push(t),l(this),t},mutate:function(t){return this.writes.push(t),l(this),t},clear:function(t){return q(this.reads,t)||q(this.writes,t)}};y.prototype={positions:[],position:null,init:function(){var t=this;this.positions=[],this.position=null;var e=!1;this.handler=function(i){e||settimeout(function(){var n=date.now(),o=t.positions.length;o&&n-t.positions[o-1].time>100&&t.positions.splice(0,o),t.positions.push({time:n,x:i.pagex,y:i.pagey}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0},ee.on("mousemove",this.handler)},cancel:function(){this.handler&&ee.off("mousemove",this.handler)},movesto:function(t){if(this.positions.length<2)return!1;var e=x(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 o=[[{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?(o[0].reverse(),o[1].reverse()):e.bottom<=i.y?o[0].reverse():e.top>=i.y&&o[1].reverse()),!!o.reduce(function(t,e){return t+(r(n,e[0])r(i,e[1]))},0)}};var oe={};oe.args=oe.attrs=oe.created=oe.events=oe.init=oe.ready=oe.connected=oe.disconnected=oe.destroy=function(e,i){return e=e&&!t.isarray(e)?[e]:e,i?e?e.concat(i):t.isarray(i)?i:[i]:e},oe.update=function(e,i){return oe.args(e,t.isfunction(i)?{write:i}:i)},oe.props=function(e,i){return t.isarray(i)&&(i=i.reduce(function(t,e){return t[e]=string,t},{})),oe.methods(e,i)},oe.computed=oe.defaults=oe.methods=function(e,i){return i?e?t.extend(!0,{},e,i):i:e};var de,ie,ne,be,pe,he=function(t,e){return t(e)?t:e},me={x:["width","left","right"],y:["height","top","bottom"]},je={};i(function(){var t,e,i,o=0,s=0;"msgesture"in window&&(be=new msgesture,be.target=document.body),n(document,"click",function(){return pe=!0},!0);var r=function(t){var e=t.velocityx>1?"right":t.velocityx<-1?"left":t.velocityy>1?"down":t.velocityy<-1?"up":null;e&&void 0!==je.el&&(je.el.trigger("swipe"),je.el.trigger("swipe"+e))};n(document,"msgestureend",r),n(document,"gestureend",r),n(document,ye,function(n){i=n.touches?n.touches[0]:n,t=date.now(),e=t-(je.last||t),je.el=kt("tagname"in i.target?i.target:i.target.parentnode),de&&cleartimeout(de),je.x1=i.pagex,je.y1=i.pagey,e>0&&e<=250&&(je.isdoubletap=!0),je.last=t,!be||"pointerdown"!=n.type&&"touchstart"!=n.type||be.addpointer(n.pointerid),pe=n.button>0}),n(document,be,function(t){i=t.touches?t.touches[0]:t,je.x2=i.pagex,je.y2=i.pagey,o+=math.abs(je.x1-je.x2),s+=math.abs(je.y1-je.y2)}),n(document,$e,function(){je.x2&&math.abs(je.x1-je.x2)>30||je.y2&&math.abs(je.y1-je.y2)>30?ne=settimeout(function(){void 0!==je.el&&(je.el.trigger("swipe"),je.el.trigger("swipe"+et(je.x1,je.x2,je.y1,je.y2))),je={}},0):"last"in je&&(isnan(o)||o<30&&s<30?ie=settimeout(function(){var t=kt.event("tap");t.canceltouch=it,void 0!==je.el&&je.el.trigger(t),je.isdoubletap?(void 0!==je.el&&je.el.trigger("doubletap"),je={}):de=settimeout(function(){de=null,void 0!==je.el&&(je.el.trigger("singletap"),pe||je.el.trigger("click")),je={}},300)}):je={},o=s=0)}),n(document,ce,it),n(window,"scroll",it)});var fe=!1;n(document,"touchstart",function(){return fe=!0},!0),n(document,"click",function(){fe=!1}),n(document,"touchcancel",function(){return fe=!1},!0);var le=object.freeze({win:te,doc:ee,docelement:ie,isrtl:ne,isready:e,ready:i,on:n,off:o,transition:s,transition:oe,animate:r,animation:se,isjquery:a,iswithin:l,attrfilter:h,removeclass:c,createevent:u,isinview:d,getindex:f,isvoidelement:p,dimensions:ae,query:g,observer:de,requestanimationframe:fe,cancelanimationframe:pe,haspromise:ve,hastouch:we,pointerdown:ye,pointermove:be,pointerup:$e,pointerenter:xe,pointerleave:ke,pointercancel:ce,transitionstart:te,transitionend:_e,animationstart:se,animationend:ae,getstyle:m,getcssvar:j,fastdom:ee,$:kt,bind:m,hasown:v,promise:w,classify:y,hyphenate:b,camelize:$,isstring:k,isnumber:c,isundefined:t,iscontextselector:_,getcontextselectors:s,tojquery:a,tonode:e,toboolean:o,tonumber:d,tolist:i,tomedia:n,coerce:b,toms:p,swap:h,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,mousetracker:y,mergeoptions:u,position:v,getdimensions:x,offsettop:q,flipposition:tt,istouch:nt}),ze=function(t){this._init(t)};ze.util=le,ze.data="__uikit__",ze.prefix="uk-",ze.options={},ze.instances={},ze.elements=[],st(ze),ht(ze),ct(ze),gt(ze),mt(ze);var we,qe,ye={init:function(){this.$el.addclass(this.$name)}},re={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&&this.animation[0]===!0}},methods:{toggleelement:function(t,e,i){var n,o=this,s=document.body,r=s.scrolltop,a=function(t){return w.all(t.toarray().map(function(t){return o._toggleelement(t,e,i)})).then(null,function(){})},l=function(t){var e=a(t);return o._queued=null,s.scrolltop=r,e};return t=kt(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 o.istoggled(e)})),a(n).then(function(){return o._queued&&l(o._queued)}))},togglenow:function(t,e){var i=this;return w.all(kt(t).toarray().map(function(t){return i._toggleelement(t,e,!1)})).then(null,function(){})},istoggled:function(t){return t=t&&kt(t)||this.$el,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;if(t=kt(t),se.inprogress(t))return se.cancel(t).then(function(){return n._toggleelement(t,e,i)});e="boolean"==typeof e?e:!this.istoggled(t);var o=kt.event("before"+(e?"show":"hide"));if(t.trigger(o,[this]),o.result===!1)return w.reject();var s=(i!==!1&&this.hasanimation?this.hastransition?this._toggleheight:this._toggleanimation:this._toggleimmediate)(t,e);return t.trigger(e?"show":"hide",[this]),s.then(function(){return t.trigger(e?"shown":"hidden",[n])})},_toggle:function(t,e){t=kt(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),ze.update(null,t)},_toggleimmediate:function(t,e){return this._toggle(t,e),w.resolve()},_toggleheight:function(e,i){var n,o=this,s=oe.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 oe.cancel(e).then(function(){return o.istoggled(e)||o._toggle(e,!0),e.height(""),w(function(l){return fe(function(){n=e.height()+(s?0:r),e.height(a),(i?oe.start(e,t.extend(o.initprops,{overflow:"hidden",height:n}),math.round(o.duration*(1-a/n)),o.transition):oe.start(e,o.hideprops,math.round(o.duration*(a/n)),o.transition).then(function(){o._toggle(e,!1),e.css(o.initprops)})).then(l)})})})},_toggleanimation:function(t,e){var i=this;return e?(this._toggle(t,!0),se.in(t,this.animation[0],this.duration,this.origin)):se.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},ue={mixins:[ye,re],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 kt(document.body)},panel:function(){return this.$el.find("."+this.clspanel)},container:function(){return this.$props.container===!0&&ze.container||this.$props.container&&a(this.$props.container)},transitionelement:function(){return this.panel},transitionduration:function(){return p(this.transitionelement.css("transition-duration"))}},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=we&&we!==this&&we;if(we=this,e){if(!this.stack)return e.hide().then(this.show),!1;this.prev=e}else fe(function(){return vt(t.$options.name)});e||(this.scrollbarwidth=window.innerwidth-ie[0].offsetwidth,this.body.css("overflow-y",this.scrollbarwidth&&this.overlay?"scroll":"")),ie.addclass(this.clspage)}},{name:"beforehide",self:!0,handler:function(){return!!this.istoggled()&&(we=we&&we!==this&&we||this.prev,void(we||wt(this.$options.name)))}},{name:"hidden",self:!0,handler:function(){we||(ie.removeclass(this.clspage),this.body.css("overflow-y",""))}}],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.$el.appendto(this.container),w(function(e){return fe(function(){return e(t.show())})})):this.togglenow(this.$el,!0)},hide:function(){return this.togglenow(this.$el,!1)},getactive:function(){return we},_toggleimmediate:function(t,e){var i=this;return this._toggle(t,e),this.transitionduration?w(function(t,e){i._transition&&(i.transitionelement.off(_e,i._transition.handler),i._transition.reject()),i._transition={reject:e,handler:function(){t(),i._transition=null}},i.transitionelement.one(_e,i._transition.handler)}):w.resolve()}}},ve={props:{pos:string,offset:null,flip:boolean,clspos:string},defaults:{pos:ne?"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){c(t,this.clspos+"-(top|bottom|left|right)(-[a-z]+)?").css({top:"",left:""});var n=d(this.offset)||0,o=this.getaxis(),s=v(t,e,"x"===o?tt(this.dir)+" "+this.align:this.align+" "+tt(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.toggleclass(this.clspos+"-"+this.dir+"-"+this.align,this.offset===!1)},getaxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},xe='',qe='',ge='',je='',ze='',ke='',ti='',ei='',ii='',ni='',oi='',si='',ri='',ai='',li='',hi={},ci=new domparser;return ze.version="3.0.0-beta.20",yt(ze),vt(ze),ze.use(xt),ze.use(qt),ze.use(gt),ze.use(jt),ze.use(zt),ot(ze),ze});