franken-ui
Version:
Franken UI is an HTML-first, open-source library of UI components based on the utility-first Tailwind CSS with UIkit 3 compatibility. The design is based on shadcn/ui ported to be framework-agnostic.
3 lines • 199 kB
JavaScript
var FRANKENUICORE=function(C){"use strict";var $o;const Oi=globalThis,Pi=Oi.ShadowRoot&&(Oi.ShadyCSS===void 0||Oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ys=Symbol(),zn=new WeakMap;let xs=class{constructor(r,l,c){if(this._$cssResult$=!0,c!==ys)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=l}get styleSheet(){let r=this.o;const l=this.t;if(Pi&&r===void 0){const c=l!==void 0&&l.length===1;c&&(r=zn.get(l)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),c&&zn.set(l,r))}return r}toString(){return this.cssText}};const Ln=f=>new xs(typeof f=="string"?f:f+"",void 0,ys),Pa=(f,...r)=>{const l=f.length===1?f[0]:r.reduce((c,d,$)=>c+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(d)+f[$+1],f[0]);return new xs(l,f,ys)},jn=(f,r)=>{if(Pi)f.adoptedStyleSheets=r.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet);else for(const l of r){const c=document.createElement("style"),d=Oi.litNonce;d!==void 0&&c.setAttribute("nonce",d),c.textContent=l.cssText,f.appendChild(c)}},ks=Pi?f=>f:f=>f instanceof CSSStyleSheet?(r=>{let l="";for(const c of r.cssRules)l+=c.cssText;return Ln(l)})(f):f;const{is:Da,defineProperty:Ma,getOwnPropertyDescriptor:Ba,getOwnPropertyNames:Na,getOwnPropertySymbols:Ha,getPrototypeOf:za}=Object,Wt=globalThis,Rn=Wt.trustedTypes,La=Rn?Rn.emptyScript:"",Ss=Wt.reactiveElementPolyfillSupport,qe=(f,r)=>f,We={toAttribute(f,r){switch(r){case Boolean:f=f?La:null;break;case Object:case Array:f=f==null?f:JSON.stringify(f)}return f},fromAttribute(f,r){let l=f;switch(r){case Boolean:l=f!==null;break;case Number:l=f===null?null:Number(f);break;case Object:case Array:try{l=JSON.parse(f)}catch{l=null}}return l}},Di=(f,r)=>!Da(f,r),Fn={attribute:!0,type:String,converter:We,reflect:!1,hasChanged:Di};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);let ee=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,l=Fn){if(l.state&&(l.attribute=!1),this._$Ei(),this.elementProperties.set(r,l),!l.noAccessor){const c=Symbol(),d=this.getPropertyDescriptor(r,c,l);d!==void 0&&Ma(this.prototype,r,d)}}static getPropertyDescriptor(r,l,c){const{get:d,set:$}=Ba(this.prototype,r)??{get(){return this[l]},set(m){this[l]=m}};return{get(){return d==null?void 0:d.call(this)},set(m){const k=d==null?void 0:d.call(this);$.call(this,m),this.requestUpdate(r,k,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??Fn}static _$Ei(){if(this.hasOwnProperty(qe("elementProperties")))return;const r=za(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(qe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qe("properties"))){const l=this.properties,c=[...Na(l),...Ha(l)];for(const d of c)this.createProperty(d,l[d])}const r=this[Symbol.metadata];if(r!==null){const l=litPropertyMetadata.get(r);if(l!==void 0)for(const[c,d]of l)this.elementProperties.set(c,d)}this._$Eh=new Map;for(const[l,c]of this.elementProperties){const d=this._$Eu(l,c);d!==void 0&&this._$Eh.set(d,l)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const l=[];if(Array.isArray(r)){const c=new Set(r.flat(1/0).reverse());for(const d of c)l.unshift(ks(d))}else r!==void 0&&l.push(ks(r));return l}static _$Eu(r,l){const c=l.attribute;return c===!1?void 0:typeof c=="string"?c:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(l=>l(this))}addController(r){var l;(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&((l=r.hostConnected)==null||l.call(r))}removeController(r){var l;(l=this._$EO)==null||l.delete(r)}_$E_(){const r=new Map,l=this.constructor.elementProperties;for(const c of l.keys())this.hasOwnProperty(c)&&(r.set(c,this[c]),delete this[c]);r.size>0&&(this._$Ep=r)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jn(r,this.constructor.elementStyles),r}connectedCallback(){var r;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(l=>{var c;return(c=l.hostConnected)==null?void 0:c.call(l)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(l=>{var c;return(c=l.hostDisconnected)==null?void 0:c.call(l)})}attributeChangedCallback(r,l,c){this._$AK(r,c)}_$EC(r,l){var $;const c=this.constructor.elementProperties.get(r),d=this.constructor._$Eu(r,c);if(d!==void 0&&c.reflect===!0){const m=((($=c.converter)==null?void 0:$.toAttribute)!==void 0?c.converter:We).toAttribute(l,c.type);this._$Em=r,m==null?this.removeAttribute(d):this.setAttribute(d,m),this._$Em=null}}_$AK(r,l){var $;const c=this.constructor,d=c._$Eh.get(r);if(d!==void 0&&this._$Em!==d){const m=c.getPropertyOptions(d),k=typeof m.converter=="function"?{fromAttribute:m.converter}:(($=m.converter)==null?void 0:$.fromAttribute)!==void 0?m.converter:We;this._$Em=d,this[d]=k.fromAttribute(l,m.type),this._$Em=null}}requestUpdate(r,l,c){if(r!==void 0){if(c??(c=this.constructor.getPropertyOptions(r)),!(c.hasChanged??Di)(this[r],l))return;this.P(r,l,c)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,l,c){this._$AL.has(r)||this._$AL.set(r,l),c.reflect===!0&&this._$Em!==r&&(this._$Ej??(this._$Ej=new Set)).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(l){Promise.reject(l)}const r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var c;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[$,m]of this._$Ep)this[$]=m;this._$Ep=void 0}const d=this.constructor.elementProperties;if(d.size>0)for(const[$,m]of d)m.wrapped!==!0||this._$AL.has($)||this[$]===void 0||this.P($,this[$],m)}let r=!1;const l=this._$AL;try{r=this.shouldUpdate(l),r?(this.willUpdate(l),(c=this._$EO)==null||c.forEach(d=>{var $;return($=d.hostUpdate)==null?void 0:$.call(d)}),this.update(l)):this._$EU()}catch(d){throw r=!1,this._$EU(),d}r&&this._$AE(l)}willUpdate(r){}_$AE(r){var l;(l=this._$EO)==null||l.forEach(c=>{var d;return(d=c.hostUpdated)==null?void 0:d.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(l=>this._$EC(l,this[l]))),this._$EU()}updated(r){}firstUpdated(r){}};ee.elementStyles=[],ee.shadowRootOptions={mode:"open"},ee[qe("elementProperties")]=new Map,ee[qe("finalized")]=new Map,Ss==null||Ss({ReactiveElement:ee}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.0.4");const Ve=globalThis,Mi=Ve.trustedTypes,Un=Mi?Mi.createPolicy("lit-html",{createHTML:f=>f}):void 0,_s="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,As="?"+Ht,ja=`<${As}>`,ie=document,Ye=()=>ie.createComment(""),Ge=f=>f===null||typeof f!="object"&&typeof f!="function",qn=Array.isArray,Wn=f=>qn(f)||typeof(f==null?void 0:f[Symbol.iterator])=="function",Es=`[
\f\r]`,Je=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vn=/-->/g,Yn=/>/g,se=RegExp(`>|${Es}(?:([^\\s"'>=/]+)(${Es}*=${Es}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gn=/'/g,Jn=/"/g,Kn=/^(?:script|style|textarea|title)$/i,Xn=f=>(r,...l)=>({_$litType$:f,strings:r,values:l}),nt=Xn(1),Ra=Xn(2),zt=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),Zn=new WeakMap,ne=ie.createTreeWalker(ie,129);function Qn(f,r){if(!Array.isArray(f)||!f.hasOwnProperty("raw"))throw Error("invalid template strings array");return Un!==void 0?Un.createHTML(r):r}const to=(f,r)=>{const l=f.length-1,c=[];let d,$=r===2?"<svg>":"",m=Je;for(let k=0;k<l;k++){const x=f[k];let D,w,I=-1,O=0;for(;O<x.length&&(m.lastIndex=O,w=m.exec(x),w!==null);)O=m.lastIndex,m===Je?w[1]==="!--"?m=Vn:w[1]!==void 0?m=Yn:w[2]!==void 0?(Kn.test(w[2])&&(d=RegExp("</"+w[2],"g")),m=se):w[3]!==void 0&&(m=se):m===se?w[0]===">"?(m=d??Je,I=-1):w[1]===void 0?I=-2:(I=m.lastIndex-w[2].length,D=w[1],m=w[3]===void 0?se:w[3]==='"'?Jn:Gn):m===Jn||m===Gn?m=se:m===Vn||m===Yn?m=Je:(m=se,d=void 0);const M=m===se&&f[k+1].startsWith("/>")?" ":"";$+=m===Je?x+ja:I>=0?(c.push(D),x.slice(0,I)+_s+x.slice(I)+Ht+M):x+Ht+(I===-2?k:M)}return[Qn(f,$+(f[l]||"<?>")+(r===2?"</svg>":"")),c]};class Ke{constructor({strings:r,_$litType$:l},c){let d;this.parts=[];let $=0,m=0;const k=r.length-1,x=this.parts,[D,w]=to(r,l);if(this.el=Ke.createElement(D,c),ne.currentNode=this.el.content,l===2){const I=this.el.content.firstChild;I.replaceWith(...I.childNodes)}for(;(d=ne.nextNode())!==null&&x.length<k;){if(d.nodeType===1){if(d.hasAttributes())for(const I of d.getAttributeNames())if(I.endsWith(_s)){const O=w[m++],M=d.getAttribute(I).split(Ht),Y=/([.?@])?(.*)/.exec(O);x.push({type:1,index:$,name:Y[2],strings:M,ctor:Y[1]==="."?io:Y[1]==="?"?so:Y[1]==="@"?no:Xe}),d.removeAttribute(I)}else I.startsWith(Ht)&&(x.push({type:6,index:$}),d.removeAttribute(I));if(Kn.test(d.tagName)){const I=d.textContent.split(Ht),O=I.length-1;if(O>0){d.textContent=Mi?Mi.emptyScript:"";for(let M=0;M<O;M++)d.append(I[M],Ye()),ne.nextNode(),x.push({type:2,index:++$});d.append(I[O],Ye())}}}else if(d.nodeType===8)if(d.data===As)x.push({type:2,index:$});else{let I=-1;for(;(I=d.data.indexOf(Ht,I+1))!==-1;)x.push({type:7,index:$}),I+=Ht.length-1}$++}}static createElement(r,l){const c=ie.createElement("template");return c.innerHTML=r,c}}function oe(f,r,l=f,c){var m,k;if(r===zt)return r;let d=c!==void 0?(m=l._$Co)==null?void 0:m[c]:l._$Cl;const $=Ge(r)?void 0:r._$litDirective$;return(d==null?void 0:d.constructor)!==$&&((k=d==null?void 0:d._$AO)==null||k.call(d,!1),$===void 0?d=void 0:(d=new $(f),d._$AT(f,l,c)),c!==void 0?(l._$Co??(l._$Co=[]))[c]=d:l._$Cl=d),d!==void 0&&(r=oe(f,d._$AS(f,r.values),d,c)),r}class eo{constructor(r,l){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){const{el:{content:l},parts:c}=this._$AD,d=((r==null?void 0:r.creationScope)??ie).importNode(l,!0);ne.currentNode=d;let $=ne.nextNode(),m=0,k=0,x=c[0];for(;x!==void 0;){if(m===x.index){let D;x.type===2?D=new _e($,$.nextSibling,this,r):x.type===1?D=new x.ctor($,x.name,x.strings,this,r):x.type===6&&(D=new oo($,this,r)),this._$AV.push(D),x=c[++k]}m!==(x==null?void 0:x.index)&&($=ne.nextNode(),m++)}return ne.currentNode=ie,d}p(r){let l=0;for(const c of this._$AV)c!==void 0&&(c.strings!==void 0?(c._$AI(r,c,l),l+=c.strings.length-2):c._$AI(r[l])),l++}}class _e{get _$AU(){var r;return((r=this._$AM)==null?void 0:r._$AU)??this._$Cv}constructor(r,l,c,d){this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=r,this._$AB=l,this._$AM=c,this.options=d,this._$Cv=(d==null?void 0:d.isConnected)??!0}get parentNode(){let r=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=l.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,l=this){r=oe(this,r,l),Ge(r)?r===ot||r==null||r===""?(this._$AH!==ot&&this._$AR(),this._$AH=ot):r!==this._$AH&&r!==zt&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Wn(r)?this.k(r):this._(r)}S(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.S(r))}_(r){this._$AH!==ot&&Ge(this._$AH)?this._$AA.nextSibling.data=r:this.T(ie.createTextNode(r)),this._$AH=r}$(r){var $;const{values:l,_$litType$:c}=r,d=typeof c=="number"?this._$AC(r):(c.el===void 0&&(c.el=Ke.createElement(Qn(c.h,c.h[0]),this.options)),c);if((($=this._$AH)==null?void 0:$._$AD)===d)this._$AH.p(l);else{const m=new eo(d,this),k=m.u(this.options);m.p(l),this.T(k),this._$AH=m}}_$AC(r){let l=Zn.get(r.strings);return l===void 0&&Zn.set(r.strings,l=new Ke(r)),l}k(r){qn(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let c,d=0;for(const $ of r)d===l.length?l.push(c=new _e(this.S(Ye()),this.S(Ye()),this,this.options)):c=l[d],c._$AI($),d++;d<l.length&&(this._$AR(c&&c._$AB.nextSibling,d),l.length=d)}_$AR(r=this._$AA.nextSibling,l){var c;for((c=this._$AP)==null?void 0:c.call(this,!1,!0,l);r&&r!==this._$AB;){const d=r.nextSibling;r.remove(),r=d}}setConnected(r){var l;this._$AM===void 0&&(this._$Cv=r,(l=this._$AP)==null||l.call(this,r))}}class Xe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,l,c,d,$){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=r,this.name=l,this._$AM=d,this.options=$,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=ot}_$AI(r,l=this,c,d){const $=this.strings;let m=!1;if($===void 0)r=oe(this,r,l,0),m=!Ge(r)||r!==this._$AH&&r!==zt,m&&(this._$AH=r);else{const k=r;let x,D;for(r=$[0],x=0;x<$.length-1;x++)D=oe(this,k[c+x],l,x),D===zt&&(D=this._$AH[x]),m||(m=!Ge(D)||D!==this._$AH[x]),D===ot?r=ot:r!==ot&&(r+=(D??"")+$[x+1]),this._$AH[x]=D}m&&!d&&this.j(r)}j(r){r===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}}class io extends Xe{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ot?void 0:r}}class so extends Xe{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ot)}}class no extends Xe{constructor(r,l,c,d,$){super(r,l,c,d,$),this.type=5}_$AI(r,l=this){if((r=oe(this,r,l,0)??ot)===zt)return;const c=this._$AH,d=r===ot&&c!==ot||r.capture!==c.capture||r.once!==c.once||r.passive!==c.passive,$=r!==ot&&(c===ot||d);d&&this.element.removeEventListener(this.name,this,c),$&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var l;typeof this._$AH=="function"?this._$AH.call(((l=this.options)==null?void 0:l.host)??this.element,r):this._$AH.handleEvent(r)}}class oo{constructor(r,l,c){this.element=r,this.type=6,this._$AN=void 0,this._$AM=l,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(r){oe(this,r)}}const ro={P:_s,A:Ht,C:As,M:1,L:to,R:eo,D:Wn,V:oe,I:_e,H:Xe,N:so,U:no,B:io,F:oo},Cs=Ve.litHtmlPolyfillSupport;Cs==null||Cs(Ke,_e),(Ve.litHtmlVersions??(Ve.litHtmlVersions=[])).push("3.1.4");const ao=(f,r,l)=>{const c=(l==null?void 0:l.renderBefore)??r;let d=c._$litPart$;if(d===void 0){const $=(l==null?void 0:l.renderBefore)??null;c._$litPart$=d=new _e(r.insertBefore(Ye(),$),$,void 0,l??{})}return d._$AI(f),d};let Lt=class extends ee{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var l;const r=super.createRenderRoot();return(l=this.renderOptions).renderBefore??(l.renderBefore=r.firstChild),r}update(r){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=ao(l,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)==null||r.setConnected(!1)}render(){return zt}};Lt._$litElement$=!0,Lt.finalized=!0,($o=globalThis.litElementHydrateSupport)==null||$o.call(globalThis,{LitElement:Lt});const Is=globalThis.litElementPolyfillSupport;Is==null||Is({LitElement:Lt});const Fa={_$AK:(f,r,l)=>{f._$AK(r,l)},_$AL:f=>f._$AL};(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");const Ua=Object.freeze(Object.defineProperty({__proto__:null,CSSResult:xs,LitElement:Lt,ReactiveElement:ee,_$LE:Fa,_$LH:ro,adoptStyles:jn,css:Pa,defaultConverter:We,getCompatibleStyle:ks,html:nt,isServer:!1,noChange:zt,notEqual:Di,nothing:ot,render:ao,supportsAdoptingStyleSheets:Pi,svg:Ra,unsafeCSS:Ln},Symbol.toStringTag,{value:"Module"}));const Ze=f=>(r,l)=>{l!==void 0?l.addInitializer(()=>{customElements.define(f,r)}):customElements.define(f,r)};const qa={attribute:!0,type:String,converter:We,reflect:!1,hasChanged:Di},lo=(f=qa,r,l)=>{const{kind:c,metadata:d}=l;let $=globalThis.litPropertyMetadata.get(d);if($===void 0&&globalThis.litPropertyMetadata.set(d,$=new Map),$.set(l.name,f),c==="accessor"){const{name:m}=l;return{set(k){const x=r.get.call(this);r.set.call(this,k),this.requestUpdate(m,x,f)},init(k){return k!==void 0&&this.P(m,void 0,f),k}}}if(c==="setter"){const{name:m}=l;return function(k){const x=this[m];r.call(this,k),this.requestUpdate(m,x,f)}}throw Error("Unsupported decorator location: "+c)};function X(f){return(r,l)=>typeof l=="object"?lo(f,r,l):((c,d,$)=>{const m=d.hasOwnProperty($);return d.constructor.createProperty($,m?{...c,wrapped:!0}:c),m?Object.getOwnPropertyDescriptor(d,$):void 0})(f,r,l)}function ft(f){return X({...f,state:!0,attribute:!1})}function Wa(f){return(r,l)=>{const c=typeof r=="function"?r:r[l];Object.assign(c,f)}}const Ae=(f,r,l)=>(l.configurable=!0,l.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(f,r,l),l);function Va(f,r){return(l,c,d)=>{const $=m=>{var k;return((k=m.renderRoot)==null?void 0:k.querySelector(f))??null};if(r){const{get:m,set:k}=typeof c=="object"?l:d??(()=>{const x=Symbol();return{get(){return this[x]},set(D){this[x]=D}}})();return Ae(l,c,{get(){let x=m.call(this);return x===void 0&&(x=$(this),(x!==null||this.hasUpdated)&&k.call(this,x)),x}})}return Ae(l,c,{get(){return $(this)}})}}let Ya;function Ga(f){return(r,l)=>Ae(r,l,{get(){return(this.renderRoot??Ya??(Ya=document.createDocumentFragment())).querySelectorAll(f)}})}function Ja(f){return(r,l)=>Ae(r,l,{async get(){var c;return await this.updateComplete,((c=this.renderRoot)==null?void 0:c.querySelector(f))??null}})}function Ka(f){return(r,l)=>{const{slot:c,selector:d}=f??{},$="slot"+(c?`[name=${c}]`:":not([name])");return Ae(r,l,{get(){var x;const m=(x=this.renderRoot)==null?void 0:x.querySelector($),k=(m==null?void 0:m.assignedElements(f))??[];return d===void 0?k:k.filter(D=>D.matches(d))}})}}function Xa(f){return(r,l)=>{const{slot:c}=f??{},d="slot"+(c?`[name=${c}]`:":not([name])");return Ae(r,l,{get(){var m;const $=(m=this.renderRoot)==null?void 0:m.querySelector(d);return($==null?void 0:$.assignedNodes(f))??[]}})}}const Za=Object.freeze(Object.defineProperty({__proto__:null,customElement:Ze,eventOptions:Wa,property:X,query:Va,queryAll:Ga,queryAssignedElements:Ka,queryAssignedNodes:Xa,queryAsync:Ja,standardProperty:lo,state:ft},Symbol.toStringTag,{value:"Module"}));const ho={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},co=f=>(...r)=>({_$litDirective$:f,values:r});class uo{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,l,c){this._$Ct=r,this._$AM=l,this._$Ci=c}_$AS(r,l){return this.update(r,l)}update(r,l){return this.render(...l)}}const{I:Qa}=ro,fo=()=>document.createComment(""),Qe=(f,r,l)=>{var $;const c=f._$AA.parentNode,d=r===void 0?f._$AB:r._$AA;if(l===void 0){const m=c.insertBefore(fo(),d),k=c.insertBefore(fo(),d);l=new Qa(m,k,f,f.options)}else{const m=l._$AB.nextSibling,k=l._$AM,x=k!==f;if(x){let D;($=l._$AQ)==null||$.call(l,f),l._$AM=f,l._$AP!==void 0&&(D=f._$AU)!==k._$AU&&l._$AP(D)}if(m!==d||x){let D=l._$AA;for(;D!==m;){const w=D.nextSibling;c.insertBefore(D,d),D=w}}}return l},re=(f,r,l=f)=>(f._$AI(r,l),f),tl={},el=(f,r=tl)=>f._$AH=r,il=f=>f._$AH,Ts=f=>{var c;(c=f._$AP)==null||c.call(f,!1,!0);let r=f._$AA;const l=f._$AB.nextSibling;for(;r!==l;){const d=r.nextSibling;r.remove(),r=d}};const po=(f,r,l)=>{const c=new Map;for(let d=r;d<=l;d++)c.set(f[d],d);return c},Bi=co(class extends uo{constructor(f){if(super(f),f.type!==ho.CHILD)throw Error("repeat() can only be used in text expressions")}dt(f,r,l){let c;l===void 0?l=r:r!==void 0&&(c=r);const d=[],$=[];let m=0;for(const k of f)d[m]=c?c(k,m):m,$[m]=l(k,m),m++;return{values:$,keys:d}}render(f,r,l){return this.dt(f,r,l).values}update(f,[r,l,c]){const d=il(f),{values:$,keys:m}=this.dt(r,l,c);if(!Array.isArray(d))return this.ut=m,$;const k=this.ut??(this.ut=[]),x=[];let D,w,I=0,O=d.length-1,M=0,Y=$.length-1;for(;I<=O&&M<=Y;)if(d[I]===null)I++;else if(d[O]===null)O--;else if(k[I]===m[M])x[M]=re(d[I],$[M]),I++,M++;else if(k[O]===m[Y])x[Y]=re(d[O],$[Y]),O--,Y--;else if(k[I]===m[Y])x[Y]=re(d[I],$[Y]),Qe(f,x[Y+1],d[I]),I++,Y--;else if(k[O]===m[M])x[M]=re(d[O],$[M]),Qe(f,d[I],d[O]),O--,M++;else if(D===void 0&&(D=po(m,M,Y),w=po(k,I,O)),D.has(k[I]))if(D.has(k[O])){const tt=w.get(m[M]),It=tt!==void 0?d[tt]:null;if(It===null){const Rt=Qe(f,d[I]);re(Rt,$[M]),x[M]=Rt}else x[M]=re(It,$[M]),Qe(f,d[I],It),d[tt]=null;M++}else Ts(d[O]),O--;else Ts(d[I]),I++;for(;M<=Y;){const tt=Qe(f,x[Y+1]);re(tt,$[M]),x[M++]=tt}for(;I<=O;){const tt=d[I++];tt!==null&&Ts(tt)}return this.ut=m,el(f,x),zt}});class Os extends uo{constructor(r){if(super(r),this.it=ot,r.type!==ho.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===ot||r==null)return this._t=void 0,this.it=r;if(r===zt)return r;if(typeof r!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const l=[r];return l.raw=l,this._t={_$litType$:this.constructor.resultType,strings:l,values:[]}}}Os.directiveName="unsafeHTML",Os.resultType=1;const go=co(Os);(function(f,r){typeof C=="object"&&typeof module<"u"?module.exports=r():typeof define=="function"&&define.amd?define("uikit",r):(f=typeof globalThis<"u"?globalThis:f||self,f.UIkit=r())})(void 0,function(){const{hasOwnProperty:f,toString:r}=Object.prototype;function l(t,e){return f.call(t,e)}const c=/\B([A-Z])/g,d=Tt(t=>t.replace(c,"-$1").toLowerCase()),$=/-(\w)/g,m=Tt(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace($,(e,i)=>i.toUpperCase())),k=Tt(t=>t.charAt(0).toUpperCase()+t.slice(1));function x(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function D(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function w(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function I(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:O,from:M}=Array,{assign:Y}=Object;function tt(t){return typeof t=="function"}function It(t){return t!==null&&typeof t=="object"}function Rt(t){return r.call(t)==="[object Object]"}function Ni(t){return It(t)&&t===t.window}function ti(t){return Ps(t)===9}function ei(t){return Ps(t)>=1}function ii(t){return Ps(t)===1}function Ps(t){return!Ni(t)&&It(t)&&t.nodeType}function Ee(t){return typeof t=="boolean"}function Q(t){return typeof t=="string"}function si(t){return typeof t=="number"}function Mt(t){return si(t)||Q(t)&&!isNaN(t-parseFloat(t))}function Hi(t){return!(O(t)?t.length:It(t)&&Object.keys(t).length)}function pt(t){return t===void 0}function Ds(t){return Ee(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Ft(t){const e=Number(t);return isNaN(e)?!1:e}function H(t){return parseFloat(t)||0}function rt(t){return t&&R(t)[0]}function R(t){return ei(t)?[t]:Array.from(t||[]).filter(ei)}function ae(t){if(Ni(t))return t;t=rt(t);const e=ti(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function ni(t,e){return t===e||It(t)&&It(e)&&Object.keys(t).length===Object.keys(e).length&&Ce(t,(i,s)=>i===e[s])}function Ms(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function le(t){return t[t.length-1]}function Ce(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function bo(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function he(t,e){return t.reduce((i,s)=>i+H(tt(e)?e(s):s[e]),0)}function wo(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function Bs(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function vt(t,e=0,i=1){return Math.min(Math.max(Ft(t)||0,e),i)}function q(){}function Ns(...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 zi(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Hs(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 yo(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Hs(t,i,e[i]):t;return t}function gl(t,e){t=yo(t,e);for(const i in t)t=t[i]<e[i]?Hs(t,i,e[i]):t;return t}const zs={ratio:Hs,contain:yo,cover:gl};function St(t,e,i=0,s=!1){e=R(e);const{length:n}=e;return n?(t=Mt(t)?Ft(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(rt(t)),s?vt(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function Tt(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function z(t,...e){for(const i of R(t)){const s=ce(e).filter(n=>!P(i,n));s.length&&i.classList.add(...s)}}function U(t,...e){for(const i of R(t)){const s=ce(e).filter(n=>P(i,n));s.length&&i.classList.remove(...s)}}function Ls(t,e,i){i=ce(i),e=ce(e).filter(s=>!w(i,s)),U(t,e),z(t,i)}function P(t,e){return[e]=ce(e),R(t).some(i=>i.classList.contains(e))}function at(t,e,i){const s=ce(e);pt(i)||(i=!!i);for(const n of R(t))for(const o of s)n.classList.toggle(o,i)}function ce(t){return t?O(t)?t.map(ce).flat():String(t).split(" ").filter(Boolean):[]}function _(t,e,i){var s;if(It(e)){for(const n in e)_(t,n,e[n]);return}if(pt(i))return(s=rt(t))==null?void 0:s.getAttribute(e);for(const n of R(t))tt(i)&&(i=i.call(n,_(n,e))),i===null?oi(n,e):n.setAttribute(e,i)}function Yt(t,e){return R(t).some(i=>i.hasAttribute(e))}function oi(t,e){R(t).forEach(i=>i.removeAttribute(e))}function gt(t,e){for(const i of[e,`data-${e}`])if(Yt(t,i))return _(t,i)}const ue=typeof window<"u",ct=ue&&document.dir==="rtl",Ie=ue&&"ontouchstart"in window,Te=ue&&window.PointerEvent,Ot=Te?"pointerdown":Ie?"touchstart":"mousedown",Li=Te?"pointermove":Ie?"touchmove":"mousemove",Gt=Te?"pointerup":Ie?"touchend":"mouseup",de=Te?"pointerenter":Ie?"":"mouseenter",Oe=Te?"pointerleave":Ie?"":"mouseleave",ji=Te?"pointercancel":"touchcancel",ml={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 js(t){return R(t).some(e=>ml[e.tagName.toLowerCase()])}const vl=ue&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function lt(t){return R(t).some(e=>vl.call(e))}const ri="input,select,textarea,button";function Ri(t){return R(t).some(e=>W(e,ri))}const ai=`${ri},a[href],[tabindex]`;function Fi(t){return W(t,ai)}function K(t){var e;return(e=rt(t))==null?void 0:e.parentElement}function li(t,e){return R(t).filter(i=>W(i,e))}function W(t,e){return R(t).some(i=>i.matches(e))}function hi(t,e){const i=[];for(;t=K(t);)(!e||W(t,e))&&i.push(t);return i}function G(t,e){t=rt(t);const i=t?M(t.children):[];return e?li(i,e):i}function Ut(t,e){return e?R(t).indexOf(rt(e)):G(K(t)).indexOf(t)}function Pe(t){return t=rt(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Rs(t){if(Pe(t)){const{hash:e,ownerDocument:i}=rt(t),s=decodeURIComponent(e).slice(1);return i.getElementById(s)||i.getElementsByName(s)[0]}}function bt(t,e){return Fs(t,xo(t,e))}function ci(t,e){return ui(t,xo(t,e))}function Fs(t,e){return rt(_o(t,rt(e),"querySelector"))}function ui(t,e){return R(_o(t,rt(e),"querySelectorAll"))}function xo(t,e=document){return ti(e)||ko(t).isContextSelector?e:e.ownerDocument}const $l=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,bl=/(\([^)]*\)|[^,])+/g,ko=Tt(t=>{let e=!1;if(!t||!Q(t))return{};const i=[];for(let s of t.match(bl))s=s.trim().replace($l,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),i.push(s);return{selector:i.join(","),selectors:i,isContextSelector:e}}),wl=/(\([^)]*\)|\S)*/,So=Tt(t=>{t=t.slice(1).trim();const[e]=t.match(wl);return[e,t.slice(e.length+1)]});function _o(t,e=document,i){const s=ko(t);if(!s.isContextSelector)return s.selector?Us(e,i,s.selector):t;t="";const n=s.selectors.length===1;for(let o of s.selectors){let a,h=e;if(o[0]==="!"&&([a,o]=So(o),h=e.parentElement.closest(a),!o&&n)||h&&o[0]==="-"&&([a,o]=So(o),h=h.previousElementSibling,h=W(h,a)?h:null,!o&&n))return h;if(h){if(n)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${Ut(h)+1}) ${o}`,h=h.parentElement):o[0]===">"&&(o=`:scope ${o}`),Us(h,i,o);t+=`${t?",":""}${yl(h)} ${o}`}}return ti(e)||(e=e.ownerDocument),Us(e,i,t)}function Us(t,e,i){try{return t[e](i)}catch{return null}}function yl(t){const e=[];for(;t.parentNode;){const i=_(t,"id");if(i){e.unshift(`#${qs(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${Ut(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function qs(t){return Q(t)?CSS.escape(t):""}function B(...t){let[e,i,s,n,o=!1]=Ws(t);n.length>1&&(n=kl(n)),o!=null&&o.self&&(n=Sl(n)),s&&(n=xl(s,n));for(const a of i)for(const h of e)h.addEventListener(a,n,o);return()=>Jt(e,i,n,o)}function Jt(...t){let[e,i,,s,n=!1]=Ws(t);for(const o of i)for(const a of e)a.removeEventListener(o,s,n)}function et(...t){const[e,i,s,n,o=!1,a]=Ws(t),h=B(e,i,s,u=>{const p=!a||a(u);p&&(h(),n(u,p))},o);return h}function E(t,e,i){return Vs(t).every(s=>s.dispatchEvent(De(e,!0,!0,i)))}function De(t,e=!0,i=!1,s){return Q(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ws(t){return t[0]=Vs(t[0]),Q(t[1])&&(t[1]=t[1].split(" ")),tt(t[2])&&t.splice(2,0,!1),t}function xl(t,e){return i=>{const s=t[0]===">"?ui(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 kl(t){return e=>O(e.detail)?t(e,...e.detail):t(e)}function Sl(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Ao(t){return t&&"addEventListener"in t}function _l(t){return Ao(t)?t:rt(t)}function Vs(t){return O(t)?t.map(_l).filter(Boolean):Q(t)?ui(t):Ao(t)?[t]:R(t)}function Dt(t){return t.pointerType==="touch"||!!t.touches}function qt(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 Al={"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 g(t,e,i,s){const n=R(t);for(const o of n)if(Q(e)){if(e=Ui(e),pt(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,Mt(i)&&!Al[e]?`${i}px`:i||si(i)?i:"",s)}else if(O(e)){const a={};for(const h of e)a[h]=g(o,h);return a}else if(It(e))for(const a in e)g(o,a,e[a],i);return n[0]}const Ui=Tt(t=>{if(x(t,"--"))return t;t=d(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}}),Ys="uk-transition",Gs="transitionend",Js="transitioncanceled";function El(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(R(t).map(n=>new Promise((o,a)=>{for(const u in e)g(n,u);const h=setTimeout(()=>E(n,Gs),i);et(n,[Gs,Js],({type:u})=>{clearTimeout(h),U(n,Ys),g(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),u===Js?a():o(n)},{self:!0}),z(n,Ys),g(n,{transitionProperty:Object.keys(e).map(Ui).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const J={start:El,async stop(t){E(t,Gs),await Promise.resolve()},async cancel(t){E(t,Js),await Promise.resolve()},inProgress(t){return P(t,Ys)}},di="uk-animation",Eo="animationend",qi="animationcanceled";function Co(t,e,i=200,s,n){return Promise.all(R(t).map(o=>new Promise((a,h)=>{P(o,di)&&E(o,qi);const u=[e,di,`${di}-${n?"leave":"enter"}`,s&&`uk-transform-origin-${s}`,n&&`${di}-reverse`],p=setTimeout(()=>E(o,Eo),i);et(o,[Eo,qi],({type:v})=>{clearTimeout(p),v===qi?h():a(o),g(o,"animationDuration",""),U(o,u)},{self:!0}),g(o,"animationDuration",`${i}ms`),z(o,u)})))}const Kt={in:Co,out(t,e,i,s){return Co(t,e,i,s,!0)},inProgress(t){return P(t,di)},cancel(t){E(t,qi)}};function Cl(t){if(document.readyState!=="loading"){t();return}et(document,"DOMContentLoaded",t)}function it(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Io(t){return t=N(t),t.innerHTML="",t}function Xt(t,e){return pt(e)?N(t).innerHTML:ht(Io(t),e)}const Il=Yi("prepend"),ht=Yi("append"),Wi=Yi("before"),Vi=Yi("after");function Yi(t){return function(e,i){var s;const n=R(Q(i)?fe(i):i);return(s=N(e))==null||s[t](...n),To(n)}}function _t(t){R(t).forEach(e=>e.remove())}function Gi(t,e){for(e=rt(Wi(t,e));e.firstElementChild;)e=e.firstElementChild;return ht(e,t),e}function Ks(t,e){return R(R(t).map(i=>i.hasChildNodes()?Gi(M(i.childNodes),e):ht(i,e)))}function fi(t){R(t).map(K).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const Tl=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function fe(t){const e=Tl.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),To(i.content.childNodes)}function To(t){return t.length>1?t:t[0]}function Zt(t,e){if(ii(t))for(e(t),t=t.firstElementChild;t;)Zt(t,e),t=t.nextElementSibling}function N(t,e){return Oo(t)?rt(fe(t)):Fs(t,e)}function Z(t,e){return Oo(t)?R(fe(t)):ui(t,e)}function Oo(t){return Q(t)&&x(t.trim(),"<")}const pe={width:["left","right"],height:["top","bottom"]};function A(t){const e=ii(t)?rt(t).getBoundingClientRect():{height:yt(t),width:Ji(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 j(t,e){e&&g(t,{left:0,top:0});const i=A(t);if(t){const{scrollY:s,scrollX:n}=ae(t),o={height:s,width:n};for(const a in pe)for(const h of pe[a])i[h]+=o[a]}if(!e)return i;for(const s of["left","top"])g(t,s,e[s]-i[s])}function Xs(t){let{top:e,left:i}=j(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=rt(t);let a=o||n;for(;a&&(a===s||a===n)&&g(a,"position")==="static";)a=a.parentNode;if(ii(a)){const h=j(a);e-=h.top+H(g(a,"borderTopWidth")),i-=h.left+H(g(a,"borderLeftWidth"))}return{top:e-H(g(t,"marginTop")),left:i-H(g(t,"marginLeft"))}}function pi(t){t=rt(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+H(g(t,"borderTopWidth")),e[1]+=t.offsetLeft+H(g(t,"borderLeftWidth")),g(t,"position")==="fixed"){const i=ae(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const yt=Po("height"),Ji=Po("width");function Po(t){const e=k(t);return(i,s)=>{if(pt(s)){if(Ni(i))return i[`inner${e}`];if(ti(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=rt(i),s=g(i,t),s=s==="auto"?i[`offset${e}`]:H(s)||0,s-Me(i,t)}else return g(i,t,!s&&s!==0?"":+s+Me(i,t)+"px")}}function Me(t,e,i="border-box"){return g(t,"boxSizing")===i?he(pe[e],s=>H(g(t,`padding-${s}`))+H(g(t,`border-${s}-width`))):0}function Ki(t){for(const e in pe)for(const i in pe[e])if(pe[e][i]===t)return pe[e][1-i];return t}function dt(t,e="width",i=window,s=!1){return Q(t)?he(Pl(t),n=>{const o=Ml(n);return o?Bl(o==="vh"?Nl():o==="vw"?Ji(ae(i)):s?i[`offset${k(e)}`]:A(i)[e],n):n}):H(t)}const Ol=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Pl=Tt(t=>t.toString().replace(/\s/g,"").match(Ol)||[]),Dl=/(?:v[hw]|%)$/,Ml=Tt(t=>(t.match(Dl)||[])[0]);function Bl(t,e){return t*H(e)/100}let gi,Be;function Nl(){return gi||(Be||(Be=N("<div>"),g(Be,{height:"100vh",position:"fixed"}),B(window,"resize",()=>gi=null)),ht(document.body,Be),gi=Be.clientHeight,_t(Be),gi)}const Qt={read:Hl,write:zl,clear:Ll,flush:Do},Xi=[],Zi=[];function Hl(t){return Xi.push(t),Qs(),t}function zl(t){return Zi.push(t),Qs(),t}function Ll(t){Bo(Xi,t),Bo(Zi,t)}let Zs=!1;function Do(){Mo(Xi),Mo(Zi.splice(0)),Zs=!1,(Xi.length||Zi.length)&&Qs()}function Qs(){Zs||(Zs=!0,queueMicrotask(Do))}function Mo(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Bo(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class No{init(){this.positions=[];let e;this.unbind=B(document,"mousemove",i=>e=qt(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=A(e),{left:s,right:n,top:o,bottom:a}=i,[h]=this.positions,u=le(this.positions),p=[h,u];return zi(u,i)?!1:[[{x:s,y:o},{x:n,y:a}],[{x:s,y:a},{x:n,y:o}]].some(b=>{const y=jl(p,b);return y&&zi(y,i)})}}function jl([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:a,y:h}]){const u=(h-o)*(i-t)-(a-n)*(s-e);if(u===0)return!1;const p=((a-n)*(e-o)-(h-o)*(t-n))/u;return p<0?!1:{x:t+p*(i-t),y:e+p*(s-e)}}function Ho(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,a)=>{o.some(h=>h.isIntersecting)&&e(o,a)}:e,i);for(const o of R(t))n.observe(o);return n}const Rl=ue&&window.ResizeObserver;function Qi(t,e,i={box:"border-box"}){if(Rl)return zo(ResizeObserver,t,e,i);const s=[B(window,"load resize",e),B(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(n=>n())}}function tn(t){return{disconnect:B([window,window.visualViewport],"resize",t)}}function en(t,e,i){return zo(MutationObserver,t,e,i)}function zo(t,e,i,s){const n=new t(i);for(const o of R(e))n.observe(o,s);return n}function sn(t){is(t)&&nn(t,{func:"playVideo",method:"play"}),es(t)&&t.play().catch(q)}function ts(t){is(t)&&nn(t,{func:"pauseVideo",method:"pause"}),es(t)&&t.pause()}function Lo(t){is(t)&&nn(t,{func:"mute",method:"setVolume",value:0}),es(t)&&(t.muted=!0)}function jo(t){return es(t)||is(t)}function es(t){return it(t,"video")}function is(t){return it(t,"iframe")&&(Ro(t)||Fo(t))}function Ro(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Fo(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function nn(t,e){await Ul(t),Uo(t,e)}function Uo(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const on="_ukPlayer";let Fl=0;function Ul(t){if(t[on])return t[on];const e=Ro(t),i=Fo(t),s=++Fl;let n;return t[on]=new Promise(o=>{e&&et(t,"load",()=>{const a=()=>Uo(t,{event:"listening",id:s});n=setInterval(a,100),a()}),et(window,"message",o,!1,({data:a})=>{try{return a=JSON.parse(a),e&&(a==null?void 0:a.id)===s&&a.event==="onReady"||i&&Number(a==null?void 0:a.player_id)===s}catch{}}),t.src=`${t.src}${w(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function ql(t,e=0,i=0){return lt(t)?Ns(...me(t).map(s=>{const{top:n,left:o,bottom:a,right:h}=At(s);return{top:n-e,left:o-i,bottom:a+e,right:h+i}}).concat(j(t))):!1}function qo(t,{offset:e=0}={}){const i=lt(t)?ge(t,!1,["hidden"]):[];return i.reduce((a,h,u)=>{const{scrollTop:p,scrollHeight:v,offsetHeight:b}=h,y=At(h),S=v-y.height,{height:T,top:L}=i[u-1]?At(i[u-1]):j(t);let F=Math.ceil(L-y.top-e+p);return e>0&&b<T+e?F+=e:e=0,F>S?(e-=F-S,F=S):F<0&&(e-=F,F=0),()=>s(h,F-p,t,S).then(a)},()=>Promise.resolve())();function s(a,h,u,p){return new Promise(v=>{const b=a.scrollTop,y=n(Math.abs(h)),S=Date.now(),T=ln(a)===a,L=j(u).top+(T?0:b);let F=0,Bt=15;(function Fe(){const Ue=o(vt((Date.now()-S)/y));let Nt=0;i[0]===a&&b+h<p&&(Nt=j(u).top+(T?0:a.scrollTop)-L-A(rn(u)).height),a.scrollTop=b+(h+Nt)*Ue,Ue===1&&(F===Nt||!Bt--)?v():(F=Nt,requestAnimationFrame(Fe))})()})}function n(a){return 40*Math.pow(a,.375)}function o(a){return .5*(1-Math.cos(Math.PI*a))}}function ss(t,e=0,i=0){if(!lt(t))return 0;const s=te(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:a}=At(s),h=n-a,u=pi(t)[0]-pi(s)[0],p=Math.max(0,u-a+e),v=Math.min(h,u+t.offsetHeight-i);return p<v?vt((o-p)/(v-p)):1}function ge(t,e=!1,i=[]){const s=ln(t);let n=hi(t).reverse();n=n.slice(n.indexOf(s)+1);const o=I(n,a=>g(a,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(a=>g(a,"overflow").split(" ").some(h=>w(["auto","scroll",...i],h))&&(!e||a.scrollHeight>At(a).height))).reverse()}function te(...t){return ge(...t)[0]}function me(t){return ge(t,!1,["hidden","clip"])}function At(t){const e=ae(t),i=ln(t),s=!ei(t)||t.contains(i);if(s&&e.visualViewport){let{height:u,width:p,scale:v,pageTop:b,pageLeft:y}=e.visualViewport;return u=Math.round(u*v),p=Math.round(p*v),{height:u,width:p,top:b,left:y,bottom:b+u,right:y+p}}let n=j(s?e:t);if(g(t,"display")==="inline")return n;const{body:o,documentElement:a}=e.document,h=s?i===a||i.clientHeight<o.clientHeight?i:o:t;for(let[u,p,v,b]of[["width","x","left","right"],["height","y","top","bottom"]]){const y=n[u]%1;n[v]+=H(g(h,`border-${v}-width`)),n[u]=n[p]=h[`client${k(u)}`]-(y?y<.5?-y:1-y:0),n[b]=n[u]+n[v]}return n}function rn(t){const{left:e,width:i,top:s}=A(t);for(const n of s?[0,s]:[0]){let o;for(const a of ae(t).document.elementsFromPoint(e+i/2,n))!a.contains(t)&&!P(a,"uk-togglable-leave")&&(an(a,"fixed")&&Wo(hi(t).reverse().find(h=>!h.contains(a)&&!an(h,"static")))<Wo(a)||an(a,"sticky")&&K(a).contains(t))&&(!o||A(o).height<A(a).height)&&(o=a);if(o)return o}}function Wo(t){return H(g(t,"zIndex"))}function an(t,e){return g(t,"position")===e}function ln(t){return ae(t).document.scrollingElement}const Et=[["width","x","left","right"],["height","y","top","bottom"]];function Vo(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},O(e)||(e=[e,e]),j(t,Yo(t,e,i))}function Yo(t,e,i){const s=Go(t,e,i),{boundary:n,viewportOffset:o=0,placement:a}=i;let h=s;for(const[u,[p,,v,b]]of Object.entries(Et)){const y=Wl(t,e[u],o,n,u);if(ns(s,y,u))continue;let S=0;if(a[u]==="flip"){const T=i.attach.target[u];if(T===b&&s[b]<=y[b]||T===v&&s[v]>=y[v])continue;S=Yl(t,e,i,u)[v]-s[v];const L=Vl(t,e[u],o,u);if(!ns(hn(s,S,u),L,u)){if(ns(s,L,u))continue;if(i.recursion)return!1;const F=Gl(t,e,i);if(F&&ns(F,L,1-u))return F;continue}}else if(a[u]==="shift"){const T=j(e[u]),{offset:L}=i;S=vt(vt(s[v],y[v],y[b]-s[p]),T[v]-s[p]+L[u],T[b]-L[u])-s[v]}h=hn(h,S,u)}return h}function Go(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=j(t);for(const[a,[h,,u,p]]of Object.entries(Et)){const v=s.target[a]===s.element[a]?At(e[a]):j(e[a]);o=hn(o,v[u]-o[u]+Jo(s.target[a],p,v[h])-Jo(s.element[a],p,o[h])+ +n[a],a)}return o}function hn(t,e,i){const[,s,n,o]=Et[i],a={...t};return a[n]=t[s]=t[n]+e,a[o]+=e,a}function Jo(t,e,i){return t==="center"?i/2:t===e?i:0}function Wl(t,e,i,s,n){let o=Xo(...Ko(t,e).map(At));return i&&(o[Et[n][2]]+=i,o[Et[n][3]]-=i),s&&(o=Xo(o,j(O(s)?s[n]:s))),o}function Vl(t,e,i,s){const[n,o,a,h]=Et[s],[u]=Ko(t,e),p=At(u);return["auto","scroll"].includes(g(u,`overflow-${o}`))&&(p[a]-=u[`scroll${k(a)}`],p[h]=p[a]+u[`scroll${k(n)}`]),p[a]+=i,p[h]-=i,p}function Ko(t,e){return me(e).filter(i=>i.contains(t))}function Xo(...t){let e={};for(const i of t)for(const[,,s,n]of Et)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function ns(t,e,i){const[,,s,n]=Et[i];return t[s]>=e[s]&&t[n]<=e[n]}function Yl(t,e,{offset:i,attach:s},n){return Go(t,e,{attach:{element:Zo(s.element,n),target:Zo(s.target,n)},offset:Jl(i,n)})}function Gl(t,e,i){return Yo(t,e,{...i,attach:{element:i.attach.element.map(Qo).reverse(),target:i.attach.target.map(Qo).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function Zo(t,e){const i=[...t],s=Et[e].indexOf(t[e]);return~s&&(i[e]=Et[e][1-s%2+2]),i}function Qo(t){for(let e=0;e<Et.length;e++){const i=Et[e].indexOf(t);if(~i)return Et[1-e][i%2+2]}}function Jl(t,e){return t=[...t],t[e]*=-1,t}var Kl=Object.freeze({__proto__:null,$:N,$$:Z,Animation:Kt,Dimensions:zs,MouseTracker:No,Transition:J,addClass:z,after:Vi,append:ht,apply:Zt,assign:Y,attr:_,before:Wi,boxModelAdjust:Me,camelize:m,children:G,clamp:vt,createEvent:De,css:g,data:gt,dimensions:A,each:Ce,empty:Io,endsWith:D,escape:qs,fastdom:Qt,filter:li,find:Fs,findAll:ui,findIndex:I,flipPosition:Ki,fragment:fe,getCoveringElement:rn,getEventPos:qt,getIndex:St,getTargetedElement:Rs,hasAttr:Yt,hasClass:P,hasOwn:l,hasTouch:Ie,height:yt,html:Xt,hyphenate:d,inBrowser:ue,includes:w,index:Ut,intersectRect:Ns,isArray:O,isBoolean:Ee,isDocument:ti,isElement:ii,isEmpty:Hi,isEqual:ni,isFocusable:Fi,isFunction:tt,isInView:ql,isInput:Ri,isNode:ei,isNumber:si,isNumeric:Mt,isObject:It,isPlainObject:Rt,isRtl:ct,isSameSiteAnchor:Pe,isString:Q,isTag:it,isTouch:Dt,isUndefined:pt,isVideo:jo,isVisible:lt,isVoidElement:js,isWindow:Ni,last:le,matches:W,memoize:Tt,mute:Lo,noop:q,observeIntersection:Ho,observeMutation:en,observeResize:Qi,observeViewportResize:tn,off:Jt,offset:j,offsetPosition:pi,offsetViewport:At,on:B,once:et,overflowParents:me,parent:K,parents:hi,pause:ts,pick:Bs,play:sn,pointInRect:zi,pointerCancel:ji,pointerDown:Ot,pointerEnter:de,pointerLeave:Oe,pointerMove:Li,pointerUp:Gt,position:Xs,positionAt:Vo,prepend:Il,propName:Ui,query:bt,queryAll:ci,ready:Cl,remove:_t,removeAttr:oi,removeClass:U,replaceClass:Ls,scrollIntoView:qo,scrollParent:te,scrollParents:ge,scrolledOver:ss,selFocusable:ai,selInput:ri,sortBy:bo,startsWith:x,sumBy:he,swap:Ms,toArray:M,toBoolean:Ds,toEventTargets:Vs,toFloat:H,toNode:rt,toNodes:R,toNumber:Ft,toPx:dt,toWindow:ae,toggleClass:at,trigger:E,ucfirst:k,uniqueBy:wo,unwrap:fi,width:Ji,wrapAll:Gi,wrapInner:Ks}),xt={connected(){z(this.$el,this.$options.id)}};const Xl=["days","hours","minutes","seconds"];var Zl={mixins:[xt],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){_(this.$el,"role",this.role),this.date=H(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||(E(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),E(this.$el,"countdownstop"),this.timer=null)},update(){const t=Ql(this.date);t.total||(this.stop(),this.end||(E(this.$el,"countdownend"),this.end=!0));for(const e of Xl){const i=N(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&&Xt(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function Ql(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 ut={};ut.events=ut.watch=ut.observe=ut.created=ut.beforeConnect=ut.connected=ut.beforeDisconnect=ut.disconnected=ut.destroy=cn,ut.args=function(t,e){return e!==!1&&cn(e||t)},ut.update=function(t,e){return bo(cn(t,tt(e)?{read:e}:e),"order")},ut.props=function(t,e){if(O(e)){const i={};for(const s of e)i[s]=String;e=i}return ut.methods(t,e)},ut.computed=ut.methods=function(t,e){return e?t?{...t,...e}:e:t},ut.i18n=ut.data=function(t,e,i){return i?tr(t,e,i):e?t?function(s){return tr(t,e,s)}:e:t};function tr(t,e,i){return ut.computed(tt(t)?t.call(i,i):t,tt(e)?e.call(i,i):e)}function cn(t,e){return t=t&&!O(t)?[t]:t,e?t?t.concat(e):O(e)?e:[e]:t}function th(t,e){return pt(e)?t:e}function mi(t,e,i){const s={};if(tt(e)&&(e=e.options),e.extends&&(t=mi(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=mi(t,o,i);for(const o in t)n(o);for(const o in e)l(t,o)||n(o);function n(o){s[o]=(ut[o]||th)(t[o],e[o],i)}return s}function Ne(t,e=[]){try{return t?x(t,"{")?JSON.parse(t):e.length&&!w(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!pt(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function un(t,e){return t===Boolean?Ds(e):t===Number?Ft(e):t==="list"?ih(e):t===Object&&Q(e)?Ne(e):t?t(e):e}const eh=/,(?![^(]*\))/;function ih(t){return O(t)?t:Q(t)?t.split(eh).map(e=>Mt(e)?Ft(e):Ds(e.trim())):[t]}function sh(t){t._data={},t._updates=[...t.$options.update||[]],t._disconnect.push(()=>t._updates=t._data=null)}function nh(t,e){t._updates.unshift(e)}function vi(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,Qt.read(()=>{t._connected&&oh(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function oh(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(a=>e.has(a)))continue;let o;i&&(o=i.call(t,t._data,e),o&&Rt(o)&&Y(t._data,o)),s&&o!==!1&&Qt.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Pt(t){return wi(Qi,t,"resize")}function $i(t){return wi(Ho,t)}function dn(t){return wi(en,t)}function os(t={}){return $i({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of R(tt(s)?s(this):s))Z('[loading="lazy"]',o).slice(0,n-1).forEach(a=>oi(a,"loading"));for(const o of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(o)},...t})}function fn(t){return wi((e,i)=>tn(i),t,"resize")}function bi(t){return wi((e,i)=>({disconnect:B(ah(e),"scroll",i,{passive:!0})}),t,"scroll")}function er(t){return{observe(e,i){return{observe:q,unobserve:q,disconnect:B(e,Ot,i,{passive:!0})}},handler(e){if(!Dt(e))return;const i=qt(e),s="tagName"in e.target?e.target:K(e.target);et(document,`${Gt} ${ji} scroll`,n=>{const{x:o,y:a}=qt(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||a&&Math.abs(i.y-a)>100)&&setTimeout(()=>{E(s,"swipe"),E(s,`swipe${rh(i.x,i.y,o,a)}`)})})},...t}}function wi(t,e,i){return{observe:t,handler(){vi(this,i)},...e}}function rh(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}function ah(t){return R(t).map(e=>{const{ownerDocument:i}=e,s=te(e,!0);return s===i.scrollingElement?i:s})}var ir={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},observe:[dn(