@geolid/ui-kit
Version:
Geolid UI Kit
3 lines (2 loc) • 182 kB
JavaScript
/*! Geolid UIkit 0.0.3 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):t.UIkit=e()}(this,function(){"use strict";"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t(function(t,e){t.exports=function(){var t=2,e="setImmediate"in window?setImmediate:setTimeout;function i(e){this.state=t,this.value=void 0,this.deferred=[];var i=this;try{e(function(t){i.resolve(t)},function(t){i.reject(t)})}catch(t){i.reject(t)}}i.reject=function(t){return new i(function(e,i){i(t)})},i.resolve=function(t){return new i(function(e,i){e(t)})},i.all=function(t){return new i(function(e,n){var o=0,s=[];function r(i){return function(n){s[i]=n,(o+=1)===t.length&&e(s)}}0===t.length&&e(s);for(var h=0;h<t.length;h+=1)i.resolve(t[h]).then(r(h),n)})},i.race=function(t){return new i(function(e,n){for(var o=0;o<t.length;o+=1)i.resolve(t[o]).then(e,n)})};var n=i.prototype;n.resolve=function(e){var i=this;if(i.state===t){if(e===i)throw new TypeError("Promise settled with itself.");var n=!1;try{var o=e&&e.then;if(null!==e&&Oe(e)&&He(o))return void o.call(e,function(t){n||i.resolve(t),n=!0},function(t){n||i.reject(t),n=!0})}catch(t){return void(n||i.reject(t))}i.state=0,i.value=e,i.notify()}},n.reject=function(e){var i=this;if(i.state===t){if(e===i)throw new TypeError("Promise settled with itself.");i.state=1,i.value=e,i.notify()}},n.notify=function(){var i=this;e(function(){if(i.state!==t)for(;i.deferred.length;){var e=i.deferred.shift(),n=e[0],o=e[1],s=e[2],r=e[3];try{0===i.state?He(n)?s(n.call(void 0,i.value)):s(i.value):1===i.state&&(He(o)?s(o.call(void 0,i.value)):r(i.value))}catch(t){r(t)}}})},n.then=function(t,e){var n=this;return new i(function(i,o){n.deferred.push([t,e,i,o]),n.notify()})},n.catch=function(t){return this.then(void 0,t)};var o,s=window,r=document,h=r.documentElement,l=s.MutationObserver,a=s.requestAnimationFrame,c="ontouchstart"in s,u=s.PointerEvent,d="ontouchstart"in s||s.DocumentTouch&&r instanceof DocumentTouch||navigator.pointerEnabled&&navigator.maxTouchPoints,f=d?"mousedown "+(c?"touchstart":"pointerdown"):"mousedown",g=d?"mousemove "+(c?"touchmove":"pointermove"):"mousemove",p=d?"mouseup "+(c?"touchend":"pointerup"):"mouseup",v=d&&u?"pointerenter":"mouseenter",m=d&&u?"pointerleave":"mouseleave",w={};function x(t,e,i){if(Oe(e))for(var n in e)x(t,n,e[n]);else{if(Ye(i))return(t=ne(t))&&t.getAttribute(e);oe(t).forEach(function(t){He(i)&&(i=i.call(t,x(t,e))),null===i?C(t,e):t.setAttribute(e,i)})}}function y(t,e){return oe(t).some(function(t){return t.hasAttribute(e)})}function C(t,e){t=oe(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeAttribute(e)})})}function k(t,e,i,n){x(t,e,function(t){return t?t.replace(i,n):t})}function b(t,e){for(var i=0,n=[e,"data-"+e];i<n.length;i++)if(y(t,n[i]))return x(t,n[i])}function L(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];E(t,e,"add")}function $(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];E(t,e,"remove")}function M(t,e){k(t,"class",new RegExp("(^|\\s)"+e+"(?!\\S)","g"),"")}function B(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];e[0]&&$(t,e[0]),e[1]&&L(t,e[1])}function I(t,e){return w.ClassList&&oe(t).some(function(t){return t.classList.contains(e)})}function T(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];if(w.ClassList&&e.length){var n=Ve((e=_(e))[e.length-1])?void 0:e.pop();e=e.filter(Boolean),oe(t).forEach(function(t){for(var i=t.classList,o=0;o<e.length;o++)w.Force?i.toggle(e[o],n):i[(Ye(n)?!i.contains(e[o]):n)?"add":"remove"](e[o])})}}function E(t,e,i){e=_(e).filter(Boolean),w.ClassList&&e.length&&oe(t).forEach(function(t){var n=t.classList;w.Multiple?n[i].apply(n,e):e.forEach(function(t){return n[i](t)})})}function _(t){return t.reduce(function(t,e){return t.concat.call(t,Ve(e)&&ze(e," ")?e.trim().split(" "):e)},[])}(o=r.createElement("_").classList)&&(o.add("a","b"),o.toggle("c",!1),w.Multiple=o.contains("b"),w.Force=!o.contains("c"),w.ClassList=!0),o=null;var S={"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,widows:!0,"z-index":!0,zoom:!0};function A(t,e,i){return oe(t).map(function(t){if(Ve(e)){if(e=P(e),Ye(i))return z(t,e);i||0===i?t.style[e]=Re(i)&&!S[e]?i+"px":i:t.style.removeProperty(e)}else{if(De(e)){var n=N(t);return e.reduce(function(t,e){return t[e]=n[P(e)],t},{})}Oe(e)&&ni(e,function(e,i){return A(t,i,e)})}return t})[0]}function N(t,e){return(t=ne(t)).ownerDocument.defaultView.getComputedStyle(t,e)}function z(t,e,i){return N(t,i)[e]}var D={};function H(t){if(!(t in D)){var e=Lt(h,r.createElement("div"));L(e,"var-"+t);try{D[t]=z(e,"content",":before").replace(/^["'](.*)["']$/,"$1"),D[t]=JSON.parse(D[t])}catch(t){}h.removeChild(e)}return D[t]}var O={};function P(t){var e=O[t];return e||(e=O[t]=function(t){if((t=ke(t))in Z)return t;for(var e,i=W.length;i--;)if((e="-"+W[i]+"-"+t)in Z)return e}(t)||t),e}var W=["webkit","moz","ms"],Z=r.createElement("_").style,j={width:["x","left","right"],height:["y","top","bottom"]};function V(t,e,i,n,o,s,r,h){i=K(i),n=K(n);var l={element:i,target:n};if(!t||!e)return l;var a=R(t),c=R(e),u=c;return Q(u,i,a,-1),Q(u,n,c,1),o=tt(o,a.width,a.height),s=tt(s,c.width,c.height),o.x+=s.x,o.y+=s.y,u.left+=o.x,u.top+=o.y,h=R(h||G(t)),r&&ni(j,function(t,e){var s=t[0],d=t[1],f=t[2];if(!0===r||ze(r,s)){var g=i[s]===d?-a[e]:i[s]===f?a[e]:0,p=n[s]===d?c[e]:n[s]===f?-c[e]:0;if(u[d]<h[d]||u[d]+a[e]>h[f]){var v=a[e]/2,m="center"===n[s]?-c[e]/2:0;"center"===i[s]&&(w(v,m)||w(-v,-m))||w(g,p)}}function w(t,i){var n=u[d]+t+i-2*o[s];if(n>=h[d]&&n+a[e]<=h[f])return u[d]=n,["element","target"].forEach(function(i){l[i][s]=t?l[i][s]===j[e][1]?j[e][2]:j[e][1]:l[i][s]}),!0}}),F(t,u),l}function F(t,e){if(t=ne(t),!e)return R(t);var i=F(t),n=A(t,"position");["left","top"].forEach(function(o){if(o in e){var s=A(t,o);t.style[o]=e[o]-i[o]+Xe("absolute"===n&&"auto"===s?Y(t)[o]:s)+"px"}})}function R(t){var e=G(t=ne(t)),i=e.pageYOffset,n=e.pageXOffset;if(We(t)){var o=t.innerHeight,s=t.innerWidth;return{top:i,left:n,height:o,width:s,bottom:i+o,right:n+s}}var r=!1;xt(t)||(r=t.style.display,t.style.display="block");var h=t.getBoundingClientRect();return!1!==r&&(t.style.display=r),{height:h.height,width:h.width,top:h.top+i,left:h.left+n,bottom:h.bottom+i,right:h.right+n}}function Y(t){var e=function(t){for(var e=ne(t).offsetParent;e&&"static"===A(e,"position");)e=e.offsetParent;return e||nt(t)}(t=ne(t)),i=e===nt(t)?{top:0,left:0}:F(e);return["top","left"].reduce(function(n,o){var s=Me(o);return n[o]-=i[o]+(Xe(A(t,"margin"+s))||0)+(Xe(A(e,"border"+s+"Width"))||0),n},F(t))}var q=X("height"),U=X("width");function X(t){var e=Me(t);return function(i,n){if(i=ne(i),Ye(n)){if(We(i))return i["inner"+e];if(Ze(i)){var o=i.documentElement;return Math.max(o.offsetHeight,o.scrollHeight)}return n="auto"===(n=A(i,t))?i["offset"+e]:Xe(n)||0,J(t,i,n)}A(i,t,n||0===n?J(t,i,n)+"px":"")}}function J(t,e,i){return"border-box"===A(e,"boxSizing")?j[t].slice(1).map(Me).reduce(function(t,i){return t-Xe(A(e,"padding"+i))-Xe(A(e,"border"+i+"Width"))},i):i}function G(t){return We(t)?t:it(t).defaultView}function Q(t,e,i,n){ni(j,function(o,s){var r=o[0],h=o[1],l=o[2];e[r]===l?t[h]+=i[s]*n:"center"===e[r]&&(t[h]+=i[s]*n/2)})}function K(t){var e=/left|center|right/,i=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function tt(t,e,i){var n=(t||"").split(" "),o=n[0],s=n[1];return{x:o?Xe(o)*(_e(o,"%")?e/100:1):0,y:s?Xe(s)*(_e(s,"%")?i/100:1):0}}function et(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function it(t){return ne(t).ownerDocument}function nt(t){return it(t).documentElement}var ot="rtl"===x(h,"dir");function st(){return"complete"===r.readyState||"loading"!==r.readyState&&!h.doScroll}function rt(t){if(st())t();else var e=function(){i(),n(),t()},i=he(r,"DOMContentLoaded",e),n=he(s,"load",e)}function ht(t,e,i,n){return void 0===i&&(i=400),void 0===n&&(n="linear"),xe.all(oe(t).map(function(t){return new xe(function(o,s){for(var r in e){var h=A(t,r);""===h&&A(t,r,h)}var l=setTimeout(function(){return ce(t,"transitionend")},i);ae(t,"transitionend transitioncanceled",function(e){var i=e.type;clearTimeout(l),$(t,"uk-transition"),A(t,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===i?s():o()},!1,function(e){var i=e.target;return t===i}),L(t,"uk-transition"),A(t,ii({"transition-property":Object.keys(e).map(P).join(","),"transition-duration":i+"ms","transition-timing-function":n},e))})}))}var lt={start:ht,stop:function(t){return ce(t,"transitionend"),xe.resolve()},cancel:function(t){ce(t,"transitioncanceled")},inProgress:function(t){return I(t,"uk-transition")}},at="uk-animation-",ct="uk-cancel-animation";function ut(t,e,i,n,o){var s=arguments;return void 0===i&&(i=200),xe.all(oe(t).map(function(t){return new xe(function(r,h){if(I(t,ct))requestAnimationFrame(function(){return xe.resolve().then(function(){return ut.apply(null,s).then(r,h)})});else{var l=e+" "+at+(o?"leave":"enter");Te(e,at)&&(n&&(l+=" uk-transform-origin-"+n),o&&(l+=" "+at+"reverse")),a(),ae(t,"animationend animationcancel",function(e){var i=e.type,n=!1;"animationcancel"===i?(h(),a()):(r(),xe.resolve().then(function(){n=!0,a()})),requestAnimationFrame(function(){n||(L(t,ct),requestAnimationFrame(function(){return $(t,ct)}))})},!1,function(e){var i=e.target;return t===i}),A(t,"animationDuration",i+"ms"),L(t,l)}function a(){A(t,"animationDuration",""),M(t,at+"\\S*")}})}))}var dt=new RegExp(at+"(enter|leave)"),ft={in:function(t,e,i,n){return ut(t,e,i,n,!1)},out:function(t,e,i,n){return ut(t,e,i,n,!0)},inProgress:function(t){return dt.test(x(t,"class"))},cancel:function(t){ce(t,"animationcancel")}};function gt(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=0),ri(ne(t).getBoundingClientRect(),{top:e,left:i,bottom:e+q(s),right:i+U(s)})}function pt(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var o=(e=oe(e)).length;return t=Re(t)?Ue(t):"next"===t?i+1:"previous"===t?i-1:zt(e,t),n?oi(t,0,o-1):(t%=o)<0?t+o:t}var vt={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 mt(t){return vt[ne(t).tagName.toLowerCase()]}var wt={ratio:function(t,e,i){var n,o="width"===e?"height":"width";return(n={})[o]=Math.round(i*t[o]/t[e]),n[e]=i,n},contain:function(t,e){var i=this;return ni(t=ii({},t),function(n,o){return t=t[o]>e[o]?i.ratio(t,o,e[o]):t}),t},cover:function(t,e){var i=this;return ni(t=this.contain(t,e),function(n,o){return t=t[o]<e[o]?i.ratio(t,o,e[o]):t}),t}};function xt(t){return oe(t).some(function(t){return t.offsetHeight})}var yt="input,select,textarea,button";function Ct(t){return oe(t).some(function(t){return Jt(t,yt)})}function kt(t){return(t=ne(t)).innerHTML="",t}function bt(t,e){return t=ne(t),Ye(e)?t.innerHTML:Lt(t.hasChildNodes()?kt(t):t,e)}function Lt(t,e){return t=ne(t),Bt(e,function(e){return t.appendChild(e)})}function $t(t,e){return t=ne(t),Bt(e,function(e){return t.parentNode.insertBefore(e,t)})}function Mt(t,e){return t=ne(t),Bt(e,function(e){return t.nextSibling?$t(t.nextSibling,e):Lt(t.parentNode,e)})}function Bt(t,e){return(t=Ve(t)?Nt(t):t)?"length"in t?oe(t).map(e):e(t):null}function It(t){oe(t).map(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}function Tt(t,e){for(e=ne($t(t,e));e.firstChild;)e=e.firstChild;return Lt(e,t),e}function Et(t,e){return oe(oe(t).map(function(t){return t.hasChildNodes?Tt(oe(t.childNodes),e):Lt(t,e)}))}function _t(t){oe(t).map(function(t){return t.parentNode}).filter(function(t,e,i){return i.indexOf(t)===e}).forEach(function(t){$t(t,t.childNodes),It(t)})}var St=/^\s*<(\w+|!)[^>]*>/,At=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Nt(t){var e;if(e=At.exec(t))return r.createElement(e[1]);var i=r.createElement("div");return St.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,i.childNodes.length>1?oe(i.childNodes):i.firstChild}function zt(t,e){return e?oe(t).indexOf(ne(e)):oe((t=ne(t))&&t.parentNode.children).indexOf(t)}var Dt=Array.prototype;function Ht(t,e){return Ve(t)?Pt(t)?ne(Nt(t)):ne(jt(t,e,"querySelector")):ne(t)}function Ot(t,e){return Ve(t)?Pt(t)?oe(Nt(t)):oe(jt(t,e,"querySelectorAll")):oe(t)}function Pt(t){return"<"===t[0]||t.match(/^\s*</)}function Wt(t,e){return Ht(t,qt(t)?e:r)}function Zt(t,e){return Ot(t,qt(t)?e:r)}function jt(t,e,i){if(void 0===e&&(e=r),!t||!Ve(t))return null;var n;qt(t=t.replace(Yt,"$1 *"))&&(n=[],t=t.split(",").map(function(t,i){var o=e;if("!"===(t=t.trim())[0]){var s=t.substr(1).trim().split(" ");o=Qt(e.parentNode,s[0]),t=s.slice(1).join(" ")}return o?(o.id||(o.id="uk-"+Date.now()+i,n.push(function(){return C(o,"id")})),"#"+re(o.id)+" "+t):null}).filter(Boolean).join(","),e=r);try{return e[i](t)}catch(t){return null}finally{n&&n.forEach(function(t){return t()})}}function Vt(t,e){return Ot(t).filter(function(t){return Jt(t,e)})}function Ft(t,e){return Ve(e)?Jt(t,e)||Qt(t,e):t===e||ne(e).contains(ne(t))}var Rt=/(^|,)\s*[!>+~]/,Yt=/([!>+~])(?=\s+[!>+~]|\s*$)/g;function qt(t){return Ve(t)&&t.match(Rt)}var Ut=Element.prototype,Xt=Ut.matches||Ut.msMatchesSelector;function Jt(t,e){return oe(t).some(function(t){return Xt.call(t,e)})}var Gt=Ut.closest||function(t){var e=this;do{if(Jt(e,t))return e;e=e.parentNode}while(e&&1===e.nodeType)};function Qt(t,e){return Te(e,">")&&(e=e.slice(1)),ee(t)?t.parentNode&&Gt.call(t,e):oe(t).map(function(t){return t.parentNode&&Gt.call(t,e)}).filter(Boolean)}function Kt(t,e){for(var i=[],n=ne(t).parentNode;n&&1===n.nodeType;)Jt(n,e)&&i.push(n),n=n.parentNode;return i}function te(t){return Oe(t)&&!!t.jquery}function ee(t){return t instanceof Node||Oe(t)&&1===t.nodeType}function ie(t){return t instanceof NodeList||t instanceof HTMLCollection}function ne(t){return ee(t)||We(t)||Ze(t)?t:ie(t)||te(t)?t[0]:De(t)?ne(t[0]):null}function oe(t){return ee(t)?[t]:ie(t)?Dt.slice.call(t):De(t)?t.map(ne).filter(Boolean):te(t)?t.toArray():[]}var se=s.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};function re(t){return Ve(t)?se.call(null,t):""}function he(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n=de(t),o=n[0],s=n[1],r=n[2],h=n[3],l=n[4];return o=ge(o),r&&(h=function(t,e,i){var n=this;return function(o){var s=o.target,r=">"===e[0]?Ot(e,t).reverse().filter(function(t){return Ft(s,t)})[0]:Qt(s,e);r&&(o.delegate=t,o.current=r,i.call(n,o))}}(o,r,h)),h.length>1&&(i=h,h=function(t){return De(t.detail)?i.apply(i,[t].concat(t.detail)):i(t)}),s.split(" ").forEach(function(t){return o&&o.addEventListener(t,h,l)}),function(){return le(o,s,h,l)}}function le(t,e,i,n){void 0===n&&(n=!1),(t=ge(t))&&e.split(" ").forEach(function(e){return t.removeEventListener(e,i,n)})}function ae(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=de(t),n=i[0],o=i[1],s=i[2],r=i[3],h=i[4],l=i[5],a=he(n,o,s,function(t){var e=!l||l(t);e&&(a(),r(t,e))},h);return a}function ce(t,e,i){return pe(t).reduce(function(t,n){return t&&n.dispatchEvent(ue(e,!0,!0,i))},!0)}function ue(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),Ve(t)){var o=r.createEvent("CustomEvent");o.initCustomEvent(t,e,i,n),t=o}return t}function de(t){return Ve(t[0])&&(t[0]=Ht(t[0])),He(t[2])&&t.splice(2,0,!1),t}function fe(t){return"EventTarget"in s?t instanceof EventTarget:t&&"addEventListener"in t}function ge(t){return fe(t)?t:ne(t)}function pe(t){return fe(t)?[t]:De(t)?t.map(ge).filter(Boolean):oe(t)}function ve(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}var me=Object.prototype.hasOwnProperty;function we(t,e){return me.call(t,e)}var xe="Promise"in window?window.Promise:i,ye=/(?:^|[-_\/])(\w)/g,Ce=/([a-z\d])([A-Z])/g;function ke(t){return t.replace(Ce,"$1-$2").toLowerCase()}var be=/-(\w)/g;function Le(t){return t.replace(be,$e)}function $e(t,e){return e?e.toUpperCase():""}function Me(t){return t.length?$e(0,t.charAt(0))+t.slice(1):""}var Be=String.prototype,Ie=Be.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function Te(t,e){return Ie.call(t,e)}var Ee=Be.endsWith||function(t){return this.substr(-t.length)===t};function _e(t,e){return Ee.call(t,e)}var Se=function(t){return~this.indexOf(t)},Ae=Be.includes||Se,Ne=Array.prototype.includes||Se;function ze(t,e){return t&&(Ve(t)?Ae:Ne).call(t,e)}var De=Array.isArray;function He(t){return"function"==typeof t}function Oe(t){return null!==t&&"object"==typeof t}function Pe(t){return Oe(t)&&Object.getPrototypeOf(t)===Object.prototype}function We(t){return Oe(t)&&t===t.window}function Ze(t){return Oe(t)&&9===t.nodeType}function je(t){return"boolean"==typeof t}function Ve(t){return"string"==typeof t}function Fe(t){return"number"==typeof t}function Re(t){return Fe(t)||Ve(t)&&!isNaN(t-parseFloat(t))}function Ye(t){return void 0===t}function qe(t){return je(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function Ue(t){var e=Number(t);return!isNaN(e)&&e}function Xe(t){return parseFloat(t)||0}function Je(t){return De(t)?t:Ve(t)?t.split(/,(?![^(]*\))/).map(function(t){return Re(t)?Ue(t):qe(t.trim())}):[t]}var Ge={};function Qe(t){if(Ve(t))if("@"===t[0]){var e="media-"+t.substr(1);t=Ge[e]||(Ge[e]=Xe(H(e)))}else if(isNaN(t))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function Ke(t,e,i){return t===Boolean?qe(e):t===Number?Ue(e):"query"===t?Wt(e,i):"list"===t?Je(e):"media"===t?Qe(e):t?t(e):e}function ti(t){return t?_e(t,"ms")?Xe(t):1e3*Xe(t):0}function ei(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}var ii=Object.assign||function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var o=e[n];if(null!==o)for(var s in o)we(o,s)&&(t[s]=o[s])}return t};function ni(t,e){for(var i in t)if(!1===e.call(t[i],t[i],i))break}function oi(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(t,e),i)}function si(){}function ri(t,e){return t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom}function hi(t,e){return ri({top:t.y,bottom:t.y,left:t.x,right:t.x},e)}function li(t,e){return new xe(function(i,n){var o=ii({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:si,responseType:""},e),s=o.xhr;for(var r in o.beforeSend(o),o)if(r in s)try{s[r]=o[r]}catch(t){}for(var h in s.open(o.method.toUpperCase(),t),o.headers)s.setRequestHeader(h,o.headers[h]);he(s,"load",function(){0===s.status||s.status>=200&&s.status<300||304===s.status?i(s):n(ii(Error(s.statusText),{xhr:s,status:s.status}))}),he(s,"error",function(){return n(ii(Error("Network Error"),{xhr:s}))}),he(s,"timeout",function(){return n(ii(Error("Network Timeout"),{xhr:s}))}),s.send(o.data)})}var ai={reads:[],writes:[],read:function(t){return this.reads.push(t),ci(),t},write:function(t){return this.writes.push(t),ci(),t},clear:function(t){return di(this.reads,t)||di(this.writes,t)},flush:function(){ui(this.reads),ui(this.writes.splice(0,this.writes.length)),this.scheduled=!1,(this.reads.length||this.writes.length)&&ci()}};function ci(){ai.scheduled||(ai.scheduled=!0,a(ai.flush.bind(ai)))}function ui(t){for(var e;e=t.shift();)e()}function di(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function fi(){}function gi(t,e){return(e.y-t.y)/(e.x-t.x)}fi.prototype={positions:[],position:null,init:function(){var t=this;this.positions=[],this.position=null;var e=!1;this.unbind=he(r,"mousemove",function(i){e||(setTimeout(function(){var n=Date.now(),o=t.positions.length;o&&n-t.positions[o-1].time>100&&t.positions.splice(0,o),t.positions.push({time:n,x:i.pageX,y:i.pageY}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(t){if(this.positions.length<2)return!1;var e=F(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var o=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=i.x||(e.left>=i.x?(o[0].reverse(),o[1].reverse()):e.bottom<=i.y?o[0].reverse():e.top>=i.y&&o[1].reverse()),!!o.reduce(function(t,e){return t+(gi(n,e[0])<gi(i,e[0])&&gi(n,e[1])>gi(i,e[1]))},0)}};var pi={};pi.args=pi.events=pi.init=pi.created=pi.beforeConnect=pi.connected=pi.ready=pi.beforeDisconnect=pi.disconnected=pi.destroy=function(t,e){return t=t&&!De(t)?[t]:t,e?t?t.concat(e):De(e)?e:[e]:t},pi.update=function(t,e){return pi.args(t,He(e)?{read:e}:e)},pi.props=function(t,e){return De(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),pi.methods(t,e)},pi.computed=pi.defaults=pi.methods=function(t,e){return e?t?ii({},t,e):e:t};var vi=function(t,e){return Ye(e)?t:e};function mi(t,e){var i,n={};if(e.mixins)for(var o=0,s=e.mixins.length;o<s;o++)t=mi(t,e.mixins[o]);for(i in t)r(i);for(i in e)we(t,i)||r(i);function r(i){n[i]=(pi[i]||vi)(t[i],e[i])}return n}var wi=0,xi=function(t){this.id=++wi,this.el=ne(t)};function yi(t,e){try{t.contentWindow.postMessage(JSON.stringify(ii({event:"command"},e)),"*")}catch(t){}}xi.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},xi.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},xi.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},xi.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},xi.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},xi.prototype.enableApi=function(){var t=this;if(this.ready)return this.ready;var e,n=this.isYoutube(),o=this.isVimeo();return n||o?this.ready=new i(function(r){var h;ae(t.el,"load",function(){if(n){var i=function(){return yi(t.el,{event:"listening",id:t.id})};e=setInterval(i,100),i()}}),(h=function(e){return n&&e.id===t.id&&"onReady"===e.event||o&&Number(e.player_id)===t.id},new i(function(t){ae(s,"message",function(e,i){return t(i)},!1,function(t){var e=t.data;if(e&&Ve(e)){try{e=JSON.parse(e)}catch(t){return}return e&&h(e)}})})).then(function(){r(),e&&clearInterval(e)}),x(t.el,"src",t.el.src+(ze(t.el.src,"?")?"&":"?")+(n?"enablejsapi=1":"api=1&player_id="+wi))}):i.resolve()},xi.prototype.play=function(){var t=this;if(this.isVideo())if(this.isIFrame())this.enableApi().then(function(){return yi(t.el,{func:"playVideo",method:"play"})});else if(this.isHTML5())try{this.el.play()}catch(t){}},xi.prototype.pause=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return yi(t.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},xi.prototype.mute=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return yi(t.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,x(this.el,"muted","")))};var Ci,ki,bi,Li,$i={};function Mi(){Ci&&clearTimeout(Ci),ki&&clearTimeout(ki),bi&&clearTimeout(bi),Ci=ki=bi=null,$i={}}rt(function(){he(r,"click",function(){return Li=!0},!0),he(r,f,function(t){var e=t.target,i=Ti(t),n=i.x,o=i.y,s=Date.now();$i.el="tagName"in e?e:e.parentNode,Ci&&clearTimeout(Ci),$i.x1=n,$i.y1=o,$i.last&&s-$i.last<=250&&($i={}),$i.last=s,Li=t.button>0}),he(r,g,function(t){var e=Ti(t),i=e.x,n=e.y;$i.x2=i,$i.y2=n}),he(r,p,function(t){var e=t.type,i=t.target;$i.x2&&Math.abs($i.x1-$i.x2)>30||$i.y2&&Math.abs($i.y1-$i.y2)>30?ki=setTimeout(function(){var t,e,i,n,o;$i.el&&(ce($i.el,"swipe"),ce($i.el,"swipe"+(e=(t=$i).x1,i=t.x2,n=t.y1,o=t.y2,Math.abs(e-i)>=Math.abs(n-o)?e-i>0?"Left":"Right":n-o>0?"Up":"Down"))),$i={}}):"last"in $i?(bi=setTimeout(function(){return $i.el&&ce($i.el,"tap")}),$i.el&&"mouseup"!==e&&Ft(i,$i.el)&&(Ci=setTimeout(function(){Ci=null,$i.el&&!Li&&ce($i.el,"click"),$i={}},350))):$i={}}),he(r,"touchcancel",Mi),he(s,"scroll",Mi)});var Bi=!1;function Ii(t){return Bi||"touch"===t.pointerType}function Ti(t){var e=t.touches,i=t.changedTouches,n=e&&e[0]||i&&i[0]||t,o=n.pageX,s=n.pageY;return{x:o,y:s}}he(r,"touchstart",function(){return Bi=!0},!0),he(r,"click",function(){Bi=!1}),he(r,"touchcancel",function(){return Bi=!1},!0);var Ei=Object.freeze({bind:ve,hasOwn:we,Promise:xe,Deferred:function(){var t=this;this.promise=new xe(function(e,i){t.reject=i,t.resolve=e})},classify:function(t){return t.replace(ye,function(t,e){return e?e.toUpperCase():""})},hyphenate:ke,camelize:Le,ucfirst:Me,startsWith:Te,endsWith:_e,includes:ze,isArray:De,isFunction:He,isObject:Oe,isPlainObject:Pe,isWindow:We,isDocument:Ze,isBoolean:je,isString:Ve,isNumber:Fe,isNumeric:Re,isUndefined:Ye,toBoolean:qe,toNumber:Ue,toFloat:Xe,toList:Je,toMedia:Qe,coerce:Ke,toMs:ti,swap:ei,assign:ii,each:ni,clamp:oi,noop:si,intersectRect:ri,pointInRect:hi,ajax:li,$:Ht,$$:Ot,query:Wt,queryAll:Zt,filter:Vt,within:Ft,matches:Jt,closest:Qt,parents:Kt,isJQuery:te,toNode:ne,toNodes:oe,escape:re,attr:x,hasAttr:y,removeAttr:C,filterAttr:k,data:b,isRtl:ot,isReady:st,ready:rt,transition:ht,Transition:lt,animate:ut,Animation:ft,isInView:gt,scrolledOver:function(t){var e=(t=ne(t)).offsetHeight,i=function(t){var e=0;do{e+=t.offsetTop}while(t=t.offsetParent);return e}(t),n=q(s),o=n+Math.min(0,i-n),h=Math.max(0,n-(q(r)-(i+e)));return oi((o+s.pageYOffset-i)/((o+(e-(h<n?h:0)))/100)/100)},getIndex:pt,isVoidElement:mt,Dimensions:wt,preventClick:function(){var t=setTimeout(function(){return ce(r,"click")},0);ae(r,"click",function(e){e.preventDefault(),e.stopImmediatePropagation(),clearTimeout(t)},!0)},isVisible:xt,selInput:yt,isInput:Ct,empty:kt,html:bt,prepend:function(t,e){return(t=ne(t)).hasChildNodes()?Bt(e,function(e){return t.insertBefore(e,t.firstChild)}):Lt(t,e)},append:Lt,before:$t,after:Mt,remove:It,wrapAll:Tt,wrapInner:Et,unwrap:_t,fragment:Nt,index:zt,css:A,getStyles:N,getStyle:z,getCssVar:H,propName:P,addClass:L,removeClass:$,removeClasses:M,replaceClass:B,hasClass:I,toggleClass:T,win:s,doc:r,docEl:h,Observer:l,requestAnimationFrame:a,hasTouch:d,pointerDown:f,pointerMove:g,pointerUp:p,pointerEnter:v,pointerLeave:m,getImage:function(t){return new i(function(e,i){var n=new Image;n.onerror=i,n.onload=function(){return e(n)},n.src=t})},supports:w,on:he,off:le,once:ae,trigger:ce,createEvent:ue,toEventTargets:pe,fastdom:ai,MouseTracker:fi,mergeOptions:mi,Player:xi,positionAt:V,offset:F,position:Y,height:q,width:U,flipPosition:et,isTouch:Ii,getPos:Ti});function _i(t){return!(!Te(t,"uk-")&&!Te(t,"data-uk-"))&&Le(t.replace("data-uk-","").replace("uk-",""))}var Si,Ai,Ni,zi,Di,Hi=function(t){this._init(t)};Hi.util=Ei,Hi.data="__uikit__",Hi.prefix="uk-",Hi.options={},Hi.instances={},Hi.elements=[],function(t){var e,i=t.data;function n(t,e){if(t)for(var i in t)t[i]._isReady&&t[i]._callUpdate(e)}t.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},t.mixin=function(e,i){i=(Ve(i)?t.components[i]:i)||this,(e=mi({},e)).mixins=i.options.mixins,delete i.options.mixins,i.options=mi(e,i.options)},t.extend=function(t){t=t||{};var e=function(t){this._init(t)};return(e.prototype=Object.create(this.prototype)).constructor=e,e.options=mi(this.options,t),e.super=this,e.extend=this.extend,e},t.update=function(e,o,s){if(void 0===s&&(s=!1),e=ue(e||"update"),o)if(o=ne(o),s)do{n(o[i],e),o=o.parentNode}while(o);else!function t(e,i){if(1===e.nodeType)for(i(e),e=e.firstElementChild;e;)t(e,i),e=e.nextElementSibling}(o,function(t){return n(t[i],e)});else n(t.instances,e)},Object.defineProperty(t,"container",{get:function(){return e||r.body},set:function(t){e=Ht(t)}})}(Hi),(Di=Hi).prototype._callHook=function(t){var e=this,i=this.$options[t];i&&i.forEach(function(t){return t.call(e)})},Di.prototype._callConnected=function(){var t=this;this._connected||(ze(Di.elements,this.$options.el)||Di.elements.push(this.$options.el),Di.instances[this._uid]=this,this._data={},this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObserver(),this._callHook("connected"),this._isReady||rt(function(){return t._callReady()}),this._callUpdate())},Di.prototype._callDisconnected=function(){if(this._connected){this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null);var t=Di.elements.indexOf(this.$options.el);~t&&Di.elements.splice(t,1),delete Di.instances[this._uid],this._unbindEvents(),this._callHook("disconnected"),this._connected=!1}},Di.prototype._callReady=function(){this._isReady||(this._isReady=!0,this._callHook("ready"),this._resetComputeds(),this._callUpdate())},Di.prototype._callUpdate=function(t){var e=this,i=(t=ue(t||"update")).type,n=t.detail;"update"===i&&n&&n.mutation&&this._resetComputeds();var o=this.$options.update,s=this._frames,r=s.reads,h=s.writes;o&&o.forEach(function(n,o){var s=n.read,l=n.write,a=n.events;("update"===i||ze(a,i))&&(s&&!ze(ai.reads,r[o])&&(r[o]=ai.read(function(){var i=s.call(e,e._data,t);!1===i&&l?(ai.clear(h[o]),delete h[o]):Pe(i)&&ii(e._data,i),delete r[o]})),l&&!ze(ai.writes,h[o])&&(h[o]=ai.write(function(){l.call(e,e._data,t),delete h[o]})))})},function(t){var e=0;function i(t,e){var i={},n=t.args;void 0===n&&(n=[]);var o=t.props;void 0===o&&(o={});var s,r,h=t.el;if(!o)return i;for(s in o)if(r=ke(s),y(h,r)){var l=Ke(o[s],x(h,r),h);if("target"===r&&(!l||Te(l,"_")))continue;i[s]=l}var a=function(t,e){var i;void 0===e&&(e=[]);try{return t?Te(t,"{")?JSON.parse(t):e.length&&!ze(t,":")?((i={})[e[0]]=t,i):t.split(";").reduce(function(t,e){var i=e.split(/:(.+)/),n=i[0],o=i[1];return n&&o&&(t[n.trim()]=o.trim()),t},{}):{}}catch(t){return{}}}(b(h,e),n);for(s in a)r=Le(s),void 0!==o[r]&&(i[r]=Ke(o[r],a[s],h));return i}function n(t,e,i){Object.defineProperty(t,e,{enumerable:!0,get:function(){var n=t._computeds,o=t.$props,s=t.$el;return we(n,e)||(n[e]=i.call(t,o,s)),n[e]},set:function(i){t._computeds[e]=i}})}function o(t,e,i){Pe(e)||(e={name:i,handler:e});var n,s,r=e.name,h=e.el,l=e.handler,a=e.capture,c=e.delegate,u=e.filter,d=e.self;h=He(h)?h.call(t):h||t.$el,De(h)?h.forEach(function(n){return o(t,ii({},e,{el:n}),i)}):!h||u&&!u.call(t)||(n=Ve(l)?t[l]:ve(l,t),l=function(t){return De(t.detail)?n.apply(n,[t].concat(t.detail)):n(t)},d&&(s=l,l=function(t){if(t.target===t.currentTarget||t.target===t.current)return s.call(null,t)}),t._events.push(he(h,r,c?Ve(c)?c:c.call(t):null,l,a)))}function s(t,e){return t.every(function(t){return!t||!we(t,e)})}t.prototype.props={},t.prototype._init=function(i){i=i||{},i=this.$options=mi(this.constructor.options,i),this.$el=null,this.$name=t.prefix+ke(this.$options.name),this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),i.el&&this.$mount(i.el)},t.prototype._initData=function(){var t=this.$options,e=t.defaults,i=t.data;void 0===i&&(i={});var n=t.args;void 0===n&&(n=[]);var o=t.props;void 0===o&&(o={});var s=t.el;for(var r in n.length&&De(i)&&(i=i.slice(0,n.length).reduce(function(t,e,i){return Pe(e)?ii(t,e):t[n[i]]=e,t},{})),ii({},e,o))this.$props[r]=this[r]=we(i,r)&&!Ye(i[r])?Ke(o[r],i[r],s):e?e[r]&&De(e[r])?e[r].concat():e[r]:null},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=ve(t[e],this)},t.prototype._initComputeds=function(){var t=this.$options.computed;if(this._resetComputeds(),t)for(var e in t)n(this,e,t[e])},t.prototype._resetComputeds=function(){this._computeds={}},t.prototype._initProps=function(t){var e;for(e in this._resetComputeds(),t=t||i(this.$options,this.$name))Ye(t[e])||(this.$props[e]=t[e]);var n=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&s(n,e)&&(this[e]=this.$props[e])},t.prototype._initEvents=function(){var t=this,e=this.$options.events;e&&e.forEach(function(e){if(we(e,"handler"))o(t,e);else for(var i in e)o(t,e[i],i)})},t.prototype._unbindEvents=function(){this._events.forEach(function(t){return t()}),this._events=[]},t.prototype._initObserver=function(){var t=this,e=this.$options,n=e.attrs,o=e.props,s=e.el;!this._observer&&o&&n&&l&&(n=De(n)?n:Object.keys(o).map(function(t){return ke(t)}),this._observer=new l(function(){var e=i(t.$options,t.$name);n.some(function(i){return!Ye(e[i])&&e[i]!==t.$props[i]})&&t.$reset(e)}),this._observer.observe(s,{attributes:!0,attributeFilter:n.concat([this.$name,"data-"+this.$name])}))}}(Hi),zi=(Ni=Hi).data,Ni.prototype.$mount=function(t){var e=this.$options.name;t[zi]||(t[zi]={}),t[zi][e]||(t[zi][e]=this,this.$el=this.$options.el=this.$options.el||t,this._initProps(),this._callHook("init"),Ft(t,h)&&this._callConnected())},Ni.prototype.$emit=function(t){this._callUpdate(t)},Ni.prototype.$update=function(t,e){Ni.update(t,this.$options.el,e)},Ni.prototype.$reset=function(t){this._callDisconnected(),this._initProps(t),this._callConnected()},Ni.prototype.$destroy=function(t){void 0===t&&(t=!1);var e=this.$options,i=e.el,n=e.name;i&&this._callDisconnected(),this._callHook("destroy"),i&&i[zi]&&(delete i[zi][n],Object.keys(i[zi]).length||delete i[zi],t&&It(this.$el))},Ai=(Si=Hi).data,Si.components={},Si.component=function(t,e){var i=Le(t);if(Pe(e))e.name=i,e=Si.extend(e);else{if(Ye(e))return Si.components[i];e.options.name=i}return Si.components[i]=e,Si[i]=function(t,e){for(var n=arguments.length,o=Array(n);n--;)o[n]=arguments[n];return Pe(t)?new Si.components[i]({data:t}):Si.components[i].options.functional?new Si.components[i]({data:[].concat(o)}):t&&t.nodeType?s(t):Ot(t).map(s)[0];function s(t){var n=Si.getComponent(t,i);return n&&e&&n.$reset(e),n||new Si.components[i]({el:t,data:e||{}})}},Si._initialized&&!e.options.functional&&ai.read(function(){return Si[i]("[uk-"+t+"],[data-uk-"+t+"]")}),Si.components[i]},Si.getComponents=function(t){return t&&(t=te(t)?t[0]:t)&&t[Ai]||{}},Si.getComponent=function(t,e){return Si.getComponents(t)[e]},Si.connect=function(t){var e;if(t[Ai])for(e in t[Ai])t[Ai][e]._callConnected();for(var i=0;i<t.attributes.length;i++)(e=_i(t.attributes[i].name))&&e in Si.components&&Si[e](t)},Si.disconnect=function(t){for(var e in t[Ai])t[Ai][e]._callDisconnected()};var Oi,Pi,Wi={init:function(){L(this.$el,this.$name)}},Zi={props:{container:Boolean},defaults:{container:!0},computed:{container:function(t){var e=t.container;return!0===e&&Hi.container||e&&Ht(e)}}},ji={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(t){var e=t.animation;return!!e[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(t,e,i){var n=this;return new xe(function(o){var s,h=function(t){return xe.all(t.map(function(t){return n._toggleElement(t,e,i)}))},l=(t=oe(t)).filter(function(t){return n.isToggled(t)}),a=t.filter(function(t){return!ze(l,t)});if(n.queued&&Ye(i)&&Ye(e)&&n.hasAnimation&&!(t.length<2)){var c=r.body,u=c.scrollTop,d=l[0],f=ft.inProgress(d)&&I(d,"uk-animation-leave")||lt.inProgress(d)&&"0px"===d.style.height;s=h(l),f||(s=s.then(function(){var t=h(a);return c.scrollTop=u,t}))}else s=h(a.concat(l));s.then(o,si)})},toggleNow:function(t,e){var i=this;return new xe(function(n){return xe.all(oe(t).map(function(t){return i._toggleElement(t,e,!1)})).then(n,si)})},isToggled:function(t){var e=oe(t||this.$el);return this.cls?I(e,this.cls.split(" ")[0]):!y(e,"hidden")},updateAria:function(t){!1===this.cls&&x(t,"aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;if(e=je(e)?e:ft.inProgress(t)?I(t,"uk-animation-leave"):lt.inProgress(t)?"0px"===t.style.height:!this.isToggled(t),!ce(t,"before"+(e?"show":"hide"),[this]))return xe.reject();var o=(!1!==i&&this.hasAnimation?this.hasTransition?this._toggleHeight:this._toggleAnimation:this._toggleImmediate)(t,e);return ce(t,e?"show":"hide",[this]),o.then(function(){ce(t,e?"shown":"hidden",[n]),Hi.update(null,t)})},_toggle:function(t,e){t&&(this.cls?T(t,this.cls,ze(this.cls," ")?void 0:e):x(t,"hidden",e?null:""),Ot("[autofocus]",t).some(function(t){return xt(t)&&(t.focus()||!0)}),this.updateAria(t),Hi.update(null,t))},_toggleImmediate:function(t,e){return this._toggle(t,e),xe.resolve()},_toggleHeight:function(t,e){var i,n=this,o=lt.inProgress(t),s=t.hasChildNodes?Xe(A(t.firstElementChild,"marginTop"))+Xe(A(t.lastElementChild,"marginBottom")):0,r=xt(t)?q(t)+(o?0:s):0;return lt.cancel(t),this.isToggled(t)||this._toggle(t,!0),q(t,""),ai.flush(),i=q(t)+(o?0:s),q(t,r),(e?lt.start(t,ii({},this.initProps,{overflow:"hidden",height:i}),Math.round(this.duration*(1-r/i)),this.transition):lt.start(t,this.hideProps,Math.round(this.duration*(r/i)),this.transition).then(function(){return n._toggle(t,!1)})).then(function(){return A(t,n.initProps)})},_toggleAnimation:function(t,e){var i=this;return ft.cancel(t),e?(this._toggle(t,!0),ft.in(t,this.animation[0],this.duration,this.origin)):ft.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},Vi={mixins:[Wi,Zi,ji],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(t,e){var i=t.clsPanel;return Ht("."+i,e)},transitionElement:function(){return this.panel},transitionDuration:function(){return ti(A(this.transitionElement,"transitionDuration"))}},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(t){t.defaultPrevented||(t.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(t){var e=Oi&&Oi!==this&&Oi;if(Oi=this,e){if(!this.stack)return e.hide().then(this.show),void t.preventDefault();this.prev=e}Pi||(Pi=[he(h,"click",function(t){var e=t.target,i=t.defaultPrevented;Oi&&Oi.bgClose&&!i&&!Ft(e,Oi.panel||Oi.$el)&&Oi.hide()}),he(r,"keydown",function(t){27===t.keyCode&&Oi&&Oi.escClose&&(t.preventDefault(),Oi.hide())})])}},{name:"beforehide",self:!0,handler:function(){(Oi=Oi&&Oi!==this&&Oi||this.prev)||(Pi&&Pi.forEach(function(t){return t()}),Pi=null)}},{name:"show",self:!0,handler:function(){I(h,this.clsPage)||(this.scrollbarWidth=U(s)-h.offsetWidth,A(r.body,"overflowY",this.scrollbarWidth&&this.overlay?"scroll":"")),L(h,this.clsPage)}},{name:"hidden",self:!0,handler:function(){for(var t,e=this.prev;e;){if(e.clsPage===this.clsPage){t=!0;break}e=e.prev}t||$(h,this.clsPage),!this.prev&&A(r.body,"overflowY","")}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){if(!this.isToggled())return this.container&&this.$el.parentNode!==this.container&&(Lt(this.container,this.$el),this._callConnected()),this.toggleNow(this.$el,!0)},hide:function(){if(this.isToggled())return this.toggleNow(this.$el,!1)},getActive:function(){return Oi},_toggleImmediate:function(t,e){var i=this;return new xe(function(n){return a(function(){i._toggle(t,e),i.transitionDuration?ae(i.transitionElement,"transitionend",n,!1,function(t){return t.target===i.transitionElement}):n()})})}}},Fi={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:"bottom-"+(ot?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){var e=t.pos;return(e+(ze(e,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){this._resetComputeds(),M(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),A(t,{top:"",left:""});var n,o=this.offset,s=this.getAxis();o=Re(o)?o:(n=Ht(o))?F(n)["x"===s?"left":"top"]-F(e)["x"===s?"right":"bottom"]:0;var r=V(t,e,"x"===s?et(this.dir)+" "+this.align:this.align+" "+et(this.dir),"x"===s?this.dir+" "+this.align:this.align+" "+this.dir,"x"===s?""+("left"===this.dir?-o:o):" "+("top"===this.dir?-o:o),null,this.flip,i).target,h=r.x,l=r.y;this.dir="x"===s?h:l,this.align="x"===s?l:h,T(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}};function Ri(t){t.component("accordion",{mixins:[Wi,ji],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},defaults:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(t,e){var i=t.targets;return Ot(i,e)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(zt(Ot(this.targets+" "+this.$props.toggle,this.$el),t.current))}}],connected:function(){if(!1!==this.active){var t=this.items[Number(this.active)];t&&!I(t,this.clsOpen)&&this.toggle(t,!1)}},update:function(){var t=this;this.items.forEach(function(e){return t._toggleImmediate(Ht(t.content,e),I(e,t.clsOpen))});var e=!this.collapsible&&!I(this.items,this.clsOpen)&&this.items[0];e&&this.toggle(e,!1)},methods:{toggle:function(t,e){var i=this,n=pt(t,this.items),o=Vt(this.items,"."+this.clsOpen);(t=this.items[n])&&[t].concat(!this.multiple&&!ze(o,t)&&o||[]).forEach(function(n){var s=n===t,r=s&&!I(n,i.clsOpen);if(r||!s||i.collapsible||!(o.length<2)){T(n,i.clsOpen,r);var h=n._wrapper?n._wrapper.firstElementChild:Ht(i.content,n);n._wrapper||(n._wrapper=Tt(h,"<div>"),x(n._wrapper,"hidden",r?"":null)),i._toggleImmediate(h,!0),i.toggleElement(n._wrapper,r,e).then(function(){I(n,i.clsOpen)===r&&(r||i._toggleImmediate(h,!1),n._wrapper=null,_t(h))})}})}}})}function Yi(t){t.component("alert",{attrs:!0,mixins:[Wi,ji],args:"animation",props:{close:String},defaults:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:ii({opacity:0},ji.defaults.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 qi(t){rt(function(){var e=0,i=0;if(he(s,"load resize",t.update),he(s,"scroll",function(i){i.dir=e<=s.pageYOffset?"down":"up",i.scrollY=e=s.pageYOffset,t.update(i)}),he(r,"animationstart",function(t){var e=t.target;(A(e,"animationName")||"").match(/^uk-.*(left|right)/)&&(i++,r.body.style.overflowX="hidden",setTimeout(function(){--i||(r.body.style.overflowX="")},ti(A(e,"animationDuration"))+100))},!0),d){var n="uk-hover";he(r,"tap",function(t){var e=t.target;return Ot("."+n).forEach(function(t,i){return!Ft(e,i)&&$(i,n)})}),Object.defineProperty(t,"hoverSelector",{set:function(t){he(r,"tap",t,function(t){var e=t.current;return L(e,n)})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function Ui(t){t.component("cover",{mixins:[Wi,t.components.video.options],props:{width:Number,height:Number},defaults:{automute:!0},update:{write:function(){var t=this.$el;if(xt(t)){var e=t.parentNode,i=e.offsetHeight,n=e.offsetWidth;A(A(t,{width:"",height:""}),wt.cover({width:this.width||t.clientWidth,height:this.height||t.clientHeight},{width:n+(n%2?1:0),height:i+(i%2?1:0)}))}},events:["load","resize"]},events:{loadedmetadata:function(){this.$emit()}}})}function Xi(t){var e,i;t.component("drop",{mixins:[Fi,ji],args:"pos",props:{mode:"list",toggle:Boolean,boundary:"query",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:["click","hover"],toggle:!0,boundary:s,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},computed:{clsDrop:function(t){var e=t.clsDrop;return e||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},init:function(){this.tracker=new fi,L(this.$el,this.clsDrop)},connected:function(){var e=this.$props.toggle;this.toggle=e&&t.toggle(Ve(e)?Wt(e,this.$el):this.$el.previousElementSibling,{target:this.$el,mode:this.mode}),this.updateAria(this.$el)},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.defaultPrevented){var e=t.target.hash;e||t.preventDefault(),e&&Ft(e,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:v,filter:function(){return ze(this.mode,"hover")},handler:function(t){Ii(t)||(e&&e!==this&&e.toggle&&ze(e.toggle.mode,"hover")&&!Ft(t.target,e.toggle.$el)&&!hi({x:t.pageX,y:t.pageY},F(e.$el))&&e.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!ze(e.target,this.$el)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+m,handler:function(t,e){Ii(t)||e&&!ze(e.target,this.$el)||(t.preventDefault(),this.toggle&&ze(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers()}},{name:"show",self:!0,handler:function(){this.position(),this.tracker.init(),L(this.toggle.$el,this.cls),x(this.toggle.$el,"aria-expanded","true"),i||(i=!0,he(h,"click",function(t){var i,n=t.target,o=t.defaultPrevented;if(!o)for(;e&&e!==i&&!Ft(n,e.$el)&&(!e.toggle||!Ft(n,e.toggle.$el));)i=e,e.hide(!1)}))}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var i=t.target;this.$el===i?(e=this.isActive()?null:e,$(this.toggle.$el,this.cls),x(this.toggle.$el,"aria-expanded","false"),this.toggle.$el.blur(),Ot("a, button",this.toggle.$el).forEach(function(t){return t.blur()}),this.tracker.cancel()):e=null===e&&Ft(i,this.$el)&&this.isToggled()?this:e}}],update:{write:function(){this.isToggled()&&!ft.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(t,i){var n=this;void 0===i&&(i=!0);var o=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},s=function(){if(n.toggle=t||n.toggle,n.clearTimers(),!n.isActive())if(i&&e&&e!==n&&e.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(e)){if(!e.hideTimer)return;e.hide(!1)}else if(e&&!n.isChildOf(e)&&!n.isParentOf(e))for(var s;e&&e!==s&&!n.isChildOf(e);)s=e,e.hide(!1);i&&n.delayShow?n.showTimer=setTimeout(o,n.delayShow):o(),e=n}};t&&this.toggle&&t.$el!==this.toggle.$el?(ae(this.$el,"hide",s),this.hide(!1)):s()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return e===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(){M(this.$el,this.clsDrop+"-(stack|boundary)"),A(this.$el,{top:"",left:"",display:"block"}),T(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t=F(this.boundary),e=this.boundaryAlign?t:F(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";A(this.$el,i,e[i])}else this.$el.offsetWidth>Math.max(t.right-e.left,e.right-t.left)&&L(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),A(this.$el,"display","")}}}),t.drop.getActive=function(){return e}}function Ji(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function Gi(t){t.component("form-custom",{mixins:[Wi],args:"target",props:{target:Boolean},defaults:{target:!1},computed:{input:function(t,e){return Ht(yt,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){var i=t.target;return i&&(!0===i&&this.input.parentNode===e&&this.input.nextElementSibling||Wt(i,e))}},connected:function(){ce(this.input,"change")},events:[{name:"focusin focusout mouseenter mouseleave",delegate:yt,handler:function(t){var e=t.type,i=t.current;i===this.input&&T(this.state,"uk-"+(ze(e,"focus")?"focus":"hover"),ze(["focusin","mouseenter"],e))}},{name:"change",handler:function(){var t,e=this.target,i=this.input;e&&(e[Ct(e)?"value":"textContent"]=i.files&&i.files[0]?i.files[0].name:Jt(i,"select")&&(t=Ot("option",i).filter(function(t){return t.selected})[0])?t.textContent:i.value)}}]})}function Qi(t){t.component("gif",{update:{read:function(t){var e=gt(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=this.$el.src},events:["scroll","load","resize"]}})}function Ki(t){t.component("grid",t.components.margin.extend({mixins:[Wi],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(t){var e=t.stacks;T(this.$el,this.clsStack,e)},events:["load","resize"]}}))}function tn(t){t.component("height-match",{args:"target",props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},computed:{elements:function(t,e){var i=t.target;return Ot(i,e)}},update:{read:function(){var t=this,e=!1;return A(this.elements,"minHeight",""),{rows:this.row?this.elements.reduce(function(t,i){return e!==i.offsetTop?t.push([i]):t[t.length-1].push(i),e=i.offsetTop,t},[]).map(function(e){return t.match(e)}):[this.match(this.elements)]}},write:function(t){var e=t.rows;e.forEach(function(t){var e=t.height,i=t.elements;return A(i,"minHeight",e)})},events:["load","resize"]},methods:{match:functi