UNPKG

uikit

Version:

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

1 lines • 147 kB
/*! UIkit 3.21.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function($e,ye){typeof exports=="object"&&typeof module<"u"?module.exports=ye():typeof define=="function"&&define.amd?define("uikit",ye):($e=typeof globalThis<"u"?globalThis:$e||self,$e.UIkit=ye())})(this,function(){"use strict";const{hasOwnProperty:$e,toString:ye}=Object.prototype;function pt(t,e){return $e.call(t,e)}const nr=/\B([A-Z])/g,Dt=ht(t=>t.replace(nr,"-$1").toLowerCase()),or=/-(\w)/g,ke=ht(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(or,(e,i)=>i.toUpperCase())),kt=ht(t=>t.charAt(0).toUpperCase()+t.slice(1));function gt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function Qt(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function v(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function wt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:G,from:Zt}=Array,{assign:ft}=Object;function tt(t){return typeof t=="function"}function St(t){return t!==null&&typeof t=="object"}function te(t){return ye.call(t)==="[object Object]"}function ee(t){return St(t)&&t===t.window}function Se(t){return Li(t)===9}function Ze(t){return Li(t)>=1}function Ie(t){return Li(t)===1}function Li(t){return!ee(t)&&St(t)&&t.nodeType}function ie(t){return typeof t=="boolean"}function N(t){return typeof t=="string"}function Ee(t){return typeof t=="number"}function mt(t){return Ee(t)||N(t)&&!isNaN(t-parseFloat(t))}function ti(t){return!(G(t)?t.length:St(t)&&Object.keys(t).length)}function X(t){return t===void 0}function Wi(t){return ie(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function xt(t){const e=Number(t);return isNaN(e)?!1:e}function k(t){return parseFloat(t)||0}function W(t){return t&&T(t)[0]}function T(t){return Ze(t)?[t]:Array.from(t||[]).filter(Ze)}function Mt(t){if(ee(t))return t;t=W(t);const e=Se(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Te(t,e){return t===e||St(t)&&St(e)&&Object.keys(t).length===Object.keys(e).length&&se(t,(i,s)=>i===e[s])}function ji(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function Bt(t){return t[t.length-1]}function se(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function js(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Nt(t,e){return t.reduce((i,s)=>i+k(tt(e)?e(s):s[e]),0)}function Rs(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function Ri(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function Q(t,e=0,i=1){return Math.min(Math.max(xt(t)||0,e),i)}function A(){}function ei(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function ii(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function qi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function qs(t,e){t={...t};for(const i in t)t=t[i]>e[i]?qi(t,i,e[i]):t;return t}function rr(t,e){t=qs(t,e);for(const i in t)t=t[i]<e[i]?qi(t,i,e[i]):t;return t}const Ui={ratio:qi,contain:qs,cover:rr};function nt(t,e,i=0,s=!1){e=T(e);const{length:n}=e;return n?(t=mt(t)?xt(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(W(t)),s?Q(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function ht(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function S(t,...e){for(const i of T(t)){const s=zt(e).filter(n=>!x(i,n));s.length&&i.classList.add(...s)}}function _(t,...e){for(const i of T(t)){const s=zt(e).filter(n=>x(i,n));s.length&&i.classList.remove(...s)}}function si(t,e,i){i=zt(i),e=zt(e).filter(s=>!v(i,s)),_(t,e),S(t,i)}function x(t,e){return[e]=zt(e),T(t).some(i=>i.classList.contains(e))}function j(t,e,i){const s=zt(e);X(i)||(i=!!i);for(const n of T(t))for(const o of s)n.classList.toggle(o,i)}function zt(t){return t?G(t)?t.map(zt).flat():String(t).split(" ").filter(Boolean):[]}function g(t,e,i){var s;if(St(e)){for(const n in e)g(t,n,e[n]);return}if(X(i))return(s=W(t))==null?void 0:s.getAttribute(e);for(const n of T(t))tt(i)&&(i=i.call(n,g(n,e))),i===null?Ce(n,e):n.setAttribute(e,i)}function It(t,e){return T(t).some(i=>i.hasAttribute(e))}function Ce(t,e){T(t).forEach(i=>i.removeAttribute(e))}function J(t,e){for(const i of[e,`data-${e}`])if(It(t,i))return g(t,i)}const Ft=typeof window<"u",U=Ft&&document.dir==="rtl",ne=Ft&&"ontouchstart"in window,oe=Ft&&window.PointerEvent,ct=oe?"pointerdown":ne?"touchstart":"mousedown",ni=oe?"pointermove":ne?"touchmove":"mousemove",Et=oe?"pointerup":ne?"touchend":"mouseup",Ht=oe?"pointerenter":ne?"":"mouseenter",re=oe?"pointerleave":ne?"":"mouseleave",oi=oe?"pointercancel":"touchcancel",ar={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Vi(t){return T(t).some(e=>ar[e.tagName.toLowerCase()])}const lr=Ft&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function R(t){return T(t).some(e=>lr.call(e))}const Pe="input,select,textarea,button";function ri(t){return T(t).some(e=>C(e,Pe))}const _e=`${Pe},a[href],[tabindex]`;function ai(t){return C(t,_e)}function D(t){var e;return(e=W(t))==null?void 0:e.parentElement}function Ae(t,e){return T(t).filter(i=>C(i,e))}function C(t,e){return T(t).some(i=>i.matches(e))}function Oe(t,e){const i=[];for(;t=D(t);)(!e||C(t,e))&&i.push(t);return i}function M(t,e){t=W(t);const i=t?Zt(t.children):[];return e?Ae(i,e):i}function $t(t,e){return e?T(t).indexOf(W(e)):M(D(t)).indexOf(t)}function ae(t){return t=W(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Yi(t){if(ae(t)){const{hash:e,ownerDocument:i}=W(t),s=decodeURIComponent(e).slice(1);return i.getElementById(s)||i.getElementsByName(s)[0]}}function Z(t,e){return Gi(t,Us(t,e))}function De(t,e){return le(t,Us(t,e))}function Gi(t,e){return W(Gs(t,W(e),"querySelector"))}function le(t,e){return T(Gs(t,W(e),"querySelectorAll"))}function Us(t,e=document){return N(t)&&Vs(t).isContextSelector||Se(e)?e:e.ownerDocument}const hr=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,cr=/.*?[^\\](?![^(]*\))(?:,|$)/g,ur=/\s*,$/,Vs=ht(t=>{var e;t=t.replace(hr,"$1 *");let i=!1;const s=[];for(let n of(e=t.match(cr))!=null?e:[])n=n.replace(ur,"").trim(),i||(i=["!","+","~","-",">"].includes(n[0])),s.push(n);return{selector:s.join(","),selectors:s,isContextSelector:i}}),Ys=ht(t=>{t=t.slice(1).trim();const e=t.indexOf(" ");return~e?[t.slice(0,e),t.slice(e+1)]:[t,""]});function Gs(t,e=document,i){if(!t||!N(t))return t;const s=Vs(t);if(!s.isContextSelector)return Xi(e,i,s.selector);t="";const n=s.selectors.length===1;for(let o of s.selectors){let r,a=e;if(o[0]==="!"&&([r,o]=Ys(o),a=e.parentElement.closest(r),!o&&n)||a&&o[0]==="-"&&([r,o]=Ys(o),a=a.previousElementSibling,a=C(a,r)?a:null,!o&&n))return a;if(a){if(n)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${$t(a)+1}) ${o}`,a=a.parentElement):o[0]===">"&&(o=`:scope ${o}`),Xi(a,i,o);t+=`${t?",":""}${fr(a)} ${o}`}}return Se(e)||(e=e.ownerDocument),Xi(e,i,t)}function Xi(t,e,i){try{return t[e](i)}catch{return null}}function fr(t){const e=[];for(;t.parentNode;){const i=g(t,"id");if(i){e.unshift(`#${Ji(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${$t(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Ji(t){return N(t)?CSS.escape(t):""}function $(...t){let[e,i,s,n,o=!1]=Ki(t);n.length>1&&(n=pr(n)),o!=null&&o.self&&(n=gr(n)),s&&(n=dr(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>Tt(e,i,n,o)}function Tt(...t){let[e,i,,s,n=!1]=Ki(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function F(...t){const[e,i,s,n,o=!1,r]=Ki(t),a=$(e,i,s,l=>{const c=!r||r(l);c&&(a(),n(l,c))},o);return a}function b(t,e,i){return Qi(t).every(s=>s.dispatchEvent(he(e,!0,!0,i)))}function he(t,e=!0,i=!1,s){return N(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ki(t){return t[0]=Qi(t[0]),N(t[1])&&(t[1]=t[1].split(" ")),tt(t[2])&&t.splice(2,0,!1),t}function dr(t,e){return i=>{const s=t[0]===">"?le(t,i.currentTarget).reverse().find(n=>n.contains(i.target)):i.target.closest(t);s&&(i.current=s,e.call(this,i),delete i.current)}}function pr(t){return e=>G(e.detail)?t(e,...e.detail):t(e)}function gr(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Xs(t){return t&&"addEventListener"in t}function mr(t){return Xs(t)?t:W(t)}function Qi(t){return G(t)?t.map(mr).filter(Boolean):N(t)?le(t):Xs(t)?[t]:T(t)}function dt(t){return t.pointerType==="touch"||!!t.touches}function yt(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}const vr={"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 h(t,e,i,s){const n=T(t);for(const o of n)if(N(e)){if(e=li(e),X(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,mt(i)&&!vr[e]?`${i}px`:i||Ee(i)?i:"",s)}else if(G(e)){const r={};for(const a of e)r[a]=h(o,a);return r}else if(St(e))for(const r in e)h(o,r,e[r],i);return n[0]}const li=ht(t=>{if(gt(t,"--"))return t;t=Dt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}),Zi="uk-transition",ts="transitionend",es="transitioncanceled";function br(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(T(t).map(n=>new Promise((o,r)=>{for(const l in e)h(n,l);const a=setTimeout(()=>b(n,ts),i);F(n,[ts,es],({type:l})=>{clearTimeout(a),_(n,Zi),h(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l===es?r():o(n)},{self:!0}),S(n,Zi),h(n,{transitionProperty:Object.keys(e).map(li).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const B={start:br,async stop(t){b(t,ts),await Promise.resolve()},async cancel(t){b(t,es),await Promise.resolve()},inProgress(t){return x(t,Zi)}},Me="uk-animation",Js="animationend",hi="animationcanceled";function Ks(t,e,i=200,s,n){return Promise.all(T(t).map(o=>new Promise((r,a)=>{x(o,Me)&&b(o,hi);const l=[e,Me,`${Me}-${n?"leave":"enter"}`,s&&`uk-transform-origin-${s}`,n&&`${Me}-reverse`],c=setTimeout(()=>b(o,Js),i);F(o,[Js,hi],({type:u})=>{clearTimeout(c),u===hi?a():r(o),h(o,"animationDuration",""),_(o,l)},{self:!0}),h(o,"animationDuration",`${i}ms`),S(o,l)})))}const Ct={in:Ks,out(t,e,i,s){return Ks(t,e,i,s,!0)},inProgress(t){return x(t,Me)},cancel(t){b(t,hi)}};function wr(t){if(document.readyState!=="loading"){t();return}F(document,"DOMContentLoaded",t)}function H(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Qs(t){return t=y(t),t.innerHTML="",t}function Pt(t,e){return X(e)?y(t).innerHTML:q(Qs(t),e)}const xr=fi("prepend"),q=fi("append"),ci=fi("before"),ui=fi("after");function fi(t){return function(e,i){var s;const n=T(N(i)?Lt(i):i);return(s=y(e))==null||s[t](...n),Zs(n)}}function ot(t){T(t).forEach(e=>e.remove())}function di(t,e){for(e=W(ci(t,e));e.firstElementChild;)e=e.firstElementChild;return q(e,t),e}function is(t,e){return T(T(t).map(i=>i.hasChildNodes()?di(Zt(i.childNodes),e):q(i,e)))}function Be(t){T(t).map(D).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const $r=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Lt(t){const e=$r.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Zs(i.content.childNodes)}function Zs(t){return t.length>1?t:t[0]}function _t(t,e){if(Ie(t))for(e(t),t=t.firstElementChild;t;)_t(t,e),t=t.nextElementSibling}function y(t,e){return tn(t)?W(Lt(t)):Gi(t,e)}function z(t,e){return tn(t)?T(Lt(t)):le(t,e)}function tn(t){return N(t)&&gt(t.trim(),"<")}const Wt={width:["left","right"],height:["top","bottom"]};function m(t){const e=Ie(t)?W(t).getBoundingClientRect():{height:et(t),width:pi(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function E(t,e){e&&h(t,{left:0,top:0});const i=m(t);if(t){const{scrollY:s,scrollX:n}=Mt(t),o={height:s,width:n};for(const r in Wt)for(const a of Wt[r])i[a]+=o[r]}if(!e)return i;for(const s of["left","top"])h(t,s,e[s]-i[s])}function ss(t){let{top:e,left:i}=E(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=W(t);let r=o||n;for(;r&&(r===s||r===n)&&h(r,"position")==="static";)r=r.parentNode;if(Ie(r)){const a=E(r);e-=a.top+k(h(r,"borderTopWidth")),i-=a.left+k(h(r,"borderLeftWidth"))}return{top:e-k(h(t,"marginTop")),left:i-k(h(t,"marginLeft"))}}function Ne(t){t=W(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+k(h(t,"borderTopWidth")),e[1]+=t.offsetLeft+k(h(t,"borderLeftWidth")),h(t,"position")==="fixed"){const i=Mt(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const et=en("height"),pi=en("width");function en(t){const e=kt(t);return(i,s)=>{if(X(s)){if(ee(i))return i[`inner${e}`];if(Se(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=W(i),s=h(i,t),s=s==="auto"?i[`offset${e}`]:k(s)||0,s-ce(i,t)}else return h(i,t,!s&&s!==0?"":+s+ce(i,t)+"px")}}function ce(t,e,i="border-box"){return h(t,"boxSizing")===i?Nt(Wt[e].map(kt),s=>k(h(t,`padding${s}`))+k(h(t,`border${s}Width`))):0}function gi(t){for(const e in Wt)for(const i in Wt[e])if(Wt[e][i]===t)return Wt[e][1-i];return t}function Y(t,e="width",i=window,s=!1){return N(t)?Nt(kr(t),n=>{const o=Ir(n);return o?Er(o==="vh"?Tr():o==="vw"?pi(Mt(i)):s?i[`offset${kt(e)}`]:m(i)[e],n):n}):k(t)}const yr=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,kr=ht(t=>t.toString().replace(/\s/g,"").match(yr)||[]),Sr=/(?:v[hw]|%)$/,Ir=ht(t=>(t.match(Sr)||[])[0]);function Er(t,e){return t*k(e)/100}let ze,ue;function Tr(){return ze||(ue||(ue=y("<div>"),h(ue,{height:"100vh",position:"fixed"}),$(window,"resize",()=>ze=null)),q(document.body,ue),ze=ue.clientHeight,ot(ue),ze)}const At={read:Cr,write:Pr,clear:_r,flush:sn},mi=[],vi=[];function Cr(t){return mi.push(t),os(),t}function Pr(t){return vi.push(t),os(),t}function _r(t){on(mi,t),on(vi,t)}let ns=!1;function sn(){nn(mi),nn(vi.splice(0)),ns=!1,(mi.length||vi.length)&&os()}function os(){ns||(ns=!0,queueMicrotask(sn))}function nn(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function on(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class rn{init(){this.positions=[];let e;this.unbind=$(document,"mousemove",i=>e=yt(i)),this.interval=setInterval(()=>{e&&(this.positions.push(e),this.positions.length>5&&this.positions.shift())},50)}cancel(){var e;(e=this.unbind)==null||e.call(this),clearInterval(this.interval)}movesTo(e){if(!this.positions||this.positions.length<2)return!1;const i=m(e),{left:s,right:n,top:o,bottom:r}=i,[a]=this.positions,l=Bt(this.positions),c=[a,l];return ii(l,i)?!1:[[{x:s,y:o},{x:n,y:r}],[{x:s,y:r},{x:n,y:o}]].some(f=>{const d=Ar(c,f);return d&&ii(d,i)})}}function Ar([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const c=((r-n)*(e-o)-(a-o)*(t-n))/l;return c<0?!1:{x:t+c*(i-t),y:e+c*(s-e)}}function an(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of T(t))n.observe(o);return n}const Or=Ft&&window.ResizeObserver;function Fe(t,e,i={box:"border-box"}){if(Or)return ln(ResizeObserver,t,e,i);const s=[$(window,"load resize",e),$(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(n=>n())}}function rs(t){return{disconnect:$([window,window.visualViewport],"resize",t)}}function as(t,e,i){return ln(MutationObserver,t,e,i)}function ln(t,e,i,s){const n=new t(i);for(const o of T(e))n.observe(o,s);return n}function ls(t){xi(t)&&hs(t,{func:"playVideo",method:"play"}),wi(t)&&t.play().catch(A)}function bi(t){xi(t)&&hs(t,{func:"pauseVideo",method:"pause"}),wi(t)&&t.pause()}function hn(t){xi(t)&&hs(t,{func:"mute",method:"setVolume",value:0}),wi(t)&&(t.muted=!0)}function cn(t){return wi(t)||xi(t)}function wi(t){return H(t,"video")}function xi(t){return H(t,"iframe")&&(un(t)||fn(t))}function un(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function fn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function hs(t,e){await Mr(t),dn(t,e)}function dn(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const cs="_ukPlayer";let Dr=0;function Mr(t){if(t[cs])return t[cs];const e=un(t),i=fn(t),s=++Dr;let n;return t[cs]=new Promise(o=>{e&&F(t,"load",()=>{const r=()=>dn(t,{event:"listening",id:s});n=setInterval(r,100),r()}),F(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${v(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function Br(t,e=0,i=0){return R(t)?ei(...Rt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=rt(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(E(t))):!1}function pn(t,{offset:e=0}={}){const i=R(t)?jt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:c,scrollHeight:u,offsetHeight:f}=a,d=rt(a),p=u-d.height,{height:w,top:I}=i[l-1]?rt(i[l-1]):E(t);let P=Math.ceil(I-d.top-e+c);return e>0&&f<w+e?P+=e:e=0,P>p?(e-=P-p,P=p):P<0&&(e-=P,P=0),()=>s(a,P-c,t,p).then(r)},()=>Promise.resolve())();function s(r,a,l,c){return new Promise(u=>{const f=r.scrollTop,d=n(Math.abs(a)),p=Date.now(),w=ds(r)===r,I=E(l).top+(w?0:f);let P=0,vt=15;(function we(){const xe=o(Q((Date.now()-p)/d));let bt=0;i[0]===r&&f+a<c&&(bt=E(l).top+(w?0:r.scrollTop)-I-m(us(l)).height),r.scrollTop=f+(a+bt)*xe,xe===1&&(P===bt||!vt--)?u():(P=bt,requestAnimationFrame(we))})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function $i(t,e=0,i=0){if(!R(t))return 0;const s=Ot(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=rt(s),a=n-r,l=Ne(t)[0]-Ne(s)[0],c=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return c<u?Q((o-c)/(u-c)):1}function jt(t,e=!1,i=[]){const s=ds(t);let n=Oe(t).reverse();n=n.slice(n.indexOf(s)+1);const o=wt(n,r=>h(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>h(r,"overflow").split(" ").some(a=>v(["auto","scroll",...i],a))&&(!e||r.scrollHeight>rt(r).height))).reverse()}function Ot(...t){return jt(...t)[0]}function Rt(t){return jt(t,!1,["hidden","clip"])}function rt(t){const e=Mt(t);let i=t===ds(t)?e:t;if(ee(i)&&e.visualViewport){let{height:n,width:o,scale:r,pageTop:a,pageLeft:l}=e.visualViewport;return n=Math.round(n*r),o=Math.round(o*r),{height:n,width:o,top:a,left:l,bottom:a+n,right:l+o}}let s=E(i);if(h(i,"display")==="inline")return s;for(let[n,o,r,a]of[["width","x","left","right"],["height","y","top","bottom"]]){ee(i)?i=i.document:s[r]+=k(h(i,`border-${r}-width`));const l=s[n]%1;s[n]=s[o]=i[`client${kt(n)}`]-(l?l<.5?-l:1-l:0),s[a]=s[n]+s[r]}return s}function us(t){const{left:e,width:i,top:s}=m(t);for(const n of s?[0,s]:[0]){let o;for(const r of Mt(t).document.elementsFromPoint(e+i/2,n))!r.contains(t)&&!x(r,"uk-togglable-leave")&&(fs(r,"fixed")&&gn(Oe(t).reverse().find(a=>!a.contains(r)&&!fs(a,"static")))<gn(r)||fs(r,"sticky")&&D(r).contains(t))&&(!o||m(o).height<m(r).height)&&(o=r);if(o)return o}}function gn(t){return k(h(t,"zIndex"))}function fs(t,e){return h(t,"position")===e}function ds(t){return Mt(t).document.scrollingElement}const at=[["width","x","left","right"],["height","y","top","bottom"]];function mn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},G(e)||(e=[e,e]),E(t,vn(t,e,i))}function vn(t,e,i){const s=bn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[c,,u,f]]of Object.entries(at)){const d=Nr(t,e[l],o,n,l);if(yi(s,d,l))continue;let p=0;if(r[l]==="flip"){const w=i.attach.target[l];if(w===f&&s[f]<=d[f]||w===u&&s[u]>=d[u])continue;p=Fr(t,e,i,l)[u]-s[u];const I=zr(t,e[l],o,l);if(!yi(ps(s,p,l),I,l)){if(yi(s,I,l))continue;if(i.recursion)return!1;const P=Hr(t,e,i);if(P&&yi(P,I,1-l))return P;continue}}else if(r[l]==="shift"){const w=E(e[l]),{offset:I}=i;p=Q(Q(s[u],d[u],d[f]-s[c]),w[u]-s[c]+I[l],w[f]-I[l])-s[u]}a=ps(a,p,l)}return a}function bn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=E(t);for(const[r,[a,,l,c]]of Object.entries(at)){const u=s.target[r]===s.element[r]?rt(e[r]):E(e[r]);o=ps(o,u[l]-o[l]+wn(s.target[r],c,u[a])-wn(s.element[r],c,o[a])+ +n[r],r)}return o}function ps(t,e,i){const[,s,n,o]=at[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function wn(t,e,i){return t==="center"?i/2:t===e?i:0}function Nr(t,e,i,s,n){let o=$n(...xn(t,e).map(rt));return i&&(o[at[n][2]]+=i,o[at[n][3]]-=i),s&&(o=$n(o,E(G(s)?s[n]:s))),o}function zr(t,e,i,s){const[n,o,r,a]=at[s],[l]=xn(t,e),c=rt(l);return["auto","scroll"].includes(h(l,`overflow-${o}`))&&(c[r]-=l[`scroll${kt(r)}`],c[a]=c[r]+l[`scroll${kt(n)}`]),c[r]+=i,c[a]-=i,c}function xn(t,e){return Rt(e).filter(i=>i.contains(t))}function $n(...t){let e={};for(const i of t)for(const[,,s,n]of at)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function yi(t,e,i){const[,,s,n]=at[i];return t[s]>=e[s]&&t[n]<=e[n]}function Fr(t,e,{offset:i,attach:s},n){return bn(t,e,{attach:{element:yn(s.element,n),target:yn(s.target,n)},offset:Lr(i,n)})}function Hr(t,e,i){return vn(t,e,{...i,attach:{element:i.attach.element.map(kn).reverse(),target:i.attach.target.map(kn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function yn(t,e){const i=[...t],s=at[e].indexOf(t[e]);return~s&&(i[e]=at[e][1-s%2+2]),i}function kn(t){for(let e=0;e<at.length;e++){const i=at[e].indexOf(t);if(~i)return at[1-e][i%2+2]}}function Lr(t,e){return t=[...t],t[e]*=-1,t}var Wr=Object.freeze({__proto__:null,$:y,$$:z,Animation:Ct,Dimensions:Ui,MouseTracker:rn,Transition:B,addClass:S,after:ui,append:q,apply:_t,assign:ft,attr:g,before:ci,boxModelAdjust:ce,camelize:ke,children:M,clamp:Q,createEvent:he,css:h,data:J,dimensions:m,each:se,empty:Qs,endsWith:Qt,escape:Ji,fastdom:At,filter:Ae,find:Gi,findAll:le,findIndex:wt,flipPosition:gi,fragment:Lt,getCoveringElement:us,getEventPos:yt,getIndex:nt,getTargetedElement:Yi,hasAttr:It,hasClass:x,hasOwn:pt,hasTouch:ne,height:et,html:Pt,hyphenate:Dt,inBrowser:Ft,includes:v,index:$t,intersectRect:ei,isArray:G,isBoolean:ie,isDocument:Se,isElement:Ie,isEmpty:ti,isEqual:Te,isFocusable:ai,isFunction:tt,isInView:Br,isInput:ri,isNode:Ze,isNumber:Ee,isNumeric:mt,isObject:St,isPlainObject:te,isRtl:U,isSameSiteAnchor:ae,isString:N,isTag:H,isTouch:dt,isUndefined:X,isVideo:cn,isVisible:R,isVoidElement:Vi,isWindow:ee,last:Bt,matches:C,memoize:ht,mute:hn,noop:A,observeIntersection:an,observeMutation:as,observeResize:Fe,observeViewportResize:rs,off:Tt,offset:E,offsetPosition:Ne,offsetViewport:rt,on:$,once:F,overflowParents:Rt,parent:D,parents:Oe,pause:bi,pick:Ri,play:ls,pointInRect:ii,pointerCancel:oi,pointerDown:ct,pointerEnter:Ht,pointerLeave:re,pointerMove:ni,pointerUp:Et,position:ss,positionAt:mn,prepend:xr,propName:li,query:Z,queryAll:De,ready:wr,remove:ot,removeAttr:Ce,removeClass:_,replaceClass:si,scrollIntoView:pn,scrollParent:Ot,scrollParents:jt,scrolledOver:$i,selFocusable:_e,selInput:Pe,sortBy:js,startsWith:gt,sumBy:Nt,swap:ji,toArray:Zt,toBoolean:Wi,toEventTargets:Qi,toFloat:k,toNode:W,toNodes:T,toNumber:xt,toPx:Y,toWindow:Mt,toggleClass:j,trigger:b,ucfirst:kt,uniqueBy:Rs,unwrap:Be,width:pi,wrapAll:di,wrapInner:is}),it={connected(){S(this.$el,this.$options.id)}};const jr=["days","hours","minutes","seconds"];var Rr={mixins:[it],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){g(this.$el,"role",this.role),this.date=k(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(b(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),b(this.$el,"countdownstop"),this.timer=null)},update(){const t=qr(this.date);t.total||(this.stop(),this.end||(b(this.$el,"countdownend"),this.end=!0));for(const e of jr){const i=y(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=Math.trunc(t[e]).toString().padStart(2,"0");i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Pt(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function qr(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const V={};V.events=V.watch=V.observe=V.created=V.beforeConnect=V.connected=V.beforeDisconnect=V.disconnected=V.destroy=gs,V.args=function(t,e){return e!==!1&&gs(e||t)},V.update=function(t,e){return js(gs(t,tt(e)?{read:e}:e),"order")},V.props=function(t,e){if(G(e)){const i={};for(const s of e)i[s]=String;e=i}return V.methods(t,e)},V.computed=V.methods=function(t,e){return e?t?{...t,...e}:e:t},V.i18n=V.data=function(t,e,i){return i?Sn(t,e,i):e?t?function(s){return Sn(t,e,s)}:e:t};function Sn(t,e,i){return V.computed(tt(t)?t.call(i,i):t,tt(e)?e.call(i,i):e)}function gs(t,e){return t=t&&!G(t)?[t]:t,e?t?t.concat(e):G(e)?e:[e]:t}function Ur(t,e){return X(e)?t:e}function He(t,e,i){const s={};if(tt(e)&&(e=e.options),e.extends&&(t=He(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=He(t,o,i);for(const o in t)n(o);for(const o in e)pt(t,o)||n(o);function n(o){s[o]=(V[o]||Ur)(t[o],e[o],i)}return s}function fe(t,e=[]){try{return t?gt(t,"{")?JSON.parse(t):e.length&&!v(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!X(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function ms(t,e){return t===Boolean?Wi(e):t===Number?xt(e):t==="list"?Yr(e):t===Object&&N(e)?fe(e):t?t(e):e}const Vr=/,(?![^(]*\))/;function Yr(t){return G(t)?t:N(t)?t.split(Vr).map(e=>mt(e)?xt(e):Wi(e.trim())):[t]}function Gr(t){t._data={},t._updates=[...t.$options.update||[]]}function Xr(t,e){t._updates.unshift(e)}function Jr(t){t._data=null}function Le(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,At.read(()=>{t._connected&&Kr(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function Kr(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&te(o)&&ft(t._data,o)),s&&o!==!1&&At.write(()=>{t._connected&&s.call(t,t._data,e)})}}function ut(t){return je(Fe,t,"resize")}function de(t){return je(an,t)}function ki(t){return je(as,t)}function Si(t={}){return de({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of T(tt(s)?s(this):s))z('[loading="lazy"]',o).slice(0,n-1).forEach(r=>Ce(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function vs(t){return je((e,i)=>rs(i),t,"resize")}function We(t){return je((e,i)=>({disconnect:$(Zr(e),"scroll",i,{passive:!0})}),t,"scroll")}function In(t){return{observe(e,i){return{observe:A,unobserve:A,disconnect:$(e,ct,i,{passive:!0})}},handler(e){if(!dt(e))return;const i=yt(e),s="tagName"in e.target?e.target:D(e.target);F(document,`${Et} ${oi} scroll`,n=>{const{x:o,y:r}=yt(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{b(s,"swipe"),b(s,`swipe${Qr(i.x,i.y,o,r)}`)})})},...t}}function je(t,e,i){return{observe:t,handler(){Le(this,i)},...e}}function Qr(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}function Zr(t){return T(t).map(e=>{const{ownerDocument:i}=e,s=Ot(e,!0);return s===i.scrollingElement?i:s})}var En={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},observe:[ki({options:{childList:!0}}),ki({options:{attributes:!0,attributeFilter:["style"]},target:({$el:t})=>[t,...M(t)]}),ut({target:({$el:t})=>[t,...M(t)]})],update:{read(){return{rows:bs(M(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)j(i,this.margin,t[0]!==e),j(i,this.firstColumn,e[U?e.length-1:0]===i)},events:["resize"]}};function bs(t){const e=[[]],i=t.some((s,n)=>n&&t[n-1].offsetParent!==s.offsetParent);for(const s of t){if(!R(s))continue;const n=ws(s,i);for(let o=e.length-1;o>=0;o--){const r=e[o];if(!r[0]){r.push(s);break}const a=ws(r[0],i);if(n.top>=a.bottom-1&&n.top!==a.top){e.push([s]);break}if(n.bottom-1>a.top||n.top===a.top){let l=r.length-1;for(;l>=0;l--){const c=ws(r[l],i);if(n.left>=c.left)break}r.splice(l+1,0,s);break}if(o===0){e.unshift([s]);break}}}return e}function ws(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Ne(t)),{top:i,left:s,bottom:i+n,right:s+o}}async function ta(t,e,i){await xs();let s=M(e);const n=s.map(p=>Tn(p,!0)),o={...h(e,["height","padding"]),display:"block"},r=s.concat(e);await Promise.all(r.map(B.cancel)),h(r,"transitionProperty","none"),await t(),s=s.concat(M(e).filter(p=>!v(s,p))),await Promise.resolve(),h(r,"transitionProperty","");const a=g(e,"style"),l=h(e,["height","padding"]),[c,u]=ea(e,s,n),f=s.map(p=>({style:g(p,"style")}));s.forEach((p,w)=>u[w]&&h(p,u[w])),h(e,o),b(e,"scroll"),await xs();const d=s.map((p,w)=>D(p)===e&&B.start(p,c[w],i,"ease")).concat(B.start(e,l,i,"ease"));try{await Promise.all(d),s.forEach((p,w)=>{g(p,f[w]),D(p)===e&&h(p,"display",c[w].opacity===0?"none":"")}),g(e,"style",a)}catch{g(s,"style",""),ia(e,o)}}function Tn(t,e){const i=h(t,"zIndex");return R(t)?{display:"",opacity:e?h(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?$t(t):i,...Cn(t)}:!1}function ea(t,e,i){const s=e.map((o,r)=>D(o)&&r in i?i[r]?R(o)?Cn(o):{opacity:0}:{opacity:R(o)?1:0}:!1),n=s.map((o,r)=>{const a=D(e[r])===t&&(i[r]||Tn(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function ia(t,e){for(const i in e)h(t,i,"")}function Cn(t){const{height:e,width:i}=m(t);return{height:e,width:i,transform:"",...ss(t),...h(t,["marginTop","marginLeft"])}}function xs(){return new Promise(t=>requestAnimationFrame(t))}const $s="uk-transition-leave",ys="uk-transition-enter";function Pn(t,e,i,s=0){const n=Ii(e,!0),o={opacity:1},r={opacity:0},a=u=>()=>n===Ii(e)?u():Promise.reject(),l=a(async()=>{S(e,$s),await Promise.all(An(e).map((u,f)=>new Promise(d=>setTimeout(()=>B.start(u,r,i/2,"ease").then(d),f*s)))),_(e,$s)}),c=a(async()=>{const u=et(e);S(e,ys),t(),h(M(e),{opacity:0}),await xs();const f=M(e),d=et(e);h(e,"alignContent","flex-start"),et(e,u);const p=An(e);h(f,r);const w=p.map(async(I,P)=>{await sa(P*s),await B.start(I,o,i/2,"ease")});u!==d&&w.push(B.start(e,{height:d},i/2+p.length*s,"ease")),await Promise.all(w).then(()=>{_(e,ys),n===Ii(e)&&(h(e,{height:"",alignContent:""}),h(f,{opacity:""}),delete e.dataset.transition)})});return x(e,$s)?_n(e).then(c):x(e,ys)?_n(e).then(l).then(c):l().then(c)}function Ii(t,e){return e&&(t.dataset.transition=1+Ii(t)),xt(t.dataset.transition)||0}function _n(t){return Promise.all(M(t).filter(B.inProgress).map(e=>new Promise(i=>F(e,"transitionend transitioncanceled",i))))}function An(t){return bs(M(t)).flat().filter(R)}function sa(t){return new Promise(e=>setTimeout(e,t))}var On={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?Pn:i==="delayed-fade"?(...n)=>Pn(...n,40):i?ta:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(A)}}};const O={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var na={mixins:[On],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{children:({target:t},e)=>z(`${t} > *`,e),toggles:({attrItem:t},e)=>z(`[${t}],[data-${t}]`,e)},watch:{toggles(t){this.updateState();const e=z(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&j(i,this.cls,v(e,i));const s=ha(i);H(s,"a")&&g(s,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){t.type==="keydown"&&t.keyCode!==O.SPACE||t.target.closest("a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=Mn(t,this.attrItem,this.getState());oa(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>x(t,this.cls)).reduce((t,e)=>Mn(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},b(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)j(i,this.cls,aa(i,this.attrItem,t));await Promise.all(z(this.target,this.$el).map(i=>{const s=()=>ra(t,i,M(i));return e?this.animate(s,i):s()})),b(this.$el,"afterFilter",[this])},updateState(){At.write(()=>this.setState(this.getState(),!1))}}};function Dn(t,e){return fe(J(t,e),["filter"])}function oa(t,e){return["filter","sort"].every(i=>Te(t[i],e[i]))}function ra(t,e,i){const s=Object.values(t.filter).join("");for(const r of i)h(r,"display",s&&!C(r,s)?"none":"");const[n,o]=t.sort;if(n){const r=la(i,n,o);Te(r,i)||q(e,r)}}function Mn(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=Dn(t,e);return(s||X(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],(ti(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),X(o)||(i.sort=[o,r]),i}function aa(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=Dn(t,e);return X(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function la(t,e,i){return[...t].sort((s,n)=>J(s,e).localeCompare(J(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function ha(t){return y("a,button",t)||t}let ks;function Bn(t){const e=$(t,"touchstart",s=>{if(s.targetTouches.length!==1||C(s.target,'input[type="range"'))return;let n=yt(s).y;const o=$(t,"touchmove",r=>{const a=yt(r).y;a!==n&&(n=a,jt(r.target).some(l=>{if(!t.contains(l))return!1;let{scrollHeight:c,clientHeight:u}=l;return u<c})||r.preventDefault())},{passive:!1});F(t,"scroll touchend touchcanel",o,{capture:!0})},{passive:!0});if(ks)return e;ks=!0;const{scrollingElement:i}=document;return h(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:pi(window)-i.clientWidth||""}),()=>{ks=!1,e(),h(i,{overflowY:"",touchAction:"",paddingRight:""})}}var Re={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&y(t)}}},qt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>gt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(T(t).map(s=>{const n=ie(e)?e:!this.isToggled(s);if(!b(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(tt(i)?i:i===!1||!this.hasAnimation?ca:this.hasTransition?ua:fa)(s,n,this),r=n?this.clsEnter:this.clsLeave;S(s,r),b(s,n?"show":"hide",[this]);const a=()=>{_(s,r),b(s,n?"shown":"hidden",[this])};return o?o.then(a,()=>(_(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=W(t),x(t,this.clsEnter)?!0:x(t,this.clsLeave)?!1:this.cls?x(t,this.cls.split(" ")[0]):R(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=v(this.cls," ")||e!==x(t,this.cls),i&&j(t,this.cls,v(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),z("[autofocus]",t).some(s=>R(s)?s.focus()||!0:s.blur()),i&&b(t,"toggled",[e,this])}}};function ca(t,e,{_toggle:i}){return Ct.cancel(t),B.cancel(t),i(t,e)}async function ua(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[v(u[0],c)?0:1],d=f[1]===c,w=["width","height"][u.indexOf(f)],I=`margin-${f[0]}`,P=`margin-${c}`;let vt=m(t)[w];const we=B.inProgress(t);await B.cancel(t),e&&r(t,!0);const xe=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",I,P].map(sr=>[sr,t.style[sr]])),bt=m(t),Ws=k(h(t,I)),tr=k(h(t,P)),Kt=bt[w]+tr;!we&&!e&&(vt+=tr);const[Hi]=is(t,"<div>");h(Hi,{boxSizing:"border-box",height:bt.height,width:bt.width,...h(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),h(t,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:bt.width,height:bt.height,overflow:"hidden",[w]:vt});const er=vt/Kt;s=(n*Kt+s)*(e?1-er:er);const ir={[w]:e?Kt:0};d&&(h(t,I,Kt-vt+Ws),ir[I]=e?Ws:Kt+Ws),!d^l==="reveal"&&(h(Hi,I,-Kt+vt),B.start(Hi,{[I]:e?0:-Kt},s,o));try{await B.start(t,ir,s,o)}finally{h(t,xe),Be(Hi.firstChild),e||r(t,!1)}}function fa(t,e,i){const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),Ct.in(t,s[0],n,i.origin)):Ct.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const st=[];var Ss={mixins:[it,Re,qt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>y(t,e),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){g(this.panel||this.$el,"role",this.role),this.overlay&&g(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){v(st,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:t})=>`${t},a[href*="#"]`,handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&ae(e)&&!this.$el.contains(y(s))?this.hide():C(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===v(st,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(v(st,this))return!1;!this.stack&&st.length?(Promise.all(st.map(e=>e.hide())).then(this.show),t.preventDefault()):st.push(this)}},{name:"show",self:!0,handler(){this.stack&&h(this.$el,"zIndex",k(h(this.$el,"zIndex"))+st.length);const t=[this.overlay&&pa(this),this.overlay&&Bn(this.$el),this.bgClose&&ga(this),this.escClose&&ma(this)];F(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),S(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){ai(this.$el)||g(this.$el,"tabindex","-1"),C(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){v(st,this)&&st.splice(st.indexOf(this),1),h(this.$el,"zIndex",""),st.some(t=>t.clsPage===this.clsPage)||_(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&D(this.$el)!==this.container?(q(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,Nn)},hide(){return this.toggleElement(this.$el,!1,Nn)}}};function Nn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>F(t,"show hide",()=>{var r;(r=t._reject)==null||r.call(t),t._reject=o,s(t,e);const a=F(i,"transitionstart",()=>{F(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),n()},da(h(i,"transitionDuration")))})).then(()=>delete t._reject)}function da(t){return t?Qt(t,"ms")?k(t):k(t)*1e3:0}function pa(t){return $(document,"focusin",e=>{Bt(st)===t&&!t.$el.contains(e.target)&&t.$el.focus()})}function ga(t){return $(document,ct,({target:e})=>{Bt(st)!==t||t.overlay&&!t.$el.contains(e)||t.panel.contains(e)||F(document,`${Et} ${oi} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===Et&&e===n&&t.hide()},!0)})}function ma(t){return $(document,"keydown",e=>{e.keyCode===27&&Bt(st)===t&&t.hide()})}var Is={slide:{show(t){return[{transform:L(t*-100)},{transform:L()}]},percent(t){return qe(t)},translate(t,e){return[{transform:L(e*-100*t)},{transform:L(e*100*(1-t))}]}}};function qe(t){return Math.abs(new DOMMatrix(h(t,"transform")).m41/t.offsetWidth)}function L(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function pe(t){return`scale3d(${t}, ${t}, 1)`}function va(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=A}=s,l=a(i),{promise:c,resolve:u}=zn();return{dir:i,show(f,d=0,p){const w=p?"linear":n;return f-=Math.round(f*Q(d,-1,1)),this.translate(d),Ut(e,"itemin",{percent:d,duration:f,timing:w,dir:i}),Ut(t,"itemout",{percent:1-d,duration:f,timing:w,dir:i}),Promise.all([B.start(e,l[1],f,w),B.start(t,l[0],f,w)]).then(()=>{this.reset(),u()},A),c},cancel(){return B.cancel([e,t])},reset(){for(const f in l[0])h([e,t],f,"")},async forward(f,d=this.percent()){return await this.cancel(),this.show(f,d,!0)},translate(f){this.reset();const d=r(f,i);h(e,d[1]),h(t,d[0]),Ut(e,"itemtranslatein",{percent:f,dir:i}),Ut(t,"itemtranslateout",{percent:1-f,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Ut(t,e,i){b(t,he(e,!1,!1,i))}function zn(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var Ei={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,n;let o=0;return((n=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:n.replace(/%s/g,()=>e[o++]||""))||""}}},ba={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){g(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){g(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&C(this.$el,":focus-within")&&!C(this.$el,":focus")||this.pauseOnHover&&C(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const Ue={passive:!1,capture:!0},Fn={passive:!0,capture:!0},wa="touchstart mousedown",Es="touchmove mousemove",Hn="touchend touchcancel mouseup click input scroll",Ln=t=>t.preventDefault();var xa={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=yt(i).x*(U?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:wa,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!dt(t)&&$a(t.target)||t.target.closest(Pe)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Es,el:({list:t})=>t,handler:A,...Ue}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,$(document,Es,this.move,Ue),$(document,Hn,this.end,Fn),h(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||$(this.list,"click",Ln,Ue),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,n=Math.abs(e),o=this.getIndex(s+this.dir),r=Wn.call(this,s,o);for(;o!==s&&n>r;)this.drag-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=Wn.call(this,s,o);this.percent=n/r;const a=i[s],l=i[o],c=this.index!==o,u=s===o;let f;for(const d of[this.index,this.prevIndex])v([o,s],d)||(b(i[d],"itemhidden",[this]),u&&(f=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||f)&&b(i[this.index],"itemshown",[this]),c&&(this.prevIndex=s,this.index=o,u||(b(a,"beforeitemhide",[this]),b(a,"itemhide",[this])),b(l,"beforeitemshow",[this]),b(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l)},end(){if(Tt(document,Es,this.move,Ue),Tt(document,Hn,this.end,Fn),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(U?this.dir*(U?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>Tt(this.list,"click",Ln,Ue)),h(this.list,{userSelect:""}),this.drag=this.percent=null}}};function Wn(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $a(t){return h(t,"userSelect")!=="none"&&Zt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function ya(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,s]of Object.entries(e))jn(t,s,i);t._initial=!0}function jn(t,e,i){t._watches.push({name:i,...te(e)?e:{handler:e}})}function ka(t,e){for(const{name:i,handler:s,immediate:n=!0}of t._watches)(t._initial&&n||pt(e,i)&&!Te(e[i],t[i]))&&s.call(t,t[i],e[i]);t._initial=!1}function Sa(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)qn(t,i,e[i])}const Rn={subtree:!0,childList:!0};function qn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;if(!pt(s,e)&&(s[e]=(i.get||i).call(t,n,o),i.observe&&t._computedObserver)){const r=i.observe.call(t,n);t._computedObserver.observe(["~","+","-"].includes(r[0])?o.parentElement:o.getRootNode(),Rn)}return s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,X(n[e])&&delete n[e]}})}function Ia(t){t._hasComputed&&(Xr(t,{read:()=>ka(t,Un(t)),events:["resize","computed"]}),t._computedObserver=as(t.$el,()=>Le(t,"computed"),Rn))}function Ea(t){var e;(e=t._computedObserver)==null||e.disconnect(),delete t._computedObserver,Un(t)}function Un(t){const e={...t._computed};return t._computed={},e}function Ta(t){t._events=[];for(const e of t.$options.events||[])if(pt(e,"handler"))Vn(t,e);else for(const i in e)Vn(t,e[i],i)}function Ca(t){t._events.forEach(e=>e()),delete t._events}function Vn(t,e,i){let{name:s,el:n,handler:o,capture:r,passive:a,delegate:l,filter:c,self:u}=te(e)?e:{name:i,handler:e};n=tt(n)?n.call(t,t):n||t.$el,!(!n||G(n)&&!n.length||c&&!c.call(t,t))&&t._events.push($(n,s,l?N(l)?l:l.call(t,t):null,N(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function Pa(t){t._observers=[];for(const e of t.$options.observe||[])Aa(t,e)}function Yn(t,...e){t._observers.push(...e)}function _a(t){for(const e of t._observers)e.disconnect()}function Aa(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;tt(s)&&!pt(t,l)&&qn(t,l,()=>{const f=s.call(t,t);return G(f)?T(f):f}),n=N(n)?t[n]:n.bind(t),tt(o)&&(o=o.call(t,t));const c=pt(t,l)?t[l]:s,u=i(c,n,o,a);tt(s)&&G(t[l])&&jn(t,{handler:Oa(u,o),immediate:!1},l),Yn(t,u)}function Oa(t,e){return(i,s)=>{for(const n of s)v(i,n)||(t.unobserve?t.unobserve(n):t.observe&&t.disconnect());for(const n of i)(!v(s,n)||!t.unobserve)&&t.observe(n,e)}}function Da(t){const{$options:e,$props:i}=t,s=Gn(e);ft(i,s);const{computed:n,methods:o}=e;for(let r in i)r in s&&(!n||!pt(n,r))&&(!o||!pt(o,r))&&(t[r]=i[r])}function Gn(t){const e={},{args:i=[],props:s={},el:n,id:o}=t;if(!s)return e;for(const a in s){const l=Dt(a);let c=J(n,l);X(c)||(c=s[a]===Boolean&&c===""?!0:ms(s[a],c),!(l==="target"&&gt(c,"_"))&&(e[a]=c))}const r=fe(J(n,o),i);for(const a in r){const l=ke(a);X(s[l])||(e[l]=ms(s[l],r[a]))}return e}const Ma=ht((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(n=>[Dt(n),`data-${Dt(n)}`]).flat();return{attributes:i,filter:s}});function Ba(t){const{$options:e,$props:i}=t,{id:s,props:n,el:o}=e;if(!n)return;const{attributes:r,filter:a}=Ma(s,n),l=new MutationObserver(c=>{const u=Gn(e);c.some(({attributeName:f})=>{const d=f.replace("data-","");return(d===s?r:[ke(d),ke(f)]).some(p=>!X(u[p])&&u[p]!==i[p])})&&t.$reset()});l.observe(o,{attributes:!0,attributeFilter:a}),Yn(t,l)}function ge(t,e){var i;(i=t.$options[e])==null||i.forEach(s=>s.call(t))}function Ts(t){t._connected||(Da(t),ge(t,"beforeConnect"),t._connected=!0,Ta(t),Gr(t),ya(t),Pa(t),Ba(t),Ia(t),ge(t,"connected"),Le(t))}function Cs(t){t._connected&&(ge(t,"beforeDisconnect"),Ca(t),Jr(t),_a(t),Ea(t),ge(t,"disconnected"),t._connected=!1)}let Na=0;function Xn(t,e={}){e.data=Ha(e,t.constructor.options),t.$options=He(t.constructor.options,e,t),t.$props={},t._uid=Na++,za(t),Fa(t),Sa(t),ge(t,"created"),e.el&&t.$mount(e.el)}function za(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Fa(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Ha({data:t={}},{args:e=[],props:i={}}){G(t)&&(t=t.slice(0,e.length).reduce((s,n,o)=>(te(n)?ft(s,n):s[e[o]]=n,s),{}));for(const s in t)X(t[s])?delete t[s]:i[s]&&(t[s]=ms(i[s],t[s]));return t}const lt=function(t){Xn(this,t)};lt.util=Wr,lt.options={},lt.version="3.21.6";const La="uk-",Vt="__uikit__",me={};function Jn(t,e){var i,s;const n=La+Dt(t);if(!e)return me[n].options||(me[n]=lt.extend(me[n])),me[n];t=ke(t),lt[t]=(r,a)=>Ve(t,r,a);const o=(i=e.options)!=null?i:{...e};return o.id=n,o.name=t,(s=o.install)==null||s.call(o,lt,o,t),lt._initialized&&!o.functional&&requestAnimationFrame(()=>Ve(t,`[${n}],[data-${n}]`)),me[n]=o}function Ve(t,e,i,...s){const n=Jn(t);return n.options.functional?new n({data:te(e)?e:[e,i,...s]}):e?le(e).map(o)[0]:o();function o(r){const a=Ti(r,t);if(a)if(i)a.$destroy();else return a;return new