UNPKG

uikit

Version:

UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.

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