uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
1 lines • 97.7 kB
JavaScript
/*! UIkit 3.21.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(Kt,Zt){typeof exports=="object"&&typeof module<"u"?module.exports=Zt():typeof define=="function"&&define.amd?define("uikit",Zt):(Kt=typeof globalThis<"u"?globalThis:Kt||self,Kt.UIkit=Zt())})(this,function(){"use strict";const{hasOwnProperty:Kt,toString:Zt}=Object.prototype;function st(t,e){return Kt.call(t,e)}const Wo=/\B([A-Z])/g,pt=G(t=>t.replace(Wo,"-$1").toLowerCase()),jo=/-(\w)/g,Qt=G(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(jo,(e,i)=>i.toUpperCase())),gt=G(t=>t.charAt(0).toUpperCase()+t.slice(1));function et(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function te(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function d(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function ke(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:z,from:Se}=Array,{assign:ee}=Object;function j(t){return typeof t=="function"}function lt(t){return t!==null&&typeof t=="object"}function Pt(t){return Zt.call(t)==="[object Object]"}function Bt(t){return lt(t)&&t===t.window}function ie(t){return ei(t)===9}function Ee(t){return ei(t)>=1}function Te(t){return ei(t)===1}function ei(t){return!Bt(t)&<(t)&&t.nodeType}function Dt(t){return typeof t=="boolean"}function C(t){return typeof t=="string"}function ii(t){return typeof t=="number"}function mt(t){return ii(t)||C(t)&&!isNaN(t-parseFloat(t))}function ni(t){return!(z(t)?t.length:lt(t)&&Object.keys(t).length)}function R(t){return t===void 0}function oi(t){return Dt(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function ne(t){const e=Number(t);return isNaN(e)?!1:e}function w(t){return parseFloat(t)||0}function B(t){return t&&m(t)[0]}function m(t){return Ee(t)?[t]:Array.from(t||[]).filter(Ee)}function vt(t){if(Bt(t))return t;t=B(t);const e=ie(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function an(t,e){return t===e||lt(t)&<(e)&&Object.keys(t).length===Object.keys(e).length&&se(t,(i,n)=>i===e[n])}function si(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),n=>n===e?i:e)}function oe(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 ln(t,e){return t.slice().sort(({[e]:i=0},{[e]:n=0})=>i>n?1:n>i?-1:0)}function re(t,e){return t.reduce((i,n)=>i+w(j(e)?e(n):n[e]),0)}function qo(t,e){const i=new Set;return t.filter(({[e]:n})=>i.has(n)?!1:i.add(n))}function ri(t,e){return e.reduce((i,n)=>({...i,[n]:t[n]}),{})}function rt(t,e=0,i=1){return Math.min(Math.max(ne(t)||0,e),i)}function it(){}function Ce(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:n})=>n))-Math.max(...t.map(({[i]:n})=>n))>0)}function ai(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function li(t,e,i){const n=e==="width"?"height":"width";return{[n]:t[e]?Math.round(i*t[n]/t[e]):t[n],[e]:i}}function cn(t,e){t={...t};for(const i in t)t=t[i]>e[i]?li(t,i,e[i]):t;return t}function Ro(t,e){t=cn(t,e);for(const i in t)t=t[i]<e[i]?li(t,i,e[i]):t;return t}const hn={ratio:li,contain:cn,cover:Ro};function ct(t,e,i=0,n=!1){e=m(e);const{length:o}=e;return o?(t=mt(t)?ne(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?o-1:e.indexOf(B(t)),n?rt(t,0,o-1):(t%=o,t<0?t+o:t)):-1}function G(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function S(t,...e){for(const i of m(t)){const n=bt(e).filter(o=>!v(i,o));n.length&&i.classList.add(...n)}}function A(t,...e){for(const i of m(t)){const n=bt(e).filter(o=>v(i,o));n.length&&i.classList.remove(...n)}}function _e(t,e,i){i=bt(i),e=bt(e).filter(n=>!d(i,n)),A(t,e),S(t,i)}function v(t,e){return[e]=bt(e),m(t).some(i=>i.classList.contains(e))}function U(t,e,i){const n=bt(e);R(i)||(i=!!i);for(const o of m(t))for(const s of n)o.classList.toggle(s,i)}function bt(t){return t?z(t)?t.map(bt).flat():String(t).split(" ").filter(Boolean):[]}function g(t,e,i){var n;if(lt(e)){for(const o in e)g(t,o,e[o]);return}if(R(i))return(n=B(t))==null?void 0:n.getAttribute(e);for(const o of m(t))j(i)&&(i=i.call(o,g(o,e))),i===null?ae(o,e):o.setAttribute(e,i)}function ht(t,e){return m(t).some(i=>i.hasAttribute(e))}function ae(t,e){m(t).forEach(i=>i.removeAttribute(e))}function Mt(t,e){for(const i of[e,`data-${e}`])if(ht(t,i))return g(t,i)}const wt=typeof window<"u",$t=wt&&document.dir==="rtl",At=wt&&"ontouchstart"in window,Nt=wt&&window.PointerEvent,It=Nt?"pointerdown":At?"touchstart":"mousedown",Uo=Nt?"pointermove":At?"touchmove":"mousemove",Ft=Nt?"pointerup":At?"touchend":"mouseup",le=Nt?"pointerenter":At?"":"mouseenter",Oe=Nt?"pointerleave":At?"":"mouseleave",Pe=Nt?"pointercancel":"touchcancel",Vo={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 ci(t){return m(t).some(e=>Vo[e.tagName.toLowerCase()])}const Yo=wt&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function W(t){return m(t).some(e=>Yo.call(e))}const Be="input,select,textarea,button";function hi(t){return m(t).some(e=>E(e,Be))}const De=`${Be},a[href],[tabindex]`;function ui(t){return E(t,De)}function D(t){var e;return(e=B(t))==null?void 0:e.parentElement}function ce(t,e){return m(t).filter(i=>E(i,e))}function E(t,e){return m(t).some(i=>i.matches(e))}function he(t,e){const i=[];for(;t=D(t);)(!e||E(t,e))&&i.push(t);return i}function Q(t,e){t=B(t);const i=t?Se(t.children):[];return e?ce(i,e):i}function Ht(t,e){return e?m(t).indexOf(B(e)):Q(D(t)).indexOf(t)}function zt(t){return t=B(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function fi(t){if(zt(t)){const{hash:e,ownerDocument:i}=B(t),n=decodeURIComponent(e).slice(1);return i.getElementById(n)||i.getElementsByName(n)[0]}}function V(t,e){return di(t,un(t,e))}function ue(t,e){return Lt(t,un(t,e))}function di(t,e){return B(pn(t,B(e),"querySelector"))}function Lt(t,e){return m(pn(t,B(e),"querySelectorAll"))}function un(t,e=document){return C(t)&&fn(t).isContextSelector||ie(e)?e:e.ownerDocument}const Go=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Xo=/.*?[^\\](?![^(]*\))(?:,|$)/g,Jo=/\s*,$/,fn=G(t=>{var e;t=t.replace(Go,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Xo))!=null?e:[])o=o.replace(Jo,"").trim(),i||(i=["!","+","~","-",">"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}}),dn=G(t=>{t=t.slice(1).trim();const e=t.indexOf(" ");return~e?[t.slice(0,e),t.slice(e+1)]:[t,""]});function pn(t,e=document,i){if(!t||!C(t))return t;const n=fn(t);if(!n.isContextSelector)return pi(e,i,n.selector);t="";const o=n.selectors.length===1;for(let s of n.selectors){let r,a=e;if(s[0]==="!"&&([r,s]=dn(s),a=e.parentElement.closest(r),!s&&o)||a&&s[0]==="-"&&([r,s]=dn(s),a=a.previousElementSibling,a=E(a,r)?a:null,!s&&o))return a;if(a){if(o)return s[0]==="~"||s[0]==="+"?(s=`:scope > :nth-child(${Ht(a)+1}) ${s}`,a=a.parentElement):s[0]===">"&&(s=`:scope ${s}`),pi(a,i,s);t+=`${t?",":""}${Ko(a)} ${s}`}}return ie(e)||(e=e.ownerDocument),pi(e,i,t)}function pi(t,e,i){try{return t[e](i)}catch{return null}}function Ko(t){const e=[];for(;t.parentNode;){const i=g(t,"id");if(i){e.unshift(`#${gi(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Ht(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function gi(t){return C(t)?CSS.escape(t):""}function x(...t){let[e,i,n,o,s=!1]=vi(t);o.length>1&&(o=Qo(o)),s!=null&&s.self&&(o=ts(o)),n&&(o=Zo(n,o));for(const r of i)for(const a of e)a.addEventListener(r,o,s);return()=>mi(e,i,o,s)}function mi(...t){let[e,i,,n,o=!1]=vi(t);for(const s of i)for(const r of e)r.removeEventListener(s,n,o)}function N(...t){const[e,i,n,o,s=!1,r]=vi(t),a=x(e,i,n,l=>{const h=!r||r(l);h&&(a(),o(l,h))},s);return a}function _(t,e,i){return bi(t).every(n=>n.dispatchEvent(Me(e,!0,!0,i)))}function Me(t,e=!0,i=!1,n){return C(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:n})),t}function vi(t){return t[0]=bi(t[0]),C(t[1])&&(t[1]=t[1].split(" ")),j(t[2])&&t.splice(2,0,!1),t}function Zo(t,e){return i=>{const n=t[0]===">"?Lt(t,i.currentTarget).reverse().find(o=>o.contains(i.target)):i.target.closest(t);n&&(i.current=n,e.call(this,i),delete i.current)}}function Qo(t){return e=>z(e.detail)?t(e,...e.detail):t(e)}function ts(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function gn(t){return t&&"addEventListener"in t}function es(t){return gn(t)?t:B(t)}function bi(t){return z(t)?t.map(es).filter(Boolean):C(t)?Lt(t):gn(t)?[t]:m(t)}function ut(t){return t.pointerType==="touch"||!!t.touches}function Wt(t){var e,i;const{clientX:n,clientY:o}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:n,y:o}}const is={"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 c(t,e,i,n){const o=m(t);for(const s of o)if(C(e)){if(e=wi(e),R(i))return getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,mt(i)&&!is[e]?`${i}px`:i||ii(i)?i:"",n)}else if(z(e)){const r={};for(const a of e)r[a]=c(s,a);return r}else if(lt(e))for(const r in e)c(s,r,e[r],i);return o[0]}const wi=G(t=>{if(et(t,"--"))return t;t=pt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const n=`-${i}-${t}`;if(n in e)return n}}),$i="uk-transition",yi="transitionend",xi="transitioncanceled";function ns(t,e,i=400,n="linear"){return i=Math.round(i),Promise.all(m(t).map(o=>new Promise((s,r)=>{for(const l in e)c(o,l);const a=setTimeout(()=>_(o,yi),i);N(o,[yi,xi],({type:l})=>{clearTimeout(a),A(o,$i),c(o,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l===xi?r():s(o)},{self:!0}),S(o,$i),c(o,{transitionProperty:Object.keys(e).map(wi).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:n,...e})})))}const X={start:ns,async stop(t){_(t,yi),await Promise.resolve()},async cancel(t){_(t,xi),await Promise.resolve()},inProgress(t){return v(t,$i)}},fe="uk-animation",mn="animationend",Ae="animationcanceled";function vn(t,e,i=200,n,o){return Promise.all(m(t).map(s=>new Promise((r,a)=>{v(s,fe)&&_(s,Ae);const l=[e,fe,`${fe}-${o?"leave":"enter"}`,n&&`uk-transform-origin-${n}`,o&&`${fe}-reverse`],h=setTimeout(()=>_(s,mn),i);N(s,[mn,Ae],({type:u})=>{clearTimeout(h),u===Ae?a():r(s),c(s,"animationDuration",""),A(s,l)},{self:!0}),c(s,"animationDuration",`${i}ms`),S(s,l)})))}const ft={in:vn,out(t,e,i,n){return vn(t,e,i,n,!0)},inProgress(t){return v(t,fe)},cancel(t){_(t,Ae)}};function os(t){if(document.readyState!=="loading"){t();return}N(document,"DOMContentLoaded",t)}function I(t,...e){return e.some(i=>{var n;return((n=t==null?void 0:t.tagName)==null?void 0:n.toLowerCase())===i.toLowerCase()})}function bn(t){return t=$(t),t.innerHTML="",t}function Ne(t,e){return R(e)?$(t).innerHTML:tt(bn(t),e)}const ss=Fe("prepend"),tt=Fe("append"),ki=Fe("before"),Ie=Fe("after");function Fe(t){return function(e,i){var n;const o=m(C(i)?jt(i):i);return(n=$(e))==null||n[t](...o),wn(o)}}function yt(t){m(t).forEach(e=>e.remove())}function He(t,e){for(e=B(ki(t,e));e.firstElementChild;)e=e.firstElementChild;return tt(e,t),e}function Si(t,e){return m(m(t).map(i=>i.hasChildNodes()?He(Se(i.childNodes),e):tt(i,e)))}function de(t){m(t).map(D).filter((e,i,n)=>n.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const rs=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function jt(t){const e=rs.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),wn(i.content.childNodes)}function wn(t){return t.length>1?t:t[0]}function xt(t,e){if(Te(t))for(e(t),t=t.firstElementChild;t;)xt(t,e),t=t.nextElementSibling}function $(t,e){return $n(t)?B(jt(t)):di(t,e)}function H(t,e){return $n(t)?m(jt(t)):Lt(t,e)}function $n(t){return C(t)&&et(t.trim(),"<")}const kt={width:["left","right"],height:["top","bottom"]};function O(t){const e=Te(t)?B(t).getBoundingClientRect():{height:at(t),width:ze(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 b(t,e){e&&c(t,{left:0,top:0});const i=O(t);if(t){const{scrollY:n,scrollX:o}=vt(t),s={height:n,width:o};for(const r in kt)for(const a of kt[r])i[a]+=s[r]}if(!e)return i;for(const n of["left","top"])c(t,n,e[n]-i[n])}function as(t){let{top:e,left:i}=b(t);const{ownerDocument:{body:n,documentElement:o},offsetParent:s}=B(t);let r=s||o;for(;r&&(r===n||r===o)&&c(r,"position")==="static";)r=r.parentNode;if(Te(r)){const a=b(r);e-=a.top+w(c(r,"borderTopWidth")),i-=a.left+w(c(r,"borderLeftWidth"))}return{top:e-w(c(t,"marginTop")),left:i-w(c(t,"marginLeft"))}}function pe(t){t=B(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+w(c(t,"borderTopWidth")),e[1]+=t.offsetLeft+w(c(t,"borderLeftWidth")),c(t,"position")==="fixed"){const i=vt(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const at=yn("height"),ze=yn("width");function yn(t){const e=gt(t);return(i,n)=>{if(R(n)){if(Bt(i))return i[`inner${e}`];if(ie(i)){const o=i.documentElement;return Math.max(o[`offset${e}`],o[`scroll${e}`])}return i=B(i),n=c(i,t),n=n==="auto"?i[`offset${e}`]:w(n)||0,n-qt(i,t)}else return c(i,t,!n&&n!==0?"":+n+qt(i,t)+"px")}}function qt(t,e,i="border-box"){return c(t,"boxSizing")===i?re(kt[e].map(gt),n=>w(c(t,`padding${n}`))+w(c(t,`border${n}Width`))):0}function xn(t){for(const e in kt)for(const i in kt[e])if(kt[e][i]===t)return kt[e][1-i];return t}function J(t,e="width",i=window,n=!1){return C(t)?re(cs(t),o=>{const s=us(o);return s?fs(s==="vh"?ds():s==="vw"?ze(vt(i)):n?i[`offset${gt(e)}`]:O(i)[e],o):o}):w(t)}const ls=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,cs=G(t=>t.toString().replace(/\s/g,"").match(ls)||[]),hs=/(?:v[hw]|%)$/,us=G(t=>(t.match(hs)||[])[0]);function fs(t,e){return t*w(e)/100}let ge,Rt;function ds(){return ge||(Rt||(Rt=$("<div>"),c(Rt,{height:"100vh",position:"fixed"}),x(window,"resize",()=>ge=null)),tt(document.body,Rt),ge=Rt.clientHeight,yt(Rt),ge)}const Ei={read:ps,write:gs,clear:ms,flush:kn},Le=[],We=[];function ps(t){return Le.push(t),Ci(),t}function gs(t){return We.push(t),Ci(),t}function ms(t){En(Le,t),En(We,t)}let Ti=!1;function kn(){Sn(Le),Sn(We.splice(0)),Ti=!1,(Le.length||We.length)&&Ci()}function Ci(){Ti||(Ti=!0,queueMicrotask(kn))}function Sn(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function En(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class Tn{init(){this.positions=[];let e;this.unbind=x(document,"mousemove",i=>e=Wt(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=O(e),{left:n,right:o,top:s,bottom:r}=i,[a]=this.positions,l=oe(this.positions),h=[a,l];return ai(l,i)?!1:[[{x:n,y:s},{x:o,y:r}],[{x:n,y:r},{x:o,y:s}]].some(f=>{const p=vs(h,f);return p&&ai(p,i)})}}function vs([{x:t,y:e},{x:i,y:n}],[{x:o,y:s},{x:r,y:a}]){const l=(a-s)*(i-t)-(r-o)*(n-e);if(l===0)return!1;const h=((r-o)*(e-s)-(a-s)*(t-o))/l;return h<0?!1:{x:t+h*(i-t),y:e+h*(n-e)}}function Cn(t,e,i={},{intersecting:n=!0}={}){const o=new IntersectionObserver(n?(s,r)=>{s.some(a=>a.isIntersecting)&&e(s,r)}:e,i);for(const s of m(t))o.observe(s);return o}const bs=wt&&window.ResizeObserver;function me(t,e,i={box:"border-box"}){if(bs)return _n(ResizeObserver,t,e,i);const n=[x(window,"load resize",e),x(document,"loadedmetadata load",e,!0)];return{disconnect:()=>n.map(o=>o())}}function _i(t){return{disconnect:x([window,window.visualViewport],"resize",t)}}function Oi(t,e,i){return _n(MutationObserver,t,e,i)}function _n(t,e,i,n){const o=new t(i);for(const s of m(e))o.observe(s,n);return o}function Pi(t){Re(t)&&Bi(t,{func:"playVideo",method:"play"}),qe(t)&&t.play().catch(it)}function je(t){Re(t)&&Bi(t,{func:"pauseVideo",method:"pause"}),qe(t)&&t.pause()}function On(t){Re(t)&&Bi(t,{func:"mute",method:"setVolume",value:0}),qe(t)&&(t.muted=!0)}function Pn(t){return qe(t)||Re(t)}function qe(t){return I(t,"video")}function Re(t){return I(t,"iframe")&&(Bn(t)||Dn(t))}function Bn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Dn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function Bi(t,e){await $s(t),Mn(t,e)}function Mn(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const Di="_ukPlayer";let ws=0;function $s(t){if(t[Di])return t[Di];const e=Bn(t),i=Dn(t),n=++ws;let o;return t[Di]=new Promise(s=>{e&&N(t,"load",()=>{const r=()=>Mn(t,{event:"listening",id:n});o=setInterval(r,100),r()}),N(window,"message",s,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===n&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===n}catch{}}),t.src=`${t.src}${d(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${n}`}`}).then(()=>clearInterval(o))}function ys(t,e=0,i=0){return W(t)?Ce(...Vt(t).map(n=>{const{top:o,left:s,bottom:r,right:a}=K(n);return{top:o-e,left:s-i,bottom:r+e,right:a+i}}).concat(b(t))):!1}function An(t,{offset:e=0}={}){const i=W(t)?Ut(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:h,scrollHeight:u,offsetHeight:f}=a,p=K(a),P=u-p.height,{height:y,top:k}=i[l-1]?K(i[l-1]):b(t);let T=Math.ceil(k-p.top-e+h);return e>0&&f<y+e?T+=e:e=0,T>P?(e-=T-P,T=P):T<0&&(e-=T,T=0),()=>n(a,T-h,t,P).then(r)},()=>Promise.resolve())();function n(r,a,l,h){return new Promise(u=>{const f=r.scrollTop,p=o(Math.abs(a)),P=Date.now(),y=Ni(r)===r,k=b(l).top+(y?0:f);let T=0,_t=15;(function sn(){const Qe=s(rt((Date.now()-P)/p));let ot=0;i[0]===r&&f+a<h&&(ot=b(l).top+(y?0:r.scrollTop)-k-O(Mi(l)).height),r.scrollTop=f+(a+ot)*Qe,Qe===1&&(T===ot||!_t--)?u():(T=ot,requestAnimationFrame(sn))})()})}function o(r){return 40*Math.pow(r,.375)}function s(r){return .5*(1-Math.cos(Math.PI*r))}}function Nn(t,e=0,i=0){if(!W(t))return 0;const n=St(t,!0),{scrollHeight:o,scrollTop:s}=n,{height:r}=K(n),a=o-r,l=pe(t)[0]-pe(n)[0],h=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return h<u?rt((s-h)/(u-h)):1}function Ut(t,e=!1,i=[]){const n=Ni(t);let o=he(t).reverse();o=o.slice(o.indexOf(n)+1);const s=ke(o,r=>c(r,"position")==="fixed");return~s&&(o=o.slice(s)),[n].concat(o.filter(r=>c(r,"overflow").split(" ").some(a=>d(["auto","scroll",...i],a))&&(!e||r.scrollHeight>K(r).height))).reverse()}function St(...t){return Ut(...t)[0]}function Vt(t){return Ut(t,!1,["hidden","clip"])}function K(t){const e=vt(t);let i=t===Ni(t)?e:t;if(Bt(i)&&e.visualViewport){let{height:o,width:s,scale:r,pageTop:a,pageLeft:l}=e.visualViewport;return o=Math.round(o*r),s=Math.round(s*r),{height:o,width:s,top:a,left:l,bottom:a+o,right:l+s}}let n=b(i);if(c(i,"display")==="inline")return n;for(let[o,s,r,a]of[["width","x","left","right"],["height","y","top","bottom"]]){Bt(i)?i=i.document:n[r]+=w(c(i,`border-${r}-width`));const l=n[o]%1;n[o]=n[s]=i[`client${gt(o)}`]-(l?l<.5?-l:1-l:0),n[a]=n[o]+n[r]}return n}function Mi(t){const{left:e,width:i,top:n}=O(t);for(const o of n?[0,n]:[0]){let s;for(const r of vt(t).document.elementsFromPoint(e+i/2,o))!r.contains(t)&&!v(r,"uk-togglable-leave")&&(Ai(r,"fixed")&&In(he(t).reverse().find(a=>!a.contains(r)&&!Ai(a,"static")))<In(r)||Ai(r,"sticky")&&D(r).contains(t))&&(!s||O(s).height<O(r).height)&&(s=r);if(s)return s}}function In(t){return w(c(t,"zIndex"))}function Ai(t,e){return c(t,"position")===e}function Ni(t){return vt(t).document.scrollingElement}const Y=[["width","x","left","right"],["height","y","top","bottom"]];function Fn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},z(e)||(e=[e,e]),b(t,Hn(t,e,i))}function Hn(t,e,i){const n=zn(t,e,i),{boundary:o,viewportOffset:s=0,placement:r}=i;let a=n;for(const[l,[h,,u,f]]of Object.entries(Y)){const p=xs(t,e[l],s,o,l);if(Ue(n,p,l))continue;let P=0;if(r[l]==="flip"){const y=i.attach.target[l];if(y===f&&n[f]<=p[f]||y===u&&n[u]>=p[u])continue;P=Ss(t,e,i,l)[u]-n[u];const k=ks(t,e[l],s,l);if(!Ue(Ii(n,P,l),k,l)){if(Ue(n,k,l))continue;if(i.recursion)return!1;const T=Es(t,e,i);if(T&&Ue(T,k,1-l))return T;continue}}else if(r[l]==="shift"){const y=b(e[l]),{offset:k}=i;P=rt(rt(n[u],p[u],p[f]-n[h]),y[u]-n[h]+k[l],y[f]-k[l])-n[u]}a=Ii(a,P,l)}return a}function zn(t,e,i){let{attach:n,offset:o}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},s=b(t);for(const[r,[a,,l,h]]of Object.entries(Y)){const u=n.target[r]===n.element[r]?K(e[r]):b(e[r]);s=Ii(s,u[l]-s[l]+Ln(n.target[r],h,u[a])-Ln(n.element[r],h,s[a])+ +o[r],r)}return s}function Ii(t,e,i){const[,n,o,s]=Y[i],r={...t};return r[o]=t[n]=t[o]+e,r[s]+=e,r}function Ln(t,e,i){return t==="center"?i/2:t===e?i:0}function xs(t,e,i,n,o){let s=jn(...Wn(t,e).map(K));return i&&(s[Y[o][2]]+=i,s[Y[o][3]]-=i),n&&(s=jn(s,b(z(n)?n[o]:n))),s}function ks(t,e,i,n){const[o,s,r,a]=Y[n],[l]=Wn(t,e),h=K(l);return["auto","scroll"].includes(c(l,`overflow-${s}`))&&(h[r]-=l[`scroll${gt(r)}`],h[a]=h[r]+l[`scroll${gt(o)}`]),h[r]+=i,h[a]-=i,h}function Wn(t,e){return Vt(e).filter(i=>i.contains(t))}function jn(...t){let e={};for(const i of t)for(const[,,n,o]of Y)e[n]=Math.max(e[n]||0,i[n]),e[o]=Math.min(...[e[o],i[o]].filter(Boolean));return e}function Ue(t,e,i){const[,,n,o]=Y[i];return t[n]>=e[n]&&t[o]<=e[o]}function Ss(t,e,{offset:i,attach:n},o){return zn(t,e,{attach:{element:qn(n.element,o),target:qn(n.target,o)},offset:Ts(i,o)})}function Es(t,e,i){return Hn(t,e,{...i,attach:{element:i.attach.element.map(Rn).reverse(),target:i.attach.target.map(Rn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function qn(t,e){const i=[...t],n=Y[e].indexOf(t[e]);return~n&&(i[e]=Y[e][1-n%2+2]),i}function Rn(t){for(let e=0;e<Y.length;e++){const i=Y[e].indexOf(t);if(~i)return Y[1-e][i%2+2]}}function Ts(t,e){return t=[...t],t[e]*=-1,t}var Cs=Object.freeze({__proto__:null,$,$$:H,Animation:ft,Dimensions:hn,MouseTracker:Tn,Transition:X,addClass:S,after:Ie,append:tt,apply:xt,assign:ee,attr:g,before:ki,boxModelAdjust:qt,camelize:Qt,children:Q,clamp:rt,createEvent:Me,css:c,data:Mt,dimensions:O,each:se,empty:bn,endsWith:te,escape:gi,fastdom:Ei,filter:ce,find:di,findAll:Lt,findIndex:ke,flipPosition:xn,fragment:jt,getCoveringElement:Mi,getEventPos:Wt,getIndex:ct,getTargetedElement:fi,hasAttr:ht,hasClass:v,hasOwn:st,hasTouch:At,height:at,html:Ne,hyphenate:pt,inBrowser:wt,includes:d,index:Ht,intersectRect:Ce,isArray:z,isBoolean:Dt,isDocument:ie,isElement:Te,isEmpty:ni,isEqual:an,isFocusable:ui,isFunction:j,isInView:ys,isInput:hi,isNode:Ee,isNumber:ii,isNumeric:mt,isObject:lt,isPlainObject:Pt,isRtl:$t,isSameSiteAnchor:zt,isString:C,isTag:I,isTouch:ut,isUndefined:R,isVideo:Pn,isVisible:W,isVoidElement:ci,isWindow:Bt,last:oe,matches:E,memoize:G,mute:On,noop:it,observeIntersection:Cn,observeMutation:Oi,observeResize:me,observeViewportResize:_i,off:mi,offset:b,offsetPosition:pe,offsetViewport:K,on:x,once:N,overflowParents:Vt,parent:D,parents:he,pause:je,pick:ri,play:Pi,pointInRect:ai,pointerCancel:Pe,pointerDown:It,pointerEnter:le,pointerLeave:Oe,pointerMove:Uo,pointerUp:Ft,position:as,positionAt:Fn,prepend:ss,propName:wi,query:V,queryAll:ue,ready:os,remove:yt,removeAttr:ae,removeClass:A,replaceClass:_e,scrollIntoView:An,scrollParent:St,scrollParents:Ut,scrolledOver:Nn,selFocusable:De,selInput:Be,sortBy:ln,startsWith:et,sumBy:re,swap:si,toArray:Se,toBoolean:oi,toEventTargets:bi,toFloat:w,toNode:B,toNodes:m,toNumber:ne,toPx:J,toWindow:vt,toggleClass:U,trigger:_,ucfirst:gt,uniqueBy:qo,unwrap:de,width:ze,wrapAll:He,wrapInner:Si});function _s(t){t._data={},t._updates=[...t.$options.update||[]]}function Os(t,e){t._updates.unshift(e)}function Ps(t){t._data=null}function ve(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,Ei.read(()=>{t._connected&&Bs(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function Bs(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(r=>e.has(r)))continue;let s;i&&(s=i.call(t,t._data,e),s&&Pt(s)&&ee(t._data,s)),n&&s!==!1&&Ei.write(()=>{t._connected&&n.call(t,t._data,e)})}}function Ds(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,n]of Object.entries(e))Un(t,n,i);t._initial=!0}function Un(t,e,i){t._watches.push({name:i,...Pt(e)?e:{handler:e}})}function Ms(t,e){for(const{name:i,handler:n,immediate:o=!0}of t._watches)(t._initial&&o||st(e,i)&&!an(e[i],t[i]))&&n.call(t,t[i],e[i]);t._initial=!1}function As(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)Yn(t,i,e[i])}const Vn={subtree:!0,childList:!0};function Yn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:n,$props:o,$el:s}=t;if(!st(n,e)&&(n[e]=(i.get||i).call(t,o,s),i.observe&&t._computedObserver)){const r=i.observe.call(t,o);t._computedObserver.observe(["~","+","-"].includes(r[0])?s.parentElement:s.getRootNode(),Vn)}return n[e]},set(n){const{_computed:o}=t;o[e]=i.set?i.set.call(t,n):n,R(o[e])&&delete o[e]}})}function Ns(t){t._hasComputed&&(Os(t,{read:()=>Ms(t,Gn(t)),events:["resize","computed"]}),t._computedObserver=Oi(t.$el,()=>ve(t,"computed"),Vn))}function Is(t){var e;(e=t._computedObserver)==null||e.disconnect(),delete t._computedObserver,Gn(t)}function Gn(t){const e={...t._computed};return t._computed={},e}function Fs(t){t._events=[];for(const e of t.$options.events||[])if(st(e,"handler"))Xn(t,e);else for(const i in e)Xn(t,e[i],i)}function Hs(t){t._events.forEach(e=>e()),delete t._events}function Xn(t,e,i){let{name:n,el:o,handler:s,capture:r,passive:a,delegate:l,filter:h,self:u}=Pt(e)?e:{name:i,handler:e};o=j(o)?o.call(t,t):o||t.$el,!(!o||z(o)&&!o.length||h&&!h.call(t,t))&&t._events.push(x(o,n,l?C(l)?l:l.call(t,t):null,C(s)?t[s]:s.bind(t),{passive:a,capture:r,self:u}))}function zs(t){t._observers=[];for(const e of t.$options.observe||[])Ws(t,e)}function Jn(t,...e){t._observers.push(...e)}function Ls(t){for(const e of t._observers)e.disconnect()}function Ws(t,e){let{observe:i,target:n=t.$el,handler:o,options:s,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;j(n)&&!st(t,l)&&Yn(t,l,()=>{const f=n.call(t,t);return z(f)?m(f):f}),o=C(o)?t[o]:o.bind(t),j(s)&&(s=s.call(t,t));const h=st(t,l)?t[l]:n,u=i(h,o,s,a);j(n)&&z(t[l])&&Un(t,{handler:js(u,s),immediate:!1},l),Jn(t,u)}function js(t,e){return(i,n)=>{for(const o of n)d(i,o)||(t.unobserve?t.unobserve(o):t.observe&&t.disconnect());for(const o of i)(!d(n,o)||!t.unobserve)&&t.observe(o,e)}}const F={};F.events=F.watch=F.observe=F.created=F.beforeConnect=F.connected=F.beforeDisconnect=F.disconnected=F.destroy=Fi,F.args=function(t,e){return e!==!1&&Fi(e||t)},F.update=function(t,e){return ln(Fi(t,j(e)?{read:e}:e),"order")},F.props=function(t,e){if(z(e)){const i={};for(const n of e)i[n]=String;e=i}return F.methods(t,e)},F.computed=F.methods=function(t,e){return e?t?{...t,...e}:e:t},F.i18n=F.data=function(t,e,i){return i?Kn(t,e,i):e?t?function(n){return Kn(t,e,n)}:e:t};function Kn(t,e,i){return F.computed(j(t)?t.call(i,i):t,j(e)?e.call(i,i):e)}function Fi(t,e){return t=t&&!z(t)?[t]:t,e?t?t.concat(e):z(e)?e:[e]:t}function qs(t,e){return R(e)?t:e}function be(t,e,i){const n={};if(j(e)&&(e=e.options),e.extends&&(t=be(t,e.extends,i)),e.mixins)for(const s of e.mixins)t=be(t,s,i);for(const s in t)o(s);for(const s in e)st(t,s)||o(s);function o(s){n[s]=(F[s]||qs)(t[s],e[s],i)}return n}function Hi(t,e=[]){try{return t?et(t,"{")?JSON.parse(t):e.length&&!d(t,":")?{[e[0]]:t}:t.split(";").reduce((i,n)=>{const[o,s]=n.split(/:(.*)/);return o&&!R(s)&&(i[o.trim()]=s.trim()),i},{}):{}}catch{return{}}}function zi(t,e){return t===Boolean?oi(e):t===Number?ne(e):t==="list"?Us(e):t===Object&&C(e)?Hi(e):t?t(e):e}const Rs=/,(?![^(]*\))/;function Us(t){return z(t)?t:C(t)?t.split(Rs).map(e=>mt(e)?ne(e):oi(e.trim())):[t]}function Vs(t){const{$options:e,$props:i}=t,n=Zn(e);ee(i,n);const{computed:o,methods:s}=e;for(let r in i)r in n&&(!o||!st(o,r))&&(!s||!st(s,r))&&(t[r]=i[r])}function Zn(t){const e={},{args:i=[],props:n={},el:o,id:s}=t;if(!n)return e;for(const a in n){const l=pt(a);let h=Mt(o,l);R(h)||(h=n[a]===Boolean&&h===""?!0:zi(n[a],h),!(l==="target"&&et(h,"_"))&&(e[a]=h))}const r=Hi(Mt(o,s),i);for(const a in r){const l=Qt(a);R(n[l])||(e[l]=zi(n[l],r[a]))}return e}const Ys=G((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[pt(o),`data-${pt(o)}`]).flat();return{attributes:i,filter:n}});function Gs(t){const{$options:e,$props:i}=t,{id:n,props:o,el:s}=e;if(!o)return;const{attributes:r,filter:a}=Ys(n,o),l=new MutationObserver(h=>{const u=Zn(e);h.some(({attributeName:f})=>{const p=f.replace("data-","");return(p===n?r:[Qt(p),Qt(f)]).some(P=>!R(u[P])&&u[P]!==i[P])})&&t.$reset()});l.observe(s,{attributes:!0,attributeFilter:a}),Jn(t,l)}function Yt(t,e){var i;(i=t.$options[e])==null||i.forEach(n=>n.call(t))}function Li(t){t._connected||(Vs(t),Yt(t,"beforeConnect"),t._connected=!0,Fs(t),_s(t),Ds(t),zs(t),Gs(t),Ns(t),Yt(t,"connected"),ve(t))}function Wi(t){t._connected&&(Yt(t,"beforeDisconnect"),Hs(t),Ps(t),Ls(t),Is(t),Yt(t,"disconnected"),t._connected=!1)}let Xs=0;function Qn(t,e={}){e.data=Zs(e,t.constructor.options),t.$options=be(t.constructor.options,e,t),t.$props={},t._uid=Xs++,Js(t),Ks(t),As(t),Yt(t,"created"),e.el&&t.$mount(e.el)}function Js(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Ks(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Zs({data:t={}},{args:e=[],props:i={}}){z(t)&&(t=t.slice(0,e.length).reduce((n,o,s)=>(Pt(o)?ee(n,o):n[e[s]]=o,n),{}));for(const n in t)R(t[n])?delete t[n]:i[n]&&(t[n]=zi(i[n],t[n]));return t}const Z=function(t){Qn(this,t)};Z.util=Cs,Z.options={},Z.version="3.21.6";const Qs="uk-",Et="__uikit__",Gt={};function to(t,e){var i,n;const o=Qs+pt(t);if(!e)return Gt[o].options||(Gt[o]=Z.extend(Gt[o])),Gt[o];t=Qt(t),Z[t]=(r,a)=>we(t,r,a);const s=(i=e.options)!=null?i:{...e};return s.id=o,s.name=t,(n=s.install)==null||n.call(s,Z,s,t),Z._initialized&&!s.functional&&requestAnimationFrame(()=>we(t,`[${o}],[data-${o}]`)),Gt[o]=s}function we(t,e,i,...n){const o=to(t);return o.options.functional?new o({data:Pt(e)?e:[e,i,...n]}):e?Lt(e).map(s)[0]:s();function s(r){const a=Ve(r,t);if(a)if(i)a.$destroy();else return a;return new o({el:r,data:i})}}function $e(t){return(t==null?void 0:t[Et])||{}}function Ve(t,e){return $e(t)[e]}function tr(t,e){t[Et]||(t[Et]={}),t[Et][e.$options.name]=e}function er(t,e){var i;(i=t[Et])==null||delete i[e.$options.name],ni(t[Et])&&delete t[Et]}function ir(t){wt&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>eo(t)):new MutationObserver((e,i)=>{document.body&&(eo(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function eo(t){_(document,"uikit:init",t),document.body&&xt(document.body,io),new MutationObserver(e=>e.forEach(nr)).observe(document,{subtree:!0,childList:!0}),new MutationObserver(e=>e.forEach(or)).observe(document,{subtree:!0,attributes:!0}),t._initialized=!0}function nr({addedNodes:t,removedNodes:e}){for(const i of t)xt(i,io);for(const i of e)xt(i,sr)}function or({target:t,attributeName:e}){var i;const n=no(e);n&&(ht(t,e)?we(n,t):(i=Ve(t,n))==null||i.$destroy())}function io(t){const e=$e(t);for(const i in e)Li(e[i]);for(const i of t.getAttributeNames()){const n=no(i);n&&we(n,t)}}function sr(t){const e=$e(t);for(const i in e)Wi(e[i])}function no(t){et(t,"data-")&&(t=t.slice(5));const e=Gt[t];return e&&(e.options||e).name}function rr(t){t.component=to,t.getComponents=$e,t.getComponent=Ve,t.update=oo,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,n){n=(C(n)?this.component(n):n)||this,n.options=be(n.options,i)},t.extend=function(i){i||(i={});const n=this,o=function(r){Qn(this,r)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.options=be(n.options,i),o.super=n,o.extend=n.extend,o};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=$(i)}})}function oo(t,e){t=t?B(t):document.body;for(const i of he(t).reverse())so(i,e);xt(t,i=>so(i,e))}function so(t,e){const i=$e(t);for(const n in i)ve(i[n],e)}function ar(t){t.prototype.$mount=function(e){const i=this;tr(e,i),i.$options.el=e,document.contains(e)&&Li(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:n}=i.$options;n&&Wi(i),Yt(i,"destroy"),er(n,i),e&&yt(i.$el)},t.prototype.$create=we,t.prototype.$emit=function(e){ve(this,e)},t.prototype.$update=function(e=this.$el,i){oo(e,i)},t.prototype.$reset=function(){Wi(this),Li(this)},t.prototype.$getComponent=Ve,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}let lr=1;function Ye(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${lr++}`}rr(Z),ar(Z);function dt(t){return ye(me,t,"resize")}function Xt(t){return ye(Cn,t)}function Ge(t){return ye(Oi,t)}function ji(t={}){return Xt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const s of m(j(n)?n(this):n))H('[loading="lazy"]',s).slice(0,o-1).forEach(r=>ae(r,"loading"));for(const s of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(s)},...t})}function ro(t){return ye((e,i)=>_i(i),t,"resize")}function qi(t){return ye((e,i)=>({disconnect:x(hr(e),"scroll",i,{passive:!0})}),t,"scroll")}function ao(t){return{observe(e,i){return{observe:it,unobserve:it,disconnect:x(e,It,i,{passive:!0})}},handler(e){if(!ut(e))return;const i=Wt(e),n="tagName"in e.target?e.target:D(e.target);N(document,`${Ft} ${Pe} scroll`,o=>{const{x:s,y:r}=Wt(o);(o.type!=="scroll"&&n&&s&&Math.abs(i.x-s)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{_(n,"swipe"),_(n,`swipe${cr(i.x,i.y,s,r)}`)})})},...t}}function ye(t,e,i){return{observe:t,handler(){ve(this,i)},...e}}function cr(t,e,i,n){return Math.abs(t-i)>=Math.abs(e-n)?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function hr(t){return m(t).map(e=>{const{ownerDocument:i}=e,n=St(e,!0);return n===i.scrollingElement?i:n})}var nt={connected(){S(this.$el,this.$options.id)}},Jt={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=>et(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(m(t).map(n=>{const o=Dt(e)?e:!this.isToggled(n);if(!_(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const s=(j(i)?i:i===!1||!this.hasAnimation?ur:this.hasTransition?fr:dr)(n,o,this),r=o?this.clsEnter:this.clsLeave;S(n,r),_(n,o?"show":"hide",[this]);const a=()=>{A(n,r),_(n,o?"shown":"hidden",[this])};return s?s.then(a,()=>(A(n,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=B(t),v(t,this.clsEnter)?!0:v(t,this.clsLeave)?!1:this.cls?v(t,this.cls.split(" ")[0]):W(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=d(this.cls," ")||e!==v(t,this.cls),i&&U(t,this.cls,d(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),H("[autofocus]",t).some(n=>W(n)?n.focus()||!0:n.blur()),i&&_(t,"toggled",[e,this])}}};function ur(t,e,{_toggle:i}){return ft.cancel(t),X.cancel(t),i(t,e)}async function fr(t,e,{animation:i,duration:n,velocity:o,transition:s,_toggle:r}){var a;const[l="reveal",h="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[d(u[0],h)?0:1],p=f[1]===h,y=["width","height"][u.indexOf(f)],k=`margin-${f[0]}`,T=`margin-${h}`;let _t=O(t)[y];const sn=X.inProgress(t);await X.cancel(t),e&&r(t,!0);const Qe=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",k,T].map(Lo=>[Lo,t.style[Lo]])),ot=O(t),rn=w(c(t,k)),Fo=w(c(t,T)),Ot=ot[y]+Fo;!sn&&!e&&(_t+=Fo);const[ti]=Si(t,"<div>");c(ti,{boxSizing:"border-box",height:ot.height,width:ot.width,...c(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",T])}),c(t,{padding:0,border:0,minWidth:0,minHeight:0,[T]:0,width:ot.width,height:ot.height,overflow:"hidden",[y]:_t});const Ho=_t/Ot;n=(o*Ot+n)*(e?1-Ho:Ho);const zo={[y]:e?Ot:0};p&&(c(t,k,Ot-_t+rn),zo[k]=e?rn:Ot+rn),!p^l==="reveal"&&(c(ti,k,-Ot+_t),X.start(ti,{[k]:e?0:-Ot},n,s));try{await X.start(t,zo,n,s)}finally{c(t,Qe),de(ti.firstChild),e||r(t,!1)}}function dr(t,e,i){const{animation:n,duration:o,_toggle:s}=i;return e?(s(t,!0),ft.in(t,n[0],o,i.origin)):ft.out(t,n[1]||n[0],o,i.origin).then(()=>s(t,!1))}const M={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var lo={mixins:[nt,Jt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",offset:0},computed:{items:({targets:t},e)=>H(t,e),toggles({toggle:t}){return this.items.map(e=>$(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||$(t,e)})}},watch:{items(t,e){if(e||v(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=v(this.items.find(n=>n.contains(e)),this.clsOpen);Xe(e,!i)}this.$emit()}},observe:ji(),events:[{name:"click keydown",delegate:({targets:t,$props:e})=>`${t} ${e.toggle}`,async handler(t){var e;t.type==="keydown"&&t.keyCode!==M.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=gr(t.target),await this.toggle(Ht(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate:({targets:t})=>t,handler(){this.$emit()}}],update(){const t=ce(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],n=this.contents[e];if(!i||!n)continue;i.id=Ye(this,i),n.id=Ye(this,n);const o=d(t,this.items[e]);g(i,{role:I(i,"a")?"button":null,"aria-controls":n.id,"aria-expanded":o,"aria-disabled":!this.collapsible&&t.length<2&&o}),g(n,{role:"region","aria-labelledby":i.id}),I(n,"ul")&&g(Q(n),"role","presentation")}},methods:{toggle(t,e){t=this.items[ct(t,this.items)];let i=[t];const n=ce(this.items,`.${this.clsOpen}`);if(!this.multiple&&!d(n,i[0])&&(i=i.concat(n)),!(!this.collapsible&&n.length<2&&d(n,t)))return Promise.all(i.map(o=>this.toggleElement(o,!d(n,o),(s,r)=>{if(U(s,this.clsOpen,r),e===!1||!this.animation){Xe($(this.content,s),!r);return}return pr(s,r,this)})))}}};function Xe(t,e){t&&(t.hidden=e)}async function pr(t,e,{content:i,duration:n,velocity:o,transition:s}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||$(i,t),t._wrapper||(t._wrapper=He(i,"<div>"));const a=t._wrapper;c(a,"overflow","hidden");const l=w(c(a,"height"));await X.cancel(a),Xe(i,!1);const h=re(["marginTop","marginBottom"],f=>c(i,f))+O(i).height,u=l/h;n=(o*h+n)*(e?1-u:u),c(a,"height",l),await X.start(a,{height:e?h:0},n,s),de(i),delete t._wrapper,e||Xe(i,!0)}function gr(t){const e=St(t,!0);let i;return function n(){i=requestAnimationFrame(()=>{const{top:o}=O(t);o<0&&(e.scrollTop+=o),n()})}(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var mr={mixins:[nt,Jt],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".uk-alert-close",duration:150},events:{name:"click",delegate:({selClose:t})=>t,handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,vr),this.$destroy(!0)}}};function vr(t,e,{duration:i,transition:n,velocity:o}){const s=w(c(t,"height"));return c(t,"height",s),X.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},o*s+i,n)}var co={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},beforeConnect(){this.autoplay==="inview"&&!ht(this.$el,"preload")&&(this.$el.preload="none"),I(this.$el,"iframe")&&!ht(this.$el,"allow")&&(this.$el.allow="autoplay"),this.autoplay==="hover"&&(I(this.$el,"video")?this.$el.tabindex=0:this.autoplay=!0),this.automute&&On(this.$el)},events:[{name:`${le} focusin`,filter:({autoplay:t})=>d(t,"hover"),handler(t){!ut(t)||!br(this.$el)?Pi(this.$el):je(this.$el)}},{name:`${Oe} focusout`,filter:({autoplay:t})=>d(t,"hover"),handler(t){ut(t)||je(this.$el)}}],observe:[Xt({filter:({$el:t,autoplay:e})=>e&&e!=="hover"&&Pn(t),handler([{isIntersecting:t}]){document.fullscreenElement||(t?Pi(this.$el):je(this.$el))},args:{intersecting:!1},options:({$el:t,autoplay:e})=>({root:e==="inview"?null:D(t)})})]};function br(t){return!t.paused&&!t.ended}var wr={mixins:[co],props:{width:Number,height:Number},data:{automute:!0},created(){this.useObjectFit=I(this.$el,"img","video")},observe:dt({target:({$el:t})=>ho(t)||D(t),filter:({useObjectFit:t})=>!t}),update:{read(){if(this.useObjectFit)return!1;const{ratio:t,cover:e}=hn,{$el:i,width:n,height:o}=this;let s={width:n,height:o};if(!n||!o){const h={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};n?s=t(h,"width",n):o?s=t(h,"height",o):s=h}const{offsetHeight:r,offsetWidth:a}=ho(i)||D(i),l=e(s,{width:a,height:r});return!l.width||!l.height?!1:l},write({height:t,width:e}){c(this.$el,{height:t,width:e})},events:["resize"]}};function ho(t){for(;t=D(t);)if(c(t,"position")!=="static")return t}var Ri={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&$(t)}}},$r={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${$t?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=d(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let n=[this.getPositionOffset(t),this.getShiftOffset(t)];const o=[this.flip&&"flip",this.shift&&"shift"],s={element:[this.inset?this.dir:xn(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in s)s[l].reverse();n.reverse(),o.reverse()}const r=uo(t),a=O(t);c(t,{top:-a.height,left:-a.width}),Fn(t,e,{attach:s,offset:n,boundary:i,placement:o,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t=this.$el){return J(this.offset===!1?c(t,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(d(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t=this.$el){return this.align==="center"?0:J(c(t,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",t)*(d(["left","top"],this.align)?1:-1)},getViewportOffset(t){return J(c(t,"--uk-position-viewport-offset"))}}};function uo(t){const e=St(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}let Ui;function fo(t){const e=x(t,"touchstart",n=>{if(n.targetTouches.length!==1||E(n.target,'input[type="range"'))return;let o=Wt(n).y;const s=x(t,"touchmove",r=>{const a=Wt(r).y;a!==o&&(o=a,Ut(r.target).some(l=>{if(!t.contains(l))return!1;let{scrollHeight:h,clientHeight:u}=l;return u<h})||r.preventDefault())},{passive:!1});N(t,"scroll touchend touchcanel",s,{capture:!0})},{passive:!0});if(Ui)return e;Ui=!0;const{scrollingElement:i}=document;return c(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:ze(window)-i.clientWidth||""}),()=>{Ui=!1,e(),c(i,{overflowY:"",touchAction:"",paddingRight:""})}}let L;var po={mixins:[Ri,$r,Jt],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean,closeOnScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["uk-animation-fade"],cls:"uk-open",container:!1,closeOnScroll:!1},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},n){return[V(e||t,n)||window,V(i||t,n)||window]},target({target:t,targetX:e,targetY:i},n){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:V(e,n),i===!0?window:V(i,n)]}},created(){this.tracker=new Tn},beforeConnect(){this.clsDrop=this.$props.clsDrop||this.$options.id},connected(){S(this.$el,"uk-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=xr(this)),this._style=ri(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),L=null),c(this.$el,this._style)},events:[{name:"click",delegate:()=>".uk-drop-close",handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:()=>'a[href*="#"]',handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&zt(e)&&!this.$el.contains($(i))&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),E(this.$el,":focus,:hover")||this.hide()}},{name:`${le} focusin`,filter:({mode:t})=>d(t,"hover"),handler(t){ut(t)||this.clearTimers()}},{name:`${Oe} focusout`,filter:({mode:t})=>d(t,"hover"),handler(t){!ut(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){L=this,this.tracker.init(),g(this.targetEl,"aria-expanded",!0);const t=[kr(this),Sr(this),Tr(this),this.autoUpdate&&go(this),this.closeOnScroll&&Er(this)];N(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0}),this.bgScroll||N(this.$el,"hidden",fo(this.$el),{self:!0})}},{name:"beforehide",self:!0,handler:"clearTimers"},{name:"hide",handler({target:t}){if(this.$el!==t){L=L===null&&this.$el.contains(t)&&this.isToggled()?this:L;return}L=this.isActive()?null:L,this.tracker.cancel(),g(this.targetEl,"aria-expanded",null)}}],update:{write(){this.isToggled()&&!v(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(L){if(e&&L.isDelaying()){this.showTimer=setTimeout(()=>E(t,":hover")&&this.show(),10);return}let i;for(;L&&i!==L&&!L.$el.contains(this.$el);)i=L,L.hide(!1,!1)}this.container&&D(this.$el)!==this.container&&tt(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelayedHide=t,t&&this.isDelaying()?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},isActive(){return L===this},isDelaying(){return[this.$el,...H(".uk-drop",this.$el)].some(t=>this.tracker.movesTo(t))},position(){const t=uo(this.$el);A(this.$el,"uk-drop-stack"),c(this.$el,this._style),this.$el.hidden=!0;const e=this.target.map(s=>yr(this.$el,s)),i=this.getViewportOffset(this.$el),n=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[s,[r,a]]of n)this.axis!==r&&d([r,!0],this.stretch)&&c(this.$el,{[a]:Math.min(b(this.boundary[s])[a],e[s][a]-2*i),[`overflow-${r}`]:"auto"});const o=e[0].width-2*i;this.$el.hidden=!1,c(this.$el,"maxWidth",""),this.$el.offsetWidth>o&&S(this.$el,"uk-drop-stack"),c(this.$el,"maxWidth",o),this.positionAt(this.$el,this.target,this.boundary);for(const[s,[r,a,l,h]]of n)if(this.axis===r&&d([r,!0],this.stretch)){const u=Math.abs(this.getPositionOffset()),f=b(this.target[s]),p=b(this.$el);c(this.$el,{[a]:(f[l]>p[l]?f[this.inset?h:l]-Math.max(b(this.boundary[s])[l],e[s][l]+i):Math.min(b(this.boundary[s])[h],e[s][h]-i)-f[this.inset?l:h])-u,[`overflow-${r}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}t()}}};function yr(t,e){return K(Vt(e).find(i=>i.contains(t)))}function xr(t){const{$el:e}=t.$create("toggle",V(t.toggle,t.$el),{target:t.$el,mode:t.mode});return g(e,"aria-haspopup",!0),e}function kr(t){const e=()=>t.$emit(),i=[_i(e),me(Vt(t.$el).concat(t.target),e)];return()=>i.map(n=>n.disconnect())}function go(t,e=()=>t.$emit()){return x([document,...Vt(t.$el)],"scroll",e,{passive:!0})}function Sr(t){return x(document,"keydown",e=>{e.keyCode===M.ESC&&t.hide(!1)})}function Er(t){return go(t,()=>t.hide(!1))}function Tr(t){return x(document,It,({target:e})=>{t.$el.contains(e)||N(document,`${Ft} ${Pe} scroll`,({defaultPrevented:i,type:n,target:o})=>{var s;!i&&n===Ft&&e===o&&!((s=t.targetEl)!=null&&s.contains(e))&&t.hide(!1)},!0)})}var mo={mixins:[nt,Ri],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean,closeOnScroll:Boolean},data:{align:$t?"right":"left",clsDrop:"uk-dropdown",clsDropbar:"uk-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor:({dropbarAnchor:t},e)=>V(t,e)||e,dropbar({dropbar:t}){return t?(t=this._dropbar||V(t,this.$el)||$(`+ .${this.clsDropbar}`,this.$el),t||(this._dropbar=$("<div></div>"))):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var i;const n=H(`.${t}`,e);if(this.dropContainer!==e)for(const o of H(`.${t}`,this.dropContainer)){const s=(i=this.getDropdown(o))==null?voi