uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
3 lines (2 loc) • 88.2 kB
JavaScript
/*! UIkit 3.6.19 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkit=e()}(this,function(){"use strict";var t=Object.prototype,n=t.hasOwnProperty;function c(t,e){return n.call(t,e)}var e=/\B([A-Z])/g,f=it(function(t){return t.replace(e,"-$1").toLowerCase()}),i=/-(\w)/g,d=it(function(t){return t.replace(i,r)}),o=it(function(t){return t.length?r(0,t.charAt(0))+t.slice(1):""});function r(t,e){return e?e.toUpperCase():""}var s=String.prototype,a=s.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function p(t,e){return a.call(t,e)}var u=s.endsWith||function(t){return this.substr(-t.length)===t};function l(t,e){return u.call(t,e)}var h=Array.prototype,g=function(t,e){return!!~this.indexOf(t,e)},m=s.includes||g,v=h.includes||g;function w(t,e){return t&&(O(t)?m:v).call(t,e)}var b=h.findIndex||function(t){for(var e=arguments,n=0;n<this.length;n++)if(t.call(e[1],this[n],n,this))return n;return-1};function y(t,e){return b.call(t,e)}var x=Array.isArray;function $(t){return"function"==typeof t}function k(t){return null!==t&&"object"==typeof t}var E=t.toString;function T(t){return"[object Object]"===E.call(t)}function S(t){return k(t)&&t===t.window}function _(t){return 9===M(t)}function C(t){return 1<=M(t)}function A(t){return 1===M(t)}function M(t){return!S(t)&&k(t)&&t.nodeType}function B(t){return"boolean"==typeof t}function O(t){return"string"==typeof t}function N(t){return"number"==typeof t}function H(t){return N(t)||O(t)&&!isNaN(t-parseFloat(t))}function D(t){return!(x(t)?t.length:k(t)&&Object.keys(t).length)}function z(t){return void 0===t}function P(t){return B(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function I(t){t=Number(t);return!isNaN(t)&&t}function j(t){return parseFloat(t)||0}var L=Array.from||function(t){return h.slice.call(t)};function F(t){return V(t)[0]}function V(t){return t&&(C(t)?[t]:L(t).filter(C))||[]}function W(t){return S(t)?t:(t=F(t))?(_(t)?t:t.ownerDocument).defaultView:window}function R(t){return t?l(t,"ms")?j(t):1e3*j(t):0}function q(t,n){return t===n||k(t)&&k(n)&&Object.keys(t).length===Object.keys(n).length&&G(t,function(t,e){return t===n[e]})}function U(t,e,n){return t.replace(new RegExp(e+"|"+n,"g"),function(t){return t===e?n:e})}var Y=Object.assign||function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];t=Object(t);for(var i=0;i<e.length;i++){var r=e[i];if(null!==r)for(var o in r)c(r,o)&&(t[o]=r[o])}return t};function X(t){return t[t.length-1]}function G(t,e){for(var n in t)if(!1===e(t[n],n))return!1;return!0}function J(t,n){return t.slice().sort(function(t,e){t=t[n];void 0===t&&(t=0);e=e[n];return(e=void 0===e?0:e)<t?1:t<e?-1:0})}function K(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.min(Math.max(I(t)||0,e),n)}function Z(){}function Q(){for(var i=[],t=arguments.length;t--;)i[t]=arguments[t];return[["bottom","top"],["right","left"]].every(function(t){var e=t[0],n=t[1];return 0<Math.min.apply(Math,i.map(function(t){return t[e]}))-Math.max.apply(Math,i.map(function(t){return t[n]}))})}function tt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}var et={ratio:function(t,e,n){var i="width"===e?"height":"width",r={};return r[i]=t[e]?Math.round(n*t[i]/t[e]):t[i],r[e]=n,r},contain:function(n,i){var r=this;return G(n=Y({},n),function(t,e){return n=n[e]>i[e]?r.ratio(n,e,i[e]):n}),n},cover:function(n,i){var r=this;return G(n=this.contain(n,i),function(t,e){return n=n[e]<i[e]?r.ratio(n,e,i[e]):n}),n}};function nt(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var r=(e=V(e)).length;return t=H(t)?I(t):"next"===t?n+1:"previous"===t?n-1:e.indexOf(F(t)),i?K(t,0,r-1):(t%=r)<0?t+r:t}function it(e){var n=Object.create(null);return function(t){return n[t]||(n[t]=e(t))}}function rt(t,e,n){if(k(e))for(var i in e)rt(t,i,e[i]);else{if(z(n))return(t=F(t))&&t.getAttribute(e);V(t).forEach(function(t){null===(n=$(n)?n.call(t,rt(t,e)):n)?st(t,e):t.setAttribute(e,n)})}}function ot(t,e){return V(t).some(function(t){return t.hasAttribute(e)})}function st(t,e){t=V(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.hasAttribute(e)&&t.removeAttribute(e)})})}function at(t,e){for(var n=0,i=[e,"data-"+e];n<i.length;n++)if(ot(t,i[n]))return rt(t,i[n])}var ut="undefined"!=typeof window,ct=ut&&/msie|trident/i.test(window.navigator.userAgent),lt=ut&&"rtl"===rt(document.documentElement,"dir"),ht=ut&&"ontouchstart"in window,ft=ut&&window.PointerEvent,dt=ut&&(ht||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints),pt=ft?"pointerdown":ht?"touchstart":"mousedown",gt=ft?"pointermove":ht?"touchmove":"mousemove",mt=ft?"pointerup":ht?"touchend":"mouseup",vt=ft?"pointerenter":ht?"":"mouseenter",wt=ft?"pointerleave":ht?"":"mouseleave",bt=ft?"pointercancel":"touchcancel",yt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function xt(t){return V(t).some(function(t){return yt[t.tagName.toLowerCase()]})}function $t(t){return V(t).some(function(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length})}var kt="input,select,textarea,button";function Et(t){return V(t).some(function(t){return At(t,kt)})}function Tt(t){return(t=F(t))&&A(t.parentNode)&&t.parentNode}function St(t,e){return V(t).filter(function(t){return At(t,e)})}var _t=ut?Element.prototype:{},Ct=_t.matches||_t.webkitMatchesSelector||_t.msMatchesSelector||Z;function At(t,e){return V(t).some(function(t){return Ct.call(t,e)})}var Mt=_t.closest||function(t){var e=this;do{if(At(e,t))return e}while(e=Tt(e))};function Bt(t,e){return p(e,">")&&(e=e.slice(1)),A(t)?Mt.call(t,e):V(t).map(function(t){return Bt(t,e)}).filter(Boolean)}function Ot(t,e){return O(e)?At(t,e)||!!Bt(t,e):t===e||(_(e)?e.documentElement:F(e)).contains(F(t))}function Nt(t,e){for(var n=[];t=Tt(t);)e&&!At(t,e)||n.push(t);return n}function Ht(t,e){t=(t=F(t))?V(t.children):[];return e?St(t,e):t}function Dt(t,e){return e?V(t).indexOf(F(e)):Ht(Tt(t)).indexOf(t)}function zt(t,e){return F(t)||jt(t,It(t,e))}function Pt(t,e){var n=V(t);return n.length&&n||Lt(t,It(t,e))}function It(t,e){return void 0===e&&(e=document),O(t)&&Rt(t)||_(e)?e:e.ownerDocument}function jt(t,e){return F(Ft(t,e,"querySelector"))}function Lt(t,e){return V(Ft(t,e,"querySelectorAll"))}function Ft(t,o,e){if(void 0===o&&(o=document),!t||!O(t))return null;t=t.replace(Wt,"$1 *"),Rt(t)&&(t=Ut(t).map(function(t,e){var n,i,r=o;return"!"===t[0]&&(i=t.substr(1).trim().split(" "),r=Bt(Tt(o),i[0]),t=i.slice(1).join(" ").trim()),"-"===t[0]&&(n=t.substr(1).trim().split(" "),r=At(i=(r||o).previousElementSibling,t.substr(1))?i:null,t=n.slice(1).join(" ")),r?function(t){var e=[];for(;t.parentNode;){if(t.id){e.unshift("#"+Xt(t.id));break}var n=t.tagName;"HTML"!==n&&(n+=":nth-child("+(Dt(t)+1)+")"),e.unshift(n),t=t.parentNode}return e.join(" > ")}(r)+" "+t:null}).filter(Boolean).join(","),o=document);try{return o[e](t)}catch(t){return null}}var Vt=/(^|[^\\],)\s*[!>+~-]/,Wt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Rt=it(function(t){return t.match(Vt)}),qt=/.*?[^\\](?:,|$)/g,Ut=it(function(t){return t.match(qt).map(function(t){return t.replace(/,$/,"").trim()})});var Yt=ut&&window.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};function Xt(t){return O(t)?Yt.call(null,t):""}function Gt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,i,r=te(t),o=r[0],s=r[1],a=r[2],u=r[3],c=r[4],o=re(o);return 1<u.length&&(n=u,u=function(t){return x(t.detail)?n.apply(void 0,[t].concat(t.detail)):n(t)}),c&&c.self&&(i=u,u=function(t){if(t.target===t.currentTarget||t.target===t.current)return i.call(null,t)}),a&&(u=function(n,i){var r=this;return function(e){var t=">"===n[0]?Lt(n,e.currentTarget).reverse().filter(function(t){return Ot(e.target,t)})[0]:Bt(e.target,n);t&&(e.current=t,i.call(r,e))}}(a,u)),c=ee(c),s.split(" ").forEach(function(e){return o.forEach(function(t){return t.addEventListener(e,u,c)})}),function(){return Jt(o,s,u,c)}}function Jt(t,e,n,i){i=ee(i=void 0===i?!1:i),t=re(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeEventListener(e,n,i)})})}function Kt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=te(t),i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],u=n[5],c=Gt(i,r,o,function(t){var e=!u||u(t);e&&(c(),s(t,e))},a);return c}function Zt(t,n,i){return re(t).reduce(function(t,e){return t&&e.dispatchEvent(Qt(n,!0,!0,i))},!0)}function Qt(t,e,n,i){var r;return void 0===e&&(e=!0),void 0===n&&(n=!1),O(t)&&((r=document.createEvent("CustomEvent")).initCustomEvent(t,e,n,i),t=r),t}function te(t){return $(t[2])&&t.splice(2,0,!1),t}function ee(t){return t&&ct&&!B(t)?!!t.capture:t}function ne(t){return t&&"addEventListener"in t}function ie(t){return ne(t)?t:F(t)}function re(t){return x(t)?t.map(ie).filter(Boolean):O(t)?Lt(t):ne(t)?[t]:V(t)}function oe(t){return"touch"===t.pointerType||!!t.touches}function se(t){var e=t.touches,n=t.changedTouches,t=e&&e[0]||n&&n[0]||t;return{x:t.clientX,y:t.clientY}}function ae(){var n=this;this.promise=new ue(function(t,e){n.reject=e,n.resolve=t})}var ue=ut&&window.Promise||he,ce=2,le=ut&&window.setImmediate||setTimeout;function he(t){this.state=ce,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}he.reject=function(n){return new he(function(t,e){e(n)})},he.resolve=function(n){return new he(function(t,e){t(n)})},he.all=function(o){return new he(function(n,t){var i=[],r=0;0===o.length&&n(i);for(var e=0;e<o.length;e+=1)he.resolve(o[e]).then(function(e){return function(t){i[e]=t,(r+=1)===o.length&&n(i)}}(e),t)})},he.race=function(i){return new he(function(t,e){for(var n=0;n<i.length;n+=1)he.resolve(i[n]).then(t,e)})};var fe=he.prototype;function de(t,e){var n=Y({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:Z,responseType:""},e);return ue.resolve().then(function(){return n.beforeSend(n)}).then(function(){return o=t,s=n,new ue(function(t,e){var n,i,r=s.xhr;for(n in s)if(n in r)try{r[n]=s[n]}catch(t){}for(i in r.open(s.method.toUpperCase(),o),s.headers)r.setRequestHeader(i,s.headers[i]);Gt(r,"load",function(){0===r.status||200<=r.status&&r.status<300||304===r.status?("json"===s.responseType&&O(r.response)&&(r=Y(function(t){var e,n={};for(e in t)n[e]=t[e];return n}(r),{response:JSON.parse(r.response)})),t(r)):e(Y(Error(r.statusText),{xhr:r,status:r.status}))}),Gt(r,"error",function(){return e(Y(Error("Network Error"),{xhr:r}))}),Gt(r,"timeout",function(){return e(Y(Error("Network Timeout"),{xhr:r}))}),r.send(s.data)});var o,s})}function pe(i,r,o){return new ue(function(t,e){var n=new Image;n.onerror=function(t){return e(t)},n.onload=function(){return t(n)},o&&(n.sizes=o),r&&(n.srcset=r),n.src=i})}function ge(t){return(t=Ae(t)).innerHTML="",t}function me(t,e){return t=Ae(t),z(e)?t.innerHTML:ve(t.hasChildNodes()?ge(t):t,e)}function ve(e,t){return e=Ae(e),ye(t,function(t){return e.appendChild(t)})}function we(e,t){return e=Ae(e),ye(t,function(t){return e.parentNode.insertBefore(t,e)})}function be(e,t){return e=Ae(e),ye(t,function(t){return e.nextSibling?we(e.nextSibling,t):ve(e.parentNode,t)})}function ye(t,e){return(t=O(t)?_e(t):t)?"length"in t?V(t).map(e):e(t):null}function xe(t){V(t).forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}function $e(t,e){for(e=F(we(t,e));e.firstChild;)e=e.firstChild;return ve(e,t),e}function ke(t,e){return V(V(t).map(function(t){return t.hasChildNodes?$e(V(t.childNodes),e):ve(t,e)}))}function Ee(t){V(t).map(Tt).filter(function(t,e,n){return n.indexOf(t)===e}).forEach(function(t){we(t,t.childNodes),xe(t)})}fe.resolve=function(t){var e=this;if(e.state===ce){if(t===e)throw new TypeError("Promise settled with itself.");var n=!1;try{var i=t&&t.then;if(null!==t&&k(t)&&$(i))return void i.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},fe.reject=function(t){var e=this;if(e.state===ce){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},fe.notify=function(){var o=this;le(function(){if(o.state!==ce)for(;o.deferred.length;){var t=o.deferred.shift(),e=t[0],n=t[1],i=t[2],r=t[3];try{0===o.state?$(e)?i(e.call(void 0,o.value)):i(o.value):1===o.state&&($(n)?i(n.call(void 0,o.value)):r(o.value))}catch(t){r(t)}}})},fe.then=function(n,i){var r=this;return new he(function(t,e){r.deferred.push([n,i,t,e]),r.notify()})},fe.catch=function(t){return this.then(void 0,t)};var Te=/^\s*<(\w+|!)[^>]*>/,Se=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _e(t){var e=Se.exec(t);if(e)return document.createElement(e[1]);e=document.createElement("div");return Te.test(t)?e.insertAdjacentHTML("beforeend",t.trim()):e.textContent=t,1<e.childNodes.length?V(e.childNodes):e.firstChild}function Ce(t,e){if(A(t))for(e(t),t=t.firstElementChild;t;){var n=t.nextElementSibling;Ce(t,e),t=n}}function Ae(t,e){return O(t)?Be(t)?F(_e(t)):jt(t,e):F(t)}function Me(t,e){return O(t)?Be(t)?V(_e(t)):Lt(t,e):V(t)}function Be(t){return"<"===t[0]||t.match(/^\s*</)}function Oe(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];Ie(t,e,"add")}function Ne(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];Ie(t,e,"remove")}function He(t,e){rt(t,"class",function(t){return(t||"").replace(new RegExp("\\b"+e+"\\b","g"),"")})}function De(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];e[0]&&Ne(t,e[0]),e[1]&&Oe(t,e[1])}function ze(t,e){e=je(e)[0];for(var n=V(t),i=0;i<n.length;i++)if(e&&n[i].classList.contains(e))return!0;return!1}function Pe(t,e,n){e=je(e);for(var i=V(t),r=0;r<i.length;r++)for(var o=i[r].classList,s=0;s<e.length;s++)z(n)?o.toggle(e[s]):Le.Force?o.toggle(e[s],!!n):o[n?"add":"remove"](e[s])}function Ie(t,n,i){var r;n=n.reduce(function(t,e){return t.concat(je(e))},[]);for(var o=V(t),e=0;e<o.length;e++)!function(e){Le.Multiple?(r=o[e].classList)[i].apply(r,n):n.forEach(function(t){return o[e].classList[i](t)})}(e)}function je(t){return(~(t=String(t)).indexOf(" ")?t.split(" "):[t]).filter(Boolean)}var Le={get Multiple(){return this.get("Multiple")},get Force(){return this.get("Force")},get:function(t){var e=document.createElement("_").classList;return e.add("a","b"),e.toggle("c",!1),(Le={Multiple:e.contains("b"),Force:!e.contains("c")})[t]}},Fe={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function Ve(t,e,r,o){return void 0===o&&(o=""),V(t).map(function(n){if(O(e)){if(e=Ye(e),z(r))return Re(n,e);r||N(r)?n.style.setProperty(e,H(r)&&!Fe[e]?r+"px":r,o):n.style.removeProperty(e)}else{if(x(e)){var i=We(n);return e.reduce(function(t,e){return t[e]=i[Ye(e)],t},{})}k(e)&&(o=r,G(e,function(t,e){return Ve(n,e,t,o)}))}return n})[0]}function We(t,e){return W(t).getComputedStyle(t,e)}function Re(t,e,n){return We(t,n)[e]}var qe=it(function(t){var e=ve(document.documentElement,document.createElement("div"));return Oe(e,"uk-"+t),t=Re(e,"content",":before").replace(/^["'](.*)["']$/,"$1"),xe(e),t});function Ue(t){return ct?qe(t):We(document.documentElement).getPropertyValue("--uk-"+t)}var Ye=it(function(t){t=f(t);var e=document.documentElement.style;if(t in e)return t;var n,i=Xe.length;for(;i--;)if((n="-"+Xe[i]+"-"+t)in e)return n}),Xe=["webkit","moz","ms"];function Ge(t,s,a,u){return void 0===a&&(a=400),void 0===u&&(u="linear"),ue.all(V(t).map(function(o){return new ue(function(e,n){for(var t in s){var i=Ve(o,t);""===i&&Ve(o,t,i)}var r=setTimeout(function(){return Zt(o,"transitionend")},a);Kt(o,"transitionend transitioncanceled",function(t){t=t.type;clearTimeout(r),Ne(o,"uk-transition"),Ve(o,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),"transitioncanceled"===t?n():e(o)},{self:!0}),Oe(o,"uk-transition"),Ve(o,Y({transitionProperty:Object.keys(s).map(Ye).join(","),transitionDuration:a+"ms",transitionTimingFunction:u},s))})}))}var Je={start:Ge,stop:function(t){return Zt(t,"transitionend"),ue.resolve()},cancel:function(t){Zt(t,"transitioncanceled")},inProgress:function(t){return ze(t,"uk-transition")}},Ke="uk-animation-";function Ze(t,o,s,a,u){return void 0===s&&(s=200),ue.all(V(t).map(function(r){return new ue(function(e,n){Zt(r,"animationcanceled");var i=setTimeout(function(){return Zt(r,"animationend")},s);Kt(r,"animationend animationcanceled",function(t){t=t.type;clearTimeout(i),"animationcanceled"===t?n():e(r),Ve(r,"animationDuration",""),He(r,Ke+"\\S*")},{self:!0}),Ve(r,"animationDuration",s+"ms"),Oe(r,o,Ke+(u?"leave":"enter")),p(o,Ke)&&(a&&Oe(r,"uk-transform-origin-"+a),u&&Oe(r,Ke+"reverse"))})}))}var Qe=new RegExp(Ke+"(enter|leave)"),tn={in:Ze,out:function(t,e,n,i){return Ze(t,e,n,i,!0)},inProgress:function(t){return Qe.test(rt(t,"class"))},cancel:function(t){Zt(t,"animationcanceled")}},en={width:["left","right"],height:["top","bottom"]};function nn(t){t=A(t)?F(t).getBoundingClientRect():{height:an(t),width:un(t),top:0,left:0};return{height:t.height,width:t.width,top:t.top,left:t.left,bottom:t.top+t.height,right:t.left+t.width}}function rn(n,i){var t,r=nn(n),e=W(n),o={height:e.pageYOffset,width:e.pageXOffset};for(t in en)for(var s in en[t])r[en[t][s]]+=o[t];if(!i)return r;var a=Ve(n,"position");G(Ve(n,["left","top"]),function(t,e){return Ve(n,e,i[e]-r[e]+j("absolute"===a&&"auto"===t?on(n)[e]:t))})}function on(t){for(var e=rn(t),n=e.top,i=e.left,r=F(t),e=r.ownerDocument,o=e.body,s=e.documentElement,a=r.offsetParent||s;a&&(a===o||a===s)&&"static"===Ve(a,"position");)a=a.parentNode;return A(a)&&(n-=(r=rn(a)).top+j(Ve(a,"borderTopWidth")),i-=r.left+j(Ve(a,"borderLeftWidth"))),{top:n-j(Ve(t,"marginTop")),left:i-j(Ve(t,"marginLeft"))}}function sn(t){var e=[0,0];t=F(t);do{if(e[0]+=t.offsetTop,e[1]+=t.offsetLeft,"fixed"===Ve(t,"position")){var n=W(t);return e[0]+=n.pageYOffset,e[1]+=n.pageXOffset,e}}while(t=t.offsetParent);return e}var an=cn("height"),un=cn("width");function cn(i){var r=o(i);return function(t,e){if(z(e)){if(S(t))return t["inner"+r];if(_(t)){var n=t.documentElement;return Math.max(n["offset"+r],n["scroll"+r])}return(e="auto"===(e=Ve(t=F(t),i))?t["offset"+r]:j(e)||0)-ln(t,i)}return Ve(t,i,e||0===e?+e+ln(t,i)+"px":"")}}function ln(n,t,e){return void 0===e&&(e="border-box"),Ve(n,"boxSizing")===e?en[t].map(o).reduce(function(t,e){return t+j(Ve(n,"padding"+e))+j(Ve(n,"border"+e+"Width"))},0):0}function hn(t){for(var e in en)for(var n in en[e])if(en[e][n]===t)return en[e][1-n];return t}function fn(t,e,n){return void 0===e&&(e="width"),void 0===n&&(n=window),H(t)?+t:l(t,"vh")?dn(an(W(n)),t):l(t,"vw")?dn(un(W(n)),t):l(t,"%")?dn(nn(n)[e],t):j(t)}function dn(t,e){return t*j(e)/100}var pn={reads:[],writes:[],read:function(t){return this.reads.push(t),vn(),t},write:function(t){return this.writes.push(t),vn(),t},clear:function(t){bn(this.reads,t),bn(this.writes,t)},flush:gn};function gn(t){void 0===t&&(t=1),wn(pn.reads),wn(pn.writes.splice(0)),pn.scheduled=!1,(pn.reads.length||pn.writes.length)&&vn(t+1)}var mn=4;function vn(t){pn.scheduled||(pn.scheduled=!0,t&&t<mn?ue.resolve().then(function(){return gn(t)}):requestAnimationFrame(function(){return gn()}))}function wn(t){for(var e;e=t.shift();)try{e()}catch(t){console.error(t)}}function bn(t,e){e=t.indexOf(e);return~e&&t.splice(e,1)}function yn(){}yn.prototype={positions:[],init:function(){var e,t=this;this.positions=[],this.unbind=Gt(document,"mousemove",function(t){return e=se(t)}),this.interval=setInterval(function(){e&&(t.positions.push(e),5<t.positions.length&&t.positions.shift())},50)},cancel:function(){this.unbind&&this.unbind(),this.interval&&clearInterval(this.interval)},movesTo:function(t){if(this.positions.length<2)return!1;var e=t.getBoundingClientRect(),n=e.left,i=e.right,r=e.top,o=e.bottom,s=this.positions[0],t=X(this.positions),a=[s,t];return!tt(t,e)&&[[{x:n,y:r},{x:i,y:o}],[{x:n,y:o},{x:i,y:r}]].some(function(t){t=function(t,e){var n=t[0],i=n.x,r=n.y,o=t[1],s=o.x,a=o.y,u=e[0],n=u.x,t=u.y,o=e[1],u=o.x,e=o.y,o=(e-t)*(s-i)-(u-n)*(a-r);if(0==o)return!1;o=((u-n)*(r-t)-(e-t)*(i-n))/o;if(o<0)return!1;return{x:i+o*(s-i),y:r+o*(a-r)}}(a,t);return t&&tt(t,e)})}};var xn={};function $n(t,e,n){return xn.computed($(t)?t.call(n,n):t,$(e)?e.call(n,n):e)}function kn(t,e){return t=t&&!x(t)?[t]:t,e?t?t.concat(e):x(e)?e:[e]:t}function En(e,n,i){var t,r,o={};if((n=$(n)?n.options:n).extends&&(e=En(e,n.extends,i)),n.mixins)for(var s=0,a=n.mixins.length;s<a;s++)e=En(e,n.mixins[s],i);for(t in e)u(t);for(r in n)c(e,r)||u(r);function u(t){o[t]=(xn[t]||function(t,e){return z(e)?t:e})(e[t],n[t],i)}return o}function Tn(t,e){var n;void 0===e&&(e=[]);try{return t?p(t,"{")?JSON.parse(t):e.length&&!w(t,":")?((n={})[e[0]]=t,n):t.split(";").reduce(function(t,e){var n=e.split(/:(.*)/),e=n[0],n=n[1];return e&&!z(n)&&(t[e.trim()]=n.trim()),t},{}):{}}catch(t){return{}}}function Sn(t){if(Mn(t)&&Nn(t,{func:"playVideo",method:"play"}),An(t))try{t.play().catch(Z)}catch(t){}}function _n(t){Mn(t)&&Nn(t,{func:"pauseVideo",method:"pause"}),An(t)&&t.pause()}function Cn(t){Mn(t)&&Nn(t,{func:"mute",method:"setVolume",value:0}),An(t)&&(t.muted=!0)}function An(t){return t&&"VIDEO"===t.tagName}function Mn(t){return t&&"IFRAME"===t.tagName&&(Bn(t)||On(t))}function Bn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function On(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}function Nn(t,e){(function(e){if(e[Dn])return e[Dn];var n,i=Bn(e),r=On(e),o=++zn;return e[Dn]=new ue(function(t){i&&Kt(e,"load",function(){function t(){return Hn(e,{event:"listening",id:o})}n=setInterval(t,100),t()}),Kt(window,"message",t,!1,function(t){var e=t.data;try{return(e=JSON.parse(e))&&(i&&e.id===o&&"onReady"===e.event||r&&Number(e.player_id)===o)}catch(t){}}),e.src=e.src+(w(e.src,"?")?"&":"?")+(i?"enablejsapi=1":"api=1&player_id="+o)}).then(function(){return clearInterval(n)})})(t).then(function(){return Hn(t,e)})}function Hn(t,e){try{t.contentWindow.postMessage(JSON.stringify(Y({event:"command"},e)),"*")}catch(t){}}xn.events=xn.created=xn.beforeConnect=xn.connected=xn.beforeDisconnect=xn.disconnected=xn.destroy=kn,xn.args=function(t,e){return!1!==e&&kn(e||t)},xn.update=function(t,e){return J(kn(t,$(e)?{read:e}:e),"order")},xn.props=function(t,e){return x(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),xn.methods(t,e)},xn.computed=xn.methods=function(t,e){return e?t?Y({},t,e):e:t},xn.data=function(e,n,t){return t?$n(e,n,t):n?e?function(t){return $n(e,n,t)}:n:e};var Dn="_ukPlayer",zn=0;function Pn(t,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),!!$t(t)&&Q.apply(void 0,Fn(t).map(function(t){var e=rn(Vn(t)),n=e.top,i=e.left,t=e.bottom,e=e.right;return{top:n-r,left:i-o,bottom:t+r,right:e+o}}).concat(rn(t)))}function In(t,e){(t=(S(t)||_(t)?Rn:F)(t)).scrollTop=e}function jn(s,t){var a=(t=void 0===t?{}:t).offset;if(void 0===a&&(a=0),$t(s)){var u=Fn(s),c=0;return u.reduce(function(t,e,n){var i=e.scrollTop,r=e.scrollHeight-Wn(e),o=Math.ceil(rn(u[n-1]||s).top-rn(Vn(e)).top-a+c+i);return r<o?(c=o-r,o=r):c=0,function(){return s=e,a=o-i,new ue(function(n){var t,i=s.scrollTop,r=(t=Math.abs(a),40*Math.pow(t,.375)),o=Date.now();!function t(){var e,e=(e=K((Date.now()-o)/r),.5*(1-Math.cos(Math.PI*e)));In(s,i+a*e),1!=e?requestAnimationFrame(t):n()}()}).then(t);var s,a}},function(){return ue.resolve()})()}}function Ln(t,e){if(void 0===e&&(e=0),!$t(t))return 0;var n=Fn(t,/auto|scroll/,!0)[0],i=n.scrollHeight,r=n.scrollTop,o=Wn(n),s=sn(t)[0]-r-sn(n)[0],n=Math.min(o,s+r);return K(-1*(s-n)/Math.min(t.offsetHeight+e+n,i-(s+r),i-o))}function Fn(t,e,n){void 0===e&&(e=/auto|scroll|hidden/),void 0===n&&(n=!1);var i=Rn(t),r=Nt(t).reverse(),t=y(r=r.slice(r.indexOf(i)+1),function(t){return"fixed"===Ve(t,"position")});return~t&&(r=r.slice(t)),[i].concat(r.filter(function(t){return e.test(Ve(t,"overflow"))&&(!n||t.scrollHeight>Wn(t))})).reverse()}function Vn(t){return t===Rn(t)?window:t}function Wn(t){return(t===Rn(t)?document.documentElement:t).clientHeight}function Rn(t){t=W(t).document;return t.scrollingElement||t.documentElement}var qn={width:["x","left","right"],height:["y","top","bottom"]};function Un(t,e,l,h,f,n,i,r){l=Xn(l),h=Xn(h);var d={element:l,target:h};if(!t||!e)return d;var o,p=rn(t),g=rn(e),m=g;return Yn(m,l,p,-1),Yn(m,h,g,1),f=Gn(f,p.width,p.height),n=Gn(n,g.width,g.height),f.x+=n.x,f.y+=n.y,m.left+=f.x,m.top+=f.y,i&&(o=Fn(t).map(Vn),r&&w(o,r)&&o.unshift(r),o=o.map(function(t){return rn(t)}),G(qn,function(t,s){var a=t[0],u=t[1],c=t[2];!0!==i&&!w(i,a)||o.some(function(n){var t=l[a]===u?-p[s]:l[a]===c?p[s]:0,e=h[a]===u?g[s]:h[a]===c?-g[s]:0;if(m[u]<n[u]||m[u]+p[s]>n[c]){var i=p[s]/2,r="center"===h[a]?-g[s]/2:0;return"center"===l[a]&&(o(i,r)||o(-i,-r))||o(t,e)}function o(e,t){t=j((m[u]+e+t-2*f[a]).toFixed(4));if(t>=n[u]&&t+p[s]<=n[c])return m[u]=t,["element","target"].forEach(function(t){d[t][a]=e?d[t][a]===qn[s][1]?qn[s][2]:qn[s][1]:d[t][a]}),!0}})})),rn(t,m),d}function Yn(r,o,s,a){G(qn,function(t,e){var n=t[0],i=t[1],t=t[2];o[n]===t?r[i]+=s[e]*a:"center"===o[n]&&(r[i]+=s[e]*a/2)})}function Xn(t){var e=/left|center|right/,n=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat("center"):n.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:n.test(t[1])?t[1]:"center"}}function Gn(t,e,n){var i=(t||"").split(" "),t=i[0],i=i[1];return{x:t?j(t)*(l(t,"%")?e/100:1):0,y:i?j(i)*(l(i,"%")?n/100:1):0}}var Jn=Object.freeze({__proto__:null,ajax:de,getImage:pe,transition:Ge,Transition:Je,animate:Ze,Animation:tn,attr:rt,hasAttr:ot,removeAttr:st,data:at,addClass:Oe,removeClass:Ne,removeClasses:He,replaceClass:De,hasClass:ze,toggleClass:Pe,dimensions:nn,offset:rn,position:on,offsetPosition:sn,height:an,width:un,boxModelAdjust:ln,flipPosition:hn,toPx:fn,ready:function(t){var e;"loading"===document.readyState?e=Gt(document,"DOMContentLoaded",function(){e(),t()}):t()},empty:ge,html:me,prepend:function(e,t){return(e=Ae(e)).hasChildNodes()?ye(t,function(t){return e.insertBefore(t,e.firstChild)}):ve(e,t)},append:ve,before:we,after:be,remove:xe,wrapAll:$e,wrapInner:ke,unwrap:Ee,fragment:_e,apply:Ce,$:Ae,$$:Me,inBrowser:ut,isIE:ct,isRtl:lt,hasTouch:dt,pointerDown:pt,pointerMove:gt,pointerUp:mt,pointerEnter:vt,pointerLeave:wt,pointerCancel:bt,on:Gt,off:Jt,once:Kt,trigger:Zt,createEvent:Qt,toEventTargets:re,isTouch:oe,getEventPos:se,fastdom:pn,isVoidElement:xt,isVisible:$t,selInput:kt,isInput:Et,parent:Tt,filter:St,matches:At,closest:Bt,within:Ot,parents:Nt,children:Ht,index:Dt,hasOwn:c,hyphenate:f,camelize:d,ucfirst:o,startsWith:p,endsWith:l,includes:w,findIndex:y,isArray:x,isFunction:$,isObject:k,isPlainObject:T,isWindow:S,isDocument:_,isNode:C,isElement:A,isBoolean:B,isString:O,isNumber:N,isNumeric:H,isEmpty:D,isUndefined:z,toBoolean:P,toNumber:I,toFloat:j,toArray:L,toNode:F,toNodes:V,toWindow:W,toMs:R,isEqual:q,swap:U,assign:Y,last:X,each:G,sortBy:J,uniqueBy:function(t,e){var n=new Set;return t.filter(function(t){t=t[e];return!n.has(t)&&(n.add(t)||!0)})},clamp:K,noop:Z,intersectRect:Q,pointInRect:tt,Dimensions:et,getIndex:nt,memoize:it,MouseTracker:yn,mergeOptions:En,parseOptions:Tn,play:Sn,pause:_n,mute:Cn,positionAt:Un,Promise:ue,Deferred:ae,query:zt,queryAll:Pt,find:jt,findAll:Lt,escape:Xt,css:Ve,getCssVar:Ue,propName:Ye,isInView:Pn,scrollTop:In,scrollIntoView:jn,scrolledOver:Ln,scrollParents:Fn,getViewport:Vn,getViewportClientHeight:Wn});function Kn(t){this._init(t)}var Zn,Qn,ti,ei,ni,ii,ri,oi,si,ai=it(function(t){return!(!p(t,"uk-")&&!p(t,"data-uk-"))&&d(t.replace("data-uk-","").replace("uk-",""))});function ui(t,e){if(t)for(var n in t)t[n]._connected&&t[n]._callUpdate(e)}function ci(t,e){var n={},i=t.args;void 0===i&&(i=[]);var r=t.props;void 0===r&&(r={});var o,s=t.el;if(!r)return n;for(o in r){var a=f(o),u=at(s,a);z(u)||(u=r[o]===Boolean&&""===u||hi(r[o],u),("target"!==a||u&&!p(u,"_"))&&(n[o]=u))}var c,l=Tn(at(s,e),i);for(c in l){var h=d(c);void 0!==r[h]&&(n[h]=hi(r[h],l[c]))}return n}function li(e,n,i){var t=(n=!T(n)?{name:i,handler:n}:n).name,r=n.el,o=n.handler,s=n.capture,a=n.passive,u=n.delegate,c=n.filter,l=n.self,r=$(r)?r.call(e):r||e.$el;x(r)?r.forEach(function(t){return li(e,Y({},n,{el:t}),i)}):!r||c&&!c.call(e)||e._events.push(Gt(r,t,u?O(u)?u:u.call(e):null,O(o)?e[o]:o.bind(e),{passive:a,capture:s,self:l}))}function hi(t,e){return t===Boolean?P(e):t===Number?I(e):"list"===t?x(n=e)?n:O(n)?n.split(/,(?![^(]*\))/).map(function(t){return H(t)?I(t):P(t.trim())}):[n]:t?t(e):e;var n}Kn.util=Jn,Kn.data="__uikit__",Kn.prefix="uk-",Kn.options={},Kn.version="3.6.19",ti=(Zn=Kn).data,Zn.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},Zn.mixin=function(t,e){(e=(O(e)?Zn.component(e):e)||this).options=En(e.options,t)},Zn.extend=function(t){t=t||{};function e(t){this._init(t)}return((e.prototype=Object.create(this.prototype)).constructor=e).options=En(this.options,t),e.super=this,e.extend=this.extend,e},Zn.update=function(t,e){Nt(t=t?F(t):document.body).reverse().forEach(function(t){return ui(t[ti],e)}),Ce(t,function(t){return ui(t[ti],e)})},Object.defineProperty(Zn,"container",{get:function(){return Qn||document.body},set:function(t){Qn=Ae(t)}}),(ei=Kn).prototype._callHook=function(t){var e=this,t=this.$options[t];t&&t.forEach(function(t){return t.call(e)})},ei.prototype._callConnected=function(){this._connected||(this._data={},this._computeds={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObservers(),this._callHook("connected"),this._callUpdate())},ei.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._disconnectObservers(),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1,delete this._watch)},ei.prototype._callUpdate=function(t){var e=this;void 0===t&&(t="update"),this._connected&&("update"!==t&&"resize"!==t||this._callWatches(),this.$options.update&&(this._updates||(this._updates=new Set,pn.read(function(){(function(i){for(var r=this,o=this.$options.update,t=0;t<o.length;t++)!function(t){var t=(n=o[t]).read,e=n.write,n=n.events;(i.has("update")||n&&n.some(function(t){return i.has(t)}))&&(n=void 0,t&&(n=t.call(r,r._data,i))&&T(n)&&Y(r._data,n),e&&!1!==n&&pn.write(function(){return e.call(r,r._data,i)}))}(t)}).call(e,e._updates),delete e._updates})),this._updates.add(t.type||t)))},ei.prototype._callWatches=function(){var a,u=this;this._watch||(a=!c(this,"_watch"),this._watch=pn.read(function(){var t,e=u.$options.computed,n=u._computeds;for(t in e){var i=c(n,t),r=n[t];delete n[t];var o=e[t],s=o.watch,o=o.immediate;s&&(a&&o||i&&!q(r,u[t]))&&s.call(u,u[t],r)}u._watch=null}))},ii=0,(ni=Kn).prototype._init=function(t){(t=t||{}).data=function(t,e){var n=t.data,i=e.args,r=e.props;void 0===r&&(r={});if(n=x(n)?D(i)?void 0:n.slice(0,i.length).reduce(function(t,e,n){return T(e)?Y(t,e):t[i[n]]=e,t},{}):n)for(var o in n)z(n[o])?delete n[o]:n[o]=r[o]?hi(r[o],n[o]):n[o];return n}(t,this.constructor.options),this.$options=En(this.constructor.options,t,this),this.$el=null,this.$props={},this._uid=ii++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),t.el&&this.$mount(t.el)},ni.prototype._initData=function(){var t,e=this.$options.data;for(t in e=void 0===e?{}:e)this.$props[t]=this[t]=e[t]},ni.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=t[e].bind(this)},ni.prototype._initComputeds=function(){var t=this.$options.computed;if(this._computeds={},t)for(var e in t)!function(i,r,o){Object.defineProperty(i,r,{enumerable:!0,get:function(){var t=i._computeds,e=i.$props,n=i.$el;return c(t,r)||(t[r]=(o.get||o).call(i,e,n)),t[r]},set:function(t){var e=i._computeds;e[r]=o.set?o.set.call(i,t):t,z(e[r])&&delete e[r]}})}(this,e,t[e])},ni.prototype._initProps=function(t){for(var e in t=t||ci(this.$options,this.$name))z(t[e])||(this.$props[e]=t[e]);var n=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&function(t,e){return t.every(function(t){return!t||!c(t,e)})}(n,e)&&(this[e]=this.$props[e])},ni.prototype._initEvents=function(){var n=this;this._events=[];var t=this.$options.events;t&&t.forEach(function(t){if(c(t,"handler"))li(n,t);else for(var e in t)li(n,t[e],e)})},ni.prototype._unbindEvents=function(){this._events.forEach(function(t){return t()}),delete this._events},ni.prototype._initObservers=function(){var t,e,n;this._observers=[(e=(t=this).$options.el,(n=new MutationObserver(function(){return t.$emit()})).observe(e,{childList:!0,subtree:!0}),n),function(e){var i=e.$name,r=e.$options,o=e.$props,t=r.attrs,n=r.props,s=r.el;if(!n||!1===t)return;var a=x(t)?t:Object.keys(n),t=a.map(function(t){return f(t)}).concat(i),n=new MutationObserver(function(t){var n=ci(r,i);t.some(function(t){var e=t.attributeName,t=e.replace("data-","");return(t===i?a:[d(t),d(e)]).some(function(t){return!z(n[t])&&n[t]!==o[t]})})&&e.$reset()});return n.observe(s,{attributes:!0,attributeFilter:t.concat(t.map(function(t){return"data-"+t}))}),n}(this)]},ni.prototype._disconnectObservers=function(){this._observers.forEach(function(t){return t&&t.disconnect()})},oi=(ri=Kn).data,si={},ri.component=function(s,t){var e=f(s);if(s=d(e),!t)return T(si[s])&&(si[s]=ri.extend(si[s])),si[s];ri[s]=function(t,n){for(var e=arguments.length,i=Array(e);e--;)i[e]=arguments[e];var r=ri.component(s);return r.options.functional?new r({data:T(t)?t:[].concat(i)}):t?Me(t).map(o)[0]:o(t);function o(t){var e=ri.getComponent(t,s);if(e){if(!n)return e;e.$destroy()}return new r({el:t,data:n})}};var n=T(t)?Y({},t):t.options;return n.name=s,n.install&&n.install(ri,n,s),ri._initialized&&!n.functional&&pn.read(function(){return ri[s]("[uk-"+e+"],[data-uk-"+e+"]")}),si[s]=T(t)?n:t},ri.getComponents=function(t){return t&&t[oi]||{}},ri.getComponent=function(t,e){return ri.getComponents(t)[e]},ri.connect=function(t){if(t[oi])for(var e in t[oi])t[oi][e]._callConnected();for(var n=0;n<t.attributes.length;n++){var i=ai(t.attributes[n].name);i&&i in si&&ri[i](t)}},ri.disconnect=function(t){for(var e in t[oi])t[oi][e]._callDisconnected()},function(i){var r=i.data;i.prototype.$create=function(t,e,n){return i[t](e,n)},i.prototype.$mount=function(t){var e=this.$options.name;t[r]||(t[r]={}),t[r][e]||((t[r][e]=this).$el=this.$options.el=this.$options.el||t,Ot(t,document)&&this._callConnected())},i.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},i.prototype.$destroy=function(t){void 0===t&&(t=!1);var e=this.$options,n=e.el,e=e.name;n&&this._callDisconnected(),this._callHook("destroy"),n&&n[r]&&(delete n[r][e],D(n[r])||delete n[r],t&&xe(this.$el))},i.prototype.$emit=function(t){this._callUpdate(t)},i.prototype.$update=function(t,e){void 0===t&&(t=this.$el),i.update(t,e)},i.prototype.$getComponent=i.getComponent;var t=it(function(t){return i.prefix+f(t)});Object.defineProperties(i.prototype,{$container:Object.getOwnPropertyDescriptor(i,"container"),$name:{get:function(){return t(this.$options.name)}}})}(Kn);var fi={connected:function(){ze(this.$el,this.$name)||Oe(this.$el,this.$name)}},di={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(t){return!!t.animation[0]},hasTransition:function(t){t=t.animation;return this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(e,s,a){var u=this;return new ue(function(t){return ue.all(V(e).map(function(t){var e=B(s)?s:!u.isToggled(t);if(!Zt(t,"before"+(e?"show":"hide"),[u]))return ue.reject();var o,n=($(a)?a:!1!==a&&u.hasAnimation?u.hasTransition?pi(u):(o=u,function(t,e){tn.cancel(t);var n=o.animation,i=o.duration,r=o._toggle;return e?(r(t,!0),tn.in(t,n[0],i,o.origin)):tn.out(t,n[1]||n[0],i,o.origin).then(function(){return r(t,!1)})}):u._toggle)(t,e),i=e?u.clsEnter:u.clsLeave;Oe(t,i),Zt(t,e?"show":"hide",[u]);function r(){Ne(t,i),Zt(t,e?"shown":"hidden",[u]),u.$update(t)}return n?n.then(r,function(){return Ne(t,i),ue.reject()}):r()})).then(t,Z)})},isToggled:function(t){return!!ze(t=void 0===t?this.$el:t,this.clsEnter)||!ze(t,this.clsLeave)&&(this.cls?ze(t,this.cls.split(" ")[0]):!ot(t,"hidden"))},_toggle:function(t,e){var n;t&&(e=Boolean(e),this.cls?(n=w(this.cls," ")||e!==ze(t,this.cls))&&Pe(t,this.cls,w(this.cls," ")?void 0:e):(n=e===t.hidden)&&(t.hidden=!e),Me("[autofocus]",t).some(function(t){return $t(t)?t.focus()||!0:t.blur()}),n&&(Zt(t,"toggled",[e,this]),this.$update(t)))}}};function pi(t){var o=t.isToggled,s=t.duration,a=t.initProps,u=t.hideProps,c=t.transition,l=t._toggle;return function(t,e){var n=Je.inProgress(t),i=t.hasChildNodes?j(Ve(t.firstElementChild,"marginTop"))+j(Ve(t.lastElementChild,"marginBottom")):0,r=$t(t)?an(t)+(n?0:i):0;Je.cancel(t),o(t)||l(t,!0),an(t,""),pn.flush();i=an(t)+(n?0:i);return an(t,r),(e?Je.start(t,Y({},a,{overflow:"hidden",height:i}),Math.round(s*(1-r/i)),c):Je.start(t,u,Math.round(s*(r/i)),c).then(function(){return l(t,!1)})).then(function(){return Ve(t,a)})}}var gi={mixins:[fi,di],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String,offset:Number},data:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease",offset:0},computed:{items:{get:function(t,e){return Me(t.targets,e)},watch:function(t,e){var n=this;t.forEach(function(t){return mi(Ae(n.content,t),!ze(t,n.clsOpen))}),e||ze(t,this.clsOpen)||(t=!1!==this.active&&t[Number(this.active)]||!this.collapsible&&t[0])&&this.toggle(t,!1)},immediate:!0},toggles:function(t){var e=t.toggle;return this.items.map(function(t){return Ae(e,t)})}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(Dt(this.toggles,t.current))}}],methods:{toggle:function(t,r){var o=this,e=[this.items[nt(t,this.items)]],t=St(this.items,"."+this.clsOpen);this.multiple||w(t,e[0])||(e=e.concat(t)),!this.collapsible&&t.length<2&&!St(e,":not(."+this.clsOpen+")").length||e.forEach(function(t){return o.toggleElement(t,!ze(t,o.clsOpen),function(e,n){Pe(e,o.clsOpen,n),rt(Ae(o.$props.toggle,e),"aria-expanded",n);var i=Ae((e._wrapper?"> * ":"")+o.content,e);if(!1!==r&&o.hasTransition)return e._wrapper||(e._wrapper=$e(i,"<div"+(n?" hidden":"")+">")),mi(i,!1),pi(o)(e._wrapper,n).then(function(){var t;mi(i,!n),delete e._wrapper,Ee(i),n&&(Pn(t=Ae(o.$props.toggle,e))||jn(t,{offset:o.offset}))});mi(i,!n)})})}}};function mi(t,e){t&&(t.hidden=e)}var vi={mixins:[fi,di],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:Y({opacity:0},di.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.close()}}],methods:{close:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}},wi={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(t){return"inview"===t.autoplay}},connected:function(){this.inView&&!ot(this.$el,"preload")&&(this.$el.preload="none"),this.automute&&Cn(this.$el)},update:{read:function(){return{visible:$t(this.$el)&&"hidden"!==Ve(this.$el,"visibility"),inView:this.inView&&Pn(this.$el)}},write:function(t){var e=t.visible,t=t.inView;!e||this.inView&&!t?_n(this.$el):(!0===this.autoplay||this.inView&&t)&&Sn(this.$el)},events:["resize","scroll"]}},bi={mixins:[fi,wi],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var t=this.$el,e=function(t){for(;t=Tt(t);)if("static"!==Ve(t,"position"))return t}(t)||Tt(t),n=e.offsetHeight,e=e.offsetWidth,n=et.cover({width:this.width||t.naturalWidth||t.videoWidth||t.clientWidth,height:this.height||t.naturalHeight||t.videoHeight||t.clientHeight},{width:e+(e%2?1:0),height:n+(n%2?1:0)});return!(!n.width||!n.height)&&n},write:function(t){var e=t.height,t=t.width;Ve(this.$el,{height:e,width:t})},events:["resize"]}};var yi,xi={mixins:[{props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(lt?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){t=t.pos;return(t+(w(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,n){He(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var i,r=this.offset,o=this.getAxis();H(r)||(r=(i=Ae(r))?rn(i)["x"===o?"left":"top"]-rn(e)["x"===o?"right":"bottom"]:0);r=Un(t,e,"x"===o?hn(this.dir)+" "+this.align:this.align+" "+hn(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-r:r):" "+("top"===this.dir?-r:r),null,this.flip,n).target,n=r.x,r=r.y;this.dir="x"===o?n:r,this.align="x"===o?r:n,Pe(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},di],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:!0,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,animation:["uk-animation-fade"],cls:"uk-open"},computed:{boundary:function(t,e){t=t.boundary;return!0===t?window:zt(t,e)},clsDrop:function(t){return t.clsDrop||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new yn},connected:function(){Oe(this.$el,this.clsDrop);var t=this.$props.toggle;this.toggle=t&&this.$create("toggle",zt(t,this.$el),{target:this.$el,mode:this.mode})},disconnected:function(){this.isActive()&&(yi=null)},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){var e=t.defaultPrevented,t=t.current.hash;e||!t||Ot(t,this.$el)||this.hide(!1)}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1)}},{name:"toggleshow",self:!0,handler:function(t,e){t.preventDefault(),this.show(e)}},{name:"togglehide",self:!0,handler:function(t){t.preventDefault(),this.hide()}},{name:vt,filter:function(){return w(this.mode,"hover")},handler:function(t){oe(t)||this.clearTimers()}},{name:wt,filter:function(){return w(this.mode,"hover")},handler:function(t){!oe(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler:function(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler:function(){var r=this;(yi=this).tracker.init(),Kt(this.$el,"hide",Gt(document,pt,function(t){var i=t.target;return!Ot(i,r.$el)&&Kt(document,mt+" "+bt+" scroll",function(t){var e=t.defaultPrevented,n=t.type,t=t.target;e||n!==mt||i!==t||r.toggle&&Ot(i,r.toggle.$el)||r.hide(!1)},!0)}),{self:!0}),Kt(this.$el,"hide",Gt(document,"keydown",function(t){27===t.keyCode&&r.hide(!1)}),{self:!0})}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){t=t.target;this.$el===t?(yi=this.isActive()?null:yi,this.tracker.cancel()):yi=null===yi&&Ot(t,this.$el)&&this.isToggled()?this:yi}}],update:{write:function(){this.isToggled()&&!ze(this.$el,this.clsEnter)&&this.position()},events:["resize"]},methods:{show:function(t,e){var n,i=this;if(void 0===t&&(t=this.toggle),void 0===e&&(e=!0),this.isToggled()&&t&&this.toggle&&t.$el!==this.toggle.$el&&this.hide(!1),this.toggle=t,this.clearTimers(),!this.isActive()){if(yi){if(e&&yi.isDelaying)return void(this.showTimer=setTimeout(this.show,10));for(;yi&&n!==yi&&!Ot(this.$el,yi.$el);)(n=yi).hide(!1)}this.showTimer=setTimeout(function(){return!i.isToggled()&&i.toggleElement(i.$el,!0)},e&&this.delayShow||0)}},hide:function(t){var e=this;void 0===t&&(t=!0);function n(){return e.toggleElement(e.$el,!1,!1)}var i,r;this.clearTimers(),this.isDelaying=(i=this.$el,r=[],Ce(i,function(t){return"static"!==Ve(t,"position")&&r.push(t)}),r.some(function(t){return e.tracker.movesTo(t)})),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(n,this.delayHide):n()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return yi===this},position:function(){Ne(this.$el,this.clsDrop+"-stack"),Pe(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t,e=rn(this.boundary),n=this.boundaryAlign?e:rn(this.toggle.$el);"justify"===this.align?(t="y"===this.getAxis()?"width":"height",Ve(this.$el,t,n[t])):this.boundary&&this.$el.offsetWidth>Math.max(e.right-n.left,n.right-e.left)&&Oe(this.$el,this.clsDrop+"-stack"),this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary)}}};var $i={mixins:[fi],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(t,e){return Ae(kt,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){t=t.target;return t&&(!0===t&&Tt(this.input)===e&&this.input.nextElementSibling||zt(t,e))}},update:function(){var t,e,n=this.target,i=this.input;!n||n[e=Et(n)?"value":"textContent"]!==(i=i.files&&i.files[0]?i.files[0].name:At(i,"select")&&(t=Me("option",i).filter(function(t){return t.selected})[0])?t.textContent:i.value)&&(n[e]=i)},events:[{name:"change",handler:function(){this.$update()}},{name:"reset",el:function(){return Bt(this.$el,"form")},handler:function(){this.$update()}}]},ki={update:{read:function(t){var e=Pn(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=""+this.$el.src},events:["scroll","resize"]}},Ei={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},update:{read:function(){var t=Ti(this.$el.children);return{rows:t,columns:function(t){for(var e=[],n=0;n<t.length;n++)for(var i=Si(t[n],"left","right"),r=0;r<i.length;r++)e[r]=e[r]?e[r].concat(i[r]):i[r];return lt?e.reverse():e}(t)}},write:function(t){for(var e=t.columns,n=t.rows,i=0;i<n.length;i++)for(var r=0;r<n[i].length;r++)Pe(n[i][r],this.margin,0!==i),Pe(n[i][r],this.firstColumn,!!~e[0].indexOf(n[i][r]))},events:["resize"]}};function Ti(t){return Si(t,"top","bottom")}function Si(t,e,n){for(var i=[[]],r=0;r<t.length;r++){var o=t[r];if($t(o))for(var s=_i(o),a=i.length-1;0<=a;a--){var u=i[a];if(!u[0]){u.push(o);break}var c=void 0,c=u[0].offsetParent===o.offsetParent?_i(u[0]):(s=_i(o,!0),_i(u[0],!0));if(s[e]>=c[n]-1&&s[e]!==c[e]){i.push([o]);break}if(s[n]-1>c[e]||s[e]===c[e]){u.push(o);break}if(0===a){i.unshift([o]);break}}}return i}function _i(t,e){void 0===e&&(e=!1);var n=t.offsetTop,i=t.offsetLeft,r=t.offsetHeight,o=t.offsetWidth;return e&&(n=(t=sn(t))[0],i=t[1]),{top:n,left:i,bottom:n+r,right:i+o}}var Ci={extends:Ei,mixins:[fi],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},connected:function(){this.masonry&&Oe(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{write:function(t){t=t.columns;Pe(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read:function(t){var e=t.columns,n=t.rows;if(!e.length||!this.masonry&&!this.parallax||Ai(this.$el))return t.translates=!1;var i,r,o=!1,s=Ht(this.$el),a=e.map(function(t){return t.reduce(function(t,e){return t+e.offsetHeight},0)}),u=(t=s,i=this.margin,j((s=t.filter(function(t){return ze(t,i)})[0])?Ve(s,"marginTop"):Ve(t[0],"paddingLeft"))*(n.length-1)),c=Math.max.apply(Math,a)+u;this.masonry&&(e=e.map(function(t){return J(t,"offsetTop")}),t=e,r=n.map(function(t){return Math.max.apply(Math,t.map(function(t){return t.offsetHeight}))}),o=t.map(function(n){var i=0;return n.map(function(t,e){return i+=e?r[e-1]-n[e-1].offsetHeight:0})}));var l=Math.abs(this.parallax);return{padding:l=l&&a.reduce(function(t,e,n){return Math.max(t,e+u+(n%2?l:l/8)-c)},0),columns:e,translates:o,height:o?c:""}},write:function(t){var e=t.height,t=t.padding;Ve(this.$el,"paddingBottom",t||""),!1!==e&&Ve(this.$el,"height",e)},events:["resize"]},{read:function(t){t=t.height;return!Ai(this.$el)&&{scrolled:!!this.parallax&&Ln(this.$el,t?t-an(this.$el):0)*Math.abs(this.parallax)}},write:function(t){var e=t.columns,i=t.scrolled,r=t.translates;!1===i&&!r||e.forEach(function(t,n){return t.forEach(function(t,e){return Ve(t,"transform",i||r?"translateY("+((r&&-r[n][e])+(i?n%2?i:i/8:0))+"px)":"")})})},events:["scroll","resize"]}]};function Ai(t){return Ht(t).some(function(t){return"absolute"===Ve(t,"position")})}var Mi=ct?{props:{selMinHeight:String},data:{selMinHeight:!1,forceHeight:!1},computed:{elements:function(t,e){t=t.selMinHeight;return t?Me(t,e):[e]}},update:[{read:function(){Ve(this.elements,"height","")},order:-5,events:["resize"]},{write:function(){var n=this;this.elements.forEach(function(t){var e=j(Ve(t,"minHeight"));e&&(n.forceHeight||Math.round(e+ln(t,"height","content-box"))>=t.offsetHeight)&&Ve(t,"height",e)})},order:5,events:["resize"]}]}:{},Bi={mixins:[Mi],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(t,e){return Me(t.target,e)}},update:{read:function(){return{rows:(this.row?Ti(this.elements):[this.elements]).map(Oi)}},write:function(t){t.rows.forEach(function(t){var n=t.heights;return t.elements.forEach(function(t,e){return Ve(t,"minHeight",n[e])})})},events:["resize"]}};function Oi(t){if(t