franken-ui
Version:
Franken UI is an HTML-first UI component library built on UIkit 3 and extended with LitElement, inspired by shadcn/ui.
3 lines • 239 kB
JavaScript
var __FRANKEN_UI_CORE__=function(k){"use strict";var Vo;const es=globalThis,is=es.ShadowRoot&&(es.ShadyCSS===void 0||es.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fs=Symbol(),co=new WeakMap;let Us=class{constructor(s,o,h){if(this._$cssResult$=!0,h!==Fs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=o}get styleSheet(){let s=this.o;const o=this.t;if(is&&s===void 0){const h=o!==void 0&&o.length===1;h&&(s=co.get(o)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),h&&co.set(o,s))}return s}toString(){return this.cssText}};const uo=d=>new Us(typeof d=="string"?d:d+"",void 0,Fs),sl=(d,...s)=>{const o=d.length===1?d[0]:s.reduce((h,l,m)=>h+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+d[m+1],d[0]);return new Us(o,d,Fs)},fo=(d,s)=>{if(is)d.adoptedStyleSheets=s.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of s){const h=document.createElement("style"),l=es.litNonce;l!==void 0&&h.setAttribute("nonce",l),h.textContent=o.cssText,d.appendChild(h)}},Vs=is?d=>d:d=>d instanceof CSSStyleSheet?(s=>{let o="";for(const h of s.cssRules)o+=h.cssText;return uo(o)})(d):d;const{is:nl,defineProperty:ol,getOwnPropertyDescriptor:rl,getOwnPropertyNames:al,getOwnPropertySymbols:ll,getPrototypeOf:hl}=Object,ne=globalThis,po=ne.trustedTypes,cl=po?po.emptyScript:"",qs=ne.reactiveElementPolyfillSupport,ui=(d,s)=>d,di={toAttribute(d,s){switch(s){case Boolean:d=d?cl:null;break;case Object:case Array:d=d==null?d:JSON.stringify(d)}return d},fromAttribute(d,s){let o=d;switch(s){case Boolean:o=d!==null;break;case Number:o=d===null?null:Number(d);break;case Object:case Array:try{o=JSON.parse(d)}catch{o=null}}return o}},ss=(d,s)=>!nl(d,s),mo={attribute:!0,type:String,converter:di,reflect:!1,useDefault:!1,hasChanged:ss};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),ne.litPropertyMetadata??(ne.litPropertyMetadata=new WeakMap);let me=class extends HTMLElement{static addInitializer(s){this._$Ei(),(this.l??(this.l=[])).push(s)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(s,o=mo){if(o.state&&(o.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(s)&&((o=Object.create(o)).wrapped=!0),this.elementProperties.set(s,o),!o.noAccessor){const h=Symbol(),l=this.getPropertyDescriptor(s,h,o);l!==void 0&&ol(this.prototype,s,l)}}static getPropertyDescriptor(s,o,h){const{get:l,set:m}=rl(this.prototype,s)??{get(){return this[o]},set(p){this[o]=p}};return{get:l,set(p){const w=l==null?void 0:l.call(this);m==null||m.call(this,p),this.requestUpdate(s,w,h)},configurable:!0,enumerable:!0}}static getPropertyOptions(s){return this.elementProperties.get(s)??mo}static _$Ei(){if(this.hasOwnProperty(ui("elementProperties")))return;const s=hl(this);s.finalize(),s.l!==void 0&&(this.l=[...s.l]),this.elementProperties=new Map(s.elementProperties)}static finalize(){if(this.hasOwnProperty(ui("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ui("properties"))){const o=this.properties,h=[...al(o),...ll(o)];for(const l of h)this.createProperty(l,o[l])}const s=this[Symbol.metadata];if(s!==null){const o=litPropertyMetadata.get(s);if(o!==void 0)for(const[h,l]of o)this.elementProperties.set(h,l)}this._$Eh=new Map;for(const[o,h]of this.elementProperties){const l=this._$Eu(o,h);l!==void 0&&this._$Eh.set(l,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const o=[];if(Array.isArray(s)){const h=new Set(s.flat(1/0).reverse());for(const l of h)o.unshift(Vs(l))}else s!==void 0&&o.push(Vs(s));return o}static _$Eu(s,o){const h=o.attribute;return h===!1?void 0:typeof h=="string"?h:typeof s=="string"?s.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var s;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(s=this.constructor.l)==null||s.forEach(o=>o(this))}addController(s){var o;(this._$EO??(this._$EO=new Set)).add(s),this.renderRoot!==void 0&&this.isConnected&&((o=s.hostConnected)==null||o.call(s))}removeController(s){var o;(o=this._$EO)==null||o.delete(s)}_$E_(){const s=new Map,o=this.constructor.elementProperties;for(const h of o.keys())this.hasOwnProperty(h)&&(s.set(h,this[h]),delete this[h]);s.size>0&&(this._$Ep=s)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fo(s,this.constructor.elementStyles),s}connectedCallback(){var s;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(s=this._$EO)==null||s.forEach(o=>{var h;return(h=o.hostConnected)==null?void 0:h.call(o)})}enableUpdating(s){}disconnectedCallback(){var s;(s=this._$EO)==null||s.forEach(o=>{var h;return(h=o.hostDisconnected)==null?void 0:h.call(o)})}attributeChangedCallback(s,o,h){this._$AK(s,h)}_$ET(s,o){var m;const h=this.constructor.elementProperties.get(s),l=this.constructor._$Eu(s,h);if(l!==void 0&&h.reflect===!0){const p=(((m=h.converter)==null?void 0:m.toAttribute)!==void 0?h.converter:di).toAttribute(o,h.type);this._$Em=s,p==null?this.removeAttribute(l):this.setAttribute(l,p),this._$Em=null}}_$AK(s,o){var m,p;const h=this.constructor,l=h._$Eh.get(s);if(l!==void 0&&this._$Em!==l){const w=h.getPropertyOptions(l),y=typeof w.converter=="function"?{fromAttribute:w.converter}:((m=w.converter)==null?void 0:m.fromAttribute)!==void 0?w.converter:di;this._$Em=l,this[l]=y.fromAttribute(o,w.type)??((p=this._$Ej)==null?void 0:p.get(l))??null,this._$Em=null}}requestUpdate(s,o,h){var l;if(s!==void 0){const m=this.constructor,p=this[s];if(h??(h=m.getPropertyOptions(s)),!((h.hasChanged??ss)(p,o)||h.useDefault&&h.reflect&&p===((l=this._$Ej)==null?void 0:l.get(s))&&!this.hasAttribute(m._$Eu(s,h))))return;this.C(s,o,h)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(s,o,{useDefault:h,reflect:l,wrapped:m},p){h&&!(this._$Ej??(this._$Ej=new Map)).has(s)&&(this._$Ej.set(s,p??o??this[s]),m!==!0||p!==void 0)||(this._$AL.has(s)||(this.hasUpdated||h||(o=void 0),this._$AL.set(s,o)),l===!0&&this._$Em!==s&&(this._$Eq??(this._$Eq=new Set)).add(s))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const s=this.scheduleUpdate();return s!=null&&await s,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var h;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[m,p]of this._$Ep)this[m]=p;this._$Ep=void 0}const l=this.constructor.elementProperties;if(l.size>0)for(const[m,p]of l){const{wrapped:w}=p,y=this[m];w!==!0||this._$AL.has(m)||y===void 0||this.C(m,void 0,p,y)}}let s=!1;const o=this._$AL;try{s=this.shouldUpdate(o),s?(this.willUpdate(o),(h=this._$EO)==null||h.forEach(l=>{var m;return(m=l.hostUpdate)==null?void 0:m.call(l)}),this.update(o)):this._$EM()}catch(l){throw s=!1,this._$EM(),l}s&&this._$AE(o)}willUpdate(s){}_$AE(s){var o;(o=this._$EO)==null||o.forEach(h=>{var l;return(l=h.hostUpdated)==null?void 0:l.call(h)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(s)),this.updated(s)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(s){return!0}update(s){this._$Eq&&(this._$Eq=this._$Eq.forEach(o=>this._$ET(o,this[o]))),this._$EM()}updated(s){}firstUpdated(s){}};me.elementStyles=[],me.shadowRootOptions={mode:"open"},me[ui("elementProperties")]=new Map,me[ui("finalized")]=new Map,qs==null||qs({ReactiveElement:me}),(ne.reactiveElementVersions??(ne.reactiveElementVersions=[])).push("2.1.0");const fi=globalThis,ns=fi.trustedTypes,go=ns?ns.createPolicy("lit-html",{createHTML:d=>d}):void 0,Ws="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ks="?"+Kt,ul=`<${Ks}>`,ge=document,pi=()=>ge.createComment(""),mi=d=>d===null||typeof d!="object"&&typeof d!="function",Ys=Array.isArray,vo=d=>Ys(d)||typeof(d==null?void 0:d[Symbol.iterator])=="function",Js=`[
\f\r]`,gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$o=/-->/g,bo=/>/g,ve=RegExp(`>|${Js}(?:([^\\s"'>=/]+)(${Js}*=${Js}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),yo=/'/g,wo=/"/g,ko=/^(?:script|style|textarea|title)$/i,Gs=d=>(s,...o)=>({_$litType$:d,strings:s,values:o}),A=Gs(1),dl=Gs(2),fl=Gs(3),Yt=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),_o=new WeakMap,$e=ge.createTreeWalker(ge,129);function xo(d,s){if(!Ys(d)||!d.hasOwnProperty("raw"))throw Error("invalid template strings array");return go!==void 0?go.createHTML(s):s}const So=(d,s)=>{const o=d.length-1,h=[];let l,m=s===2?"<svg>":s===3?"<math>":"",p=gi;for(let w=0;w<o;w++){const y=d[w];let E,O,T=-1,_=0;for(;_<y.length&&(p.lastIndex=_,O=p.exec(y),O!==null);)_=p.lastIndex,p===gi?O[1]==="!--"?p=$o:O[1]!==void 0?p=bo:O[2]!==void 0?(ko.test(O[2])&&(l=RegExp("</"+O[2],"g")),p=ve):O[3]!==void 0&&(p=ve):p===ve?O[0]===">"?(p=l??gi,T=-1):O[1]===void 0?T=-2:(T=p.lastIndex-O[2].length,E=O[1],p=O[3]===void 0?ve:O[3]==='"'?wo:yo):p===wo||p===yo?p=ve:p===$o||p===bo?p=gi:(p=ve,l=void 0);const H=p===ve&&d[w+1].startsWith("/>")?" ":"";m+=p===gi?y+ul:T>=0?(h.push(E),y.slice(0,T)+Ws+y.slice(T)+Kt+H):y+Kt+(T===-2?w:H)}return[xo(d,m+(d[o]||"<?>")+(s===2?"</svg>":s===3?"</math>":"")),h]};class vi{constructor({strings:s,_$litType$:o},h){let l;this.parts=[];let m=0,p=0;const w=s.length-1,y=this.parts,[E,O]=So(s,o);if(this.el=vi.createElement(E,h),$e.currentNode=this.el.content,o===2||o===3){const T=this.el.content.firstChild;T.replaceWith(...T.childNodes)}for(;(l=$e.nextNode())!==null&&y.length<w;){if(l.nodeType===1){if(l.hasAttributes())for(const T of l.getAttributeNames())if(T.endsWith(Ws)){const _=O[p++],H=l.getAttribute(T).split(Kt),V=/([.?@])?(.*)/.exec(_);y.push({type:1,index:m,name:V[2],strings:H,ctor:V[1]==="."?Ao:V[1]==="?"?Co:V[1]==="@"?Io:$i}),l.removeAttribute(T)}else T.startsWith(Kt)&&(y.push({type:6,index:m}),l.removeAttribute(T));if(ko.test(l.tagName)){const T=l.textContent.split(Kt),_=T.length-1;if(_>0){l.textContent=ns?ns.emptyScript:"";for(let H=0;H<_;H++)l.append(T[H],pi()),$e.nextNode(),y.push({type:2,index:++m});l.append(T[_],pi())}}}else if(l.nodeType===8)if(l.data===Ks)y.push({type:2,index:m});else{let T=-1;for(;(T=l.data.indexOf(Kt,T+1))!==-1;)y.push({type:7,index:m}),T+=Kt.length-1}m++}}static createElement(s,o){const h=ge.createElement("template");return h.innerHTML=s,h}}function be(d,s,o=d,h){var p,w;if(s===Yt)return s;let l=h!==void 0?(p=o._$Co)==null?void 0:p[h]:o._$Cl;const m=mi(s)?void 0:s._$litDirective$;return(l==null?void 0:l.constructor)!==m&&((w=l==null?void 0:l._$AO)==null||w.call(l,!1),m===void 0?l=void 0:(l=new m(d),l._$AT(d,o,h)),h!==void 0?(o._$Co??(o._$Co=[]))[h]=l:o._$Cl=l),l!==void 0&&(s=be(d,l._$AS(d,s.values),l,h)),s}let Eo=class{constructor(s,o){this._$AV=[],this._$AN=void 0,this._$AD=s,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(s){const{el:{content:o},parts:h}=this._$AD,l=((s==null?void 0:s.creationScope)??ge).importNode(o,!0);$e.currentNode=l;let m=$e.nextNode(),p=0,w=0,y=h[0];for(;y!==void 0;){if(p===y.index){let E;y.type===2?E=new Ne(m,m.nextSibling,this,s):y.type===1?E=new y.ctor(m,y.name,y.strings,this,s):y.type===6&&(E=new To(m,this,s)),this._$AV.push(E),y=h[++w]}p!==(y==null?void 0:y.index)&&(m=$e.nextNode(),p++)}return $e.currentNode=ge,l}p(s){let o=0;for(const h of this._$AV)h!==void 0&&(h.strings!==void 0?(h._$AI(s,h,o),o+=h.strings.length-2):h._$AI(s[o])),o++}};class Ne{get _$AU(){var s;return((s=this._$AM)==null?void 0:s._$AU)??this._$Cv}constructor(s,o,h,l){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=s,this._$AB=o,this._$AM=h,this.options=l,this._$Cv=(l==null?void 0:l.isConnected)??!0}get parentNode(){let s=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(s==null?void 0:s.nodeType)===11&&(s=o.parentNode),s}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(s,o=this){s=be(this,s,o),mi(s)?s===rt||s==null||s===""?(this._$AH!==rt&&this._$AR(),this._$AH=rt):s!==this._$AH&&s!==Yt&&this._(s):s._$litType$!==void 0?this.$(s):s.nodeType!==void 0?this.T(s):vo(s)?this.k(s):this._(s)}O(s){return this._$AA.parentNode.insertBefore(s,this._$AB)}T(s){this._$AH!==s&&(this._$AR(),this._$AH=this.O(s))}_(s){this._$AH!==rt&&mi(this._$AH)?this._$AA.nextSibling.data=s:this.T(ge.createTextNode(s)),this._$AH=s}$(s){var m;const{values:o,_$litType$:h}=s,l=typeof h=="number"?this._$AC(s):(h.el===void 0&&(h.el=vi.createElement(xo(h.h,h.h[0]),this.options)),h);if(((m=this._$AH)==null?void 0:m._$AD)===l)this._$AH.p(o);else{const p=new Eo(l,this),w=p.u(this.options);p.p(o),this.T(w),this._$AH=p}}_$AC(s){let o=_o.get(s.strings);return o===void 0&&_o.set(s.strings,o=new vi(s)),o}k(s){Ys(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let h,l=0;for(const m of s)l===o.length?o.push(h=new Ne(this.O(pi()),this.O(pi()),this,this.options)):h=o[l],h._$AI(m),l++;l<o.length&&(this._$AR(h&&h._$AB.nextSibling,l),o.length=l)}_$AR(s=this._$AA.nextSibling,o){var h;for((h=this._$AP)==null?void 0:h.call(this,!1,!0,o);s&&s!==this._$AB;){const l=s.nextSibling;s.remove(),s=l}}setConnected(s){var o;this._$AM===void 0&&(this._$Cv=s,(o=this._$AP)==null||o.call(this,s))}}class $i{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(s,o,h,l,m){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=s,this.name=o,this._$AM=l,this.options=m,h.length>2||h[0]!==""||h[1]!==""?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=rt}_$AI(s,o=this,h,l){const m=this.strings;let p=!1;if(m===void 0)s=be(this,s,o,0),p=!mi(s)||s!==this._$AH&&s!==Yt,p&&(this._$AH=s);else{const w=s;let y,E;for(s=m[0],y=0;y<m.length-1;y++)E=be(this,w[h+y],o,y),E===Yt&&(E=this._$AH[y]),p||(p=!mi(E)||E!==this._$AH[y]),E===rt?s=rt:s!==rt&&(s+=(E??"")+m[y+1]),this._$AH[y]=E}p&&!l&&this.j(s)}j(s){s===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,s??"")}}class Ao extends $i{constructor(){super(...arguments),this.type=3}j(s){this.element[this.name]=s===rt?void 0:s}}class Co extends $i{constructor(){super(...arguments),this.type=4}j(s){this.element.toggleAttribute(this.name,!!s&&s!==rt)}}class Io extends $i{constructor(s,o,h,l,m){super(s,o,h,l,m),this.type=5}_$AI(s,o=this){if((s=be(this,s,o,0)??rt)===Yt)return;const h=this._$AH,l=s===rt&&h!==rt||s.capture!==h.capture||s.once!==h.once||s.passive!==h.passive,m=s!==rt&&(h===rt||l);l&&this.element.removeEventListener(this.name,this,h),m&&this.element.addEventListener(this.name,this,s),this._$AH=s}handleEvent(s){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,s):this._$AH.handleEvent(s)}}class To{constructor(s,o,h){this.element=s,this.type=6,this._$AN=void 0,this._$AM=o,this.options=h}get _$AU(){return this._$AM._$AU}_$AI(s){be(this,s)}}const Po={M:Ws,P:Kt,A:Ks,C:1,L:So,R:Eo,D:vo,V:be,I:Ne,H:$i,N:Co,U:Io,B:Ao,F:To},Zs=fi.litHtmlPolyfillSupport;Zs==null||Zs(vi,Ne),(fi.litHtmlVersions??(fi.litHtmlVersions=[])).push("3.3.0");const Oo=(d,s,o)=>{const h=(o==null?void 0:o.renderBefore)??s;let l=h._$litPart$;if(l===void 0){const m=(o==null?void 0:o.renderBefore)??null;h._$litPart$=l=new Ne(s.insertBefore(pi(),m),m,void 0,o??{})}return l._$AI(d),l};const ye=globalThis;let Be=class extends me{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const s=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=s.firstChild),s}update(s){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(s),this._$Do=Oo(o,this.renderRoot,this.renderOptions)}connectedCallback(){var s;super.connectedCallback(),(s=this._$Do)==null||s.setConnected(!0)}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this._$Do)==null||s.setConnected(!1)}render(){return Yt}};Be._$litElement$=!0,Be.finalized=!0,(Vo=ye.litElementHydrateSupport)==null||Vo.call(ye,{LitElement:Be});const Xs=ye.litElementPolyfillSupport;Xs==null||Xs({LitElement:Be});const pl={_$AK:(d,s,o)=>{d._$AK(s,o)},_$AL:d=>d._$AL};(ye.litElementVersions??(ye.litElementVersions=[])).push("4.2.0");const ml=Object.freeze(Object.defineProperty({__proto__:null,CSSResult:Us,LitElement:Be,ReactiveElement:me,_$LE:pl,_$LH:Po,adoptStyles:fo,css:sl,defaultConverter:di,getCompatibleStyle:Vs,html:A,isServer:!1,mathml:fl,noChange:Yt,notEqual:ss,nothing:rt,render:Oo,supportsAdoptingStyleSheets:is,svg:dl,unsafeCSS:uo},Symbol.toStringTag,{value:"Module"}));const Pt=d=>(s,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(d,s)}):customElements.define(d,s)};const gl={attribute:!0,type:String,converter:di,reflect:!1,hasChanged:ss},Mo=(d=gl,s,o)=>{const{kind:h,metadata:l}=o;let m=globalThis.litPropertyMetadata.get(l);if(m===void 0&&globalThis.litPropertyMetadata.set(l,m=new Map),h==="setter"&&((d=Object.create(d)).wrapped=!0),m.set(o.name,d),h==="accessor"){const{name:p}=o;return{set(w){const y=s.get.call(this);s.set.call(this,w),this.requestUpdate(p,y,d)},init(w){return w!==void 0&&this.C(p,void 0,d,w),w}}}if(h==="setter"){const{name:p}=o;return function(w){const y=this[p];s.call(this,w),this.requestUpdate(p,y,d)}}throw Error("Unsupported decorator location: "+h)};function C(d){return(s,o)=>typeof o=="object"?Mo(d,s,o):((h,l,m)=>{const p=l.hasOwnProperty(m);return l.constructor.createProperty(m,h),p?Object.getOwnPropertyDescriptor(l,m):void 0})(d,s,o)}function U(d){return C({...d,state:!0,attribute:!1})}function vl(d){return(s,o)=>{const h=typeof s=="function"?s:s[o];Object.assign(h,d)}}const Re=(d,s,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof s!="object"&&Object.defineProperty(d,s,o),o);function $l(d,s){return(o,h,l)=>{const m=p=>{var w;return((w=p.renderRoot)==null?void 0:w.querySelector(d))??null};if(s){const{get:p,set:w}=typeof h=="object"?o:l??(()=>{const y=Symbol();return{get(){return this[y]},set(E){this[y]=E}}})();return Re(o,h,{get(){let y=p.call(this);return y===void 0&&(y=m(this),(y!==null||this.hasUpdated)&&w.call(this,y)),y}})}return Re(o,h,{get(){return m(this)}})}}let bl;function yl(d){return(s,o)=>Re(s,o,{get(){return(this.renderRoot??bl??(bl=document.createDocumentFragment())).querySelectorAll(d)}})}function wl(d){return(s,o)=>Re(s,o,{async get(){var h;return await this.updateComplete,((h=this.renderRoot)==null?void 0:h.querySelector(d))??null}})}function kl(d){return(s,o)=>{const{slot:h,selector:l}=d??{},m="slot"+(h?`[name=${h}]`:":not([name])");return Re(s,o,{get(){var y;const p=(y=this.renderRoot)==null?void 0:y.querySelector(m),w=(p==null?void 0:p.assignedElements(d))??[];return l===void 0?w:w.filter(E=>E.matches(l))}})}}function _l(d){return(s,o)=>{const{slot:h}=d??{},l="slot"+(h?`[name=${h}]`:":not([name])");return Re(s,o,{get(){var p;const m=(p=this.renderRoot)==null?void 0:p.querySelector(l);return(m==null?void 0:m.assignedNodes(d))??[]}})}}const xl=Object.freeze(Object.defineProperty({__proto__:null,customElement:Pt,eventOptions:vl,property:C,query:$l,queryAll:yl,queryAssignedElements:kl,queryAssignedNodes:_l,queryAsync:wl,standardProperty:Mo,state:U},Symbol.toStringTag,{value:"Module"}));const Do={CHILD:2},Ho=d=>(...s)=>({_$litDirective$:d,values:s});class Lo{constructor(s){}get _$AU(){return this._$AM._$AU}_$AT(s,o,h){this._$Ct=s,this._$AM=o,this._$Ci=h}_$AS(s,o){return this.update(s,o)}update(s,o){return this.render(...o)}}const{I:Sl}=Po,No=()=>document.createComment(""),bi=(d,s,o)=>{var m;const h=d._$AA.parentNode,l=s===void 0?d._$AB:s._$AA;if(o===void 0){const p=h.insertBefore(No(),l),w=h.insertBefore(No(),l);o=new Sl(p,w,d,d.options)}else{const p=o._$AB.nextSibling,w=o._$AM,y=w!==d;if(y){let E;(m=o._$AQ)==null||m.call(o,d),o._$AM=d,o._$AP!==void 0&&(E=d._$AU)!==w._$AU&&o._$AP(E)}if(p!==l||y){let E=o._$AA;for(;E!==p;){const O=E.nextSibling;h.insertBefore(E,l),E=O}}}return o},we=(d,s,o=d)=>(d._$AI(s,o),d),El={},Al=(d,s=El)=>d._$AH=s,Cl=d=>d._$AH,Qs=d=>{var h;(h=d._$AP)==null||h.call(d,!1,!0);let s=d._$AA;const o=d._$AB.nextSibling;for(;s!==o;){const l=s.nextSibling;s.remove(),s=l}};const Bo=(d,s,o)=>{const h=new Map;for(let l=s;l<=o;l++)h.set(d[l],l);return h},Jt=Ho(class extends Lo{constructor(d){if(super(d),d.type!==Do.CHILD)throw Error("repeat() can only be used in text expressions")}dt(d,s,o){let h;o===void 0?o=s:s!==void 0&&(h=s);const l=[],m=[];let p=0;for(const w of d)l[p]=h?h(w,p):p,m[p]=o(w,p),p++;return{values:m,keys:l}}render(d,s,o){return this.dt(d,s,o).values}update(d,[s,o,h]){const l=Cl(d),{values:m,keys:p}=this.dt(s,o,h);if(!Array.isArray(l))return this.ut=p,m;const w=this.ut??(this.ut=[]),y=[];let E,O,T=0,_=l.length-1,H=0,V=m.length-1;for(;T<=_&&H<=V;)if(l[T]===null)T++;else if(l[_]===null)_--;else if(w[T]===p[H])y[H]=we(l[T],m[H]),T++,H++;else if(w[_]===p[V])y[V]=we(l[_],m[V]),_--,V--;else if(w[T]===p[V])y[V]=we(l[T],m[V]),bi(d,y[V+1],l[T]),T++,V--;else if(w[_]===p[H])y[H]=we(l[_],m[H]),bi(d,l[T],l[_]),_--,H++;else if(E===void 0&&(E=Bo(p,H,V),O=Bo(w,T,_)),E.has(w[T]))if(E.has(w[_])){const wt=O.get(p[H]),Dt=wt!==void 0?l[wt]:null;if(Dt===null){const kt=bi(d,l[T]);we(kt,m[H]),y[H]=kt}else y[H]=we(Dt,m[H]),bi(d,l[T],Dt),l[wt]=null;H++}else Qs(l[_]),_--;else Qs(l[T]),T++;for(;H<=V;){const wt=bi(d,y[V+1]);we(wt,m[H]),y[H++]=wt}for(;T<=_;){const wt=l[T++];wt!==null&&Qs(wt)}return this.ut=p,Al(d,y),Yt}});class tn extends Lo{constructor(s){if(super(s),this.it=rt,s.type!==Do.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(s){if(s===rt||s==null)return this._t=void 0,this.it=s;if(s===Yt)return s;if(typeof s!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(s===this.it)return this._t;this.it=s;const o=[s];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}tn.directiveName="unsafeHTML",tn.resultType=1;const Ro=Ho(tn);function zo(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var os={exports:{}};var Il=os.exports,jo;function Tl(){return jo||(jo=1,function(d,s){(function(o,h){d.exports=h()})(Il,function(){const{hasOwnProperty:o,toString:h}=Object.prototype;function l(t,e){return o.call(t,e)}const m=/\B([A-Z])/g,p=Ht(t=>t.replace(m,"-$1").toLowerCase()),w=/-(\w)/g,y=Ht(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(w,(e,i)=>i.toUpperCase())),E=Ht(t=>t.charAt(0).toUpperCase()+t.slice(1));function O(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function T(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function _(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function H(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:V,from:wt}=Array,{assign:Dt}=Object;function kt(t){return typeof t=="function"}function ae(t){return t!==null&&typeof t=="object"}function xi(t){return h.call(t)==="[object Object]"}function hs(t){return ae(t)&&t===t.window}function Si(t){return rn(t)===9}function Ei(t){return rn(t)>=1}function Fe(t){return rn(t)===1}function rn(t){return!hs(t)&&ae(t)&&t.nodeType}function Ue(t){return typeof t=="boolean"}function st(t){return typeof t=="string"}function Ai(t){return typeof t=="number"}function Gt(t){return Ai(t)||st(t)&&!isNaN(t-parseFloat(t))}function cs(t){return!(V(t)?t.length:ae(t)&&Object.keys(t).length)}function pt(t){return t===void 0}function an(t){return Ue(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Zt(t){const e=Number(t);return isNaN(e)?!1:e}function F(t){return parseFloat(t)||0}function at(t){return t&&q(t)[0]}function q(t){return Ei(t)?[t]:Array.from(t||[]).filter(Ei)}function _e(t){if(hs(t))return t;t=at(t);const e=Si(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Ve(t,e){return t===e||ae(t)&&ae(e)&&Object.keys(t).length===Object.keys(e).length&&qe(t,(i,n)=>i===e[n])}function ln(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),n=>n===e?i:e)}function xe(t){return t[t.length-1]}function qe(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function qo(t,e){return t.slice().sort(({[e]:i=0},{[e]:n=0})=>i>n?1:n>i?-1:0)}function Se(t,e){return t.reduce((i,n)=>i+F(kt(e)?e(n):n[e]),0)}function Wo(t,e){const i=new Set;return t.filter(({[e]:n})=>i.has(n)?!1:i.add(n))}function hn(t,e){return e.reduce((i,n)=>({...i,[n]:t[n]}),{})}function ct(t,e=0,i=1){return Math.min(Math.max(Zt(t)||0,e),i)}function ut(){}function cn(...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 us(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function un(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 Ko(t,e){t={...t};for(const i in t)t=t[i]>e[i]?un(t,i,e[i]):t;return t}function gh(t,e){t=Ko(t,e);for(const i in t)t=t[i]<e[i]?un(t,i,e[i]):t;return t}const dn={ratio:un,contain:Ko,cover:gh};function Et(t,e,i=0,n=!1){e=q(e);const{length:r}=e;return r?(t=Gt(t)?Zt(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?r-1:e.indexOf(at(t)),n?ct(t,0,r-1):(t%=r,t<0?t+r:t)):-1}function Ht(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function j(t,...e){for(const i of q(t)){const n=Ee(e).filter(r=>!N(i,r));n.length&&i.classList.add(...n)}}function Z(t,...e){for(const i of q(t)){const n=Ee(e).filter(r=>N(i,r));n.length&&i.classList.remove(...n)}}function fn(t,e,i){i=Ee(i),e=Ee(e).filter(n=>!_(i,n)),Z(t,e),j(t,i)}function N(t,e){return[e]=Ee(e),q(t).some(i=>i.classList.contains(e))}function et(t,e,i){const n=Ee(e);pt(i)||(i=!!i);for(const r of q(t))for(const a of n)r.classList.toggle(a,i)}function Ee(t){return t?V(t)?t.map(Ee).flat():String(t).split(" ").filter(Boolean):[]}function z(t,e,i){var n;if(ae(e)){for(const r in e)z(t,r,e[r]);return}if(pt(i))return(n=at(t))==null?void 0:n.getAttribute(e);for(const r of q(t))i===null?Ci(r,e):r.setAttribute(e,i)}function Xt(t,e){return q(t).some(i=>i.hasAttribute(e))}function Ci(t,e){q(t).forEach(i=>i.removeAttribute(e))}function vt(t,e){for(const i of[e,`data-${e}`])if(Xt(t,i))return z(t,i)}const Ae=typeof window<"u",mt=Ae&&document.dir==="rtl",We=Ae&&"ontouchstart"in window,Ke=Ae&&window.PointerEvent,At=Ke?"pointerdown":We?"touchstart":"mousedown",Ye=Ke?"pointermove":We?"touchmove":"mousemove",Qt=Ke?"pointerup":We?"touchend":"mouseup",le=Ke?"pointerenter":We?"":"mouseenter",he=Ke?"pointerleave":We?"":"mouseleave",Ii=Ke?"pointercancel":"touchcancel",vh={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 pn(t){return q(t).some(e=>vh[e.tagName.toLowerCase()])}const $h=Ae&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function ht(t){return q(t).some(e=>$h.call(e))}const Je="input,select,textarea,button";function Ti(t){return q(t).some(e=>K(e,Je))}const Ge=`${Je},a[href],[tabindex]`;function Pi(t){return K(t,Ge)}function X(t){var e;return(e=at(t))==null?void 0:e.parentElement}function Oi(t,e){return q(t).filter(i=>K(i,e))}function K(t,e){return q(t).some(i=>i.matches(e))}function Ze(t,e){const i=[];for(;t=X(t);)(!e||K(t,e))&&i.push(t);return i}function Y(t,e){t=at(t);const i=t?wt(t.children):[];return e?Oi(i,e):i}function te(t,e){return e?q(t).indexOf(at(e)):Y(X(t)).indexOf(t)}function Xe(t){return t=at(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function ds(t){if(Xe(t)){const{hash:e,ownerDocument:i}=at(t),n=decodeURIComponent(e).slice(1);return n?i.getElementById(n)||i.getElementsByName(n)[0]:i.documentElement}}function _t(t,e){return mn(t,Yo(t,e))}function Mi(t,e){return Di(t,Yo(t,e))}function mn(t,e){return at(Zo(t,at(e),"querySelector"))}function Di(t,e){return q(Zo(t,at(e),"querySelectorAll"))}function Yo(t,e=document){return Si(e)||Jo(t).isContextSelector?e:e.ownerDocument}const bh=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,yh=/(\([^)]*\)|[^,])+/g,Jo=Ht(t=>{let e=!1;if(!t||!st(t))return{};const i=[];for(let n of t.match(yh))n=n.trim().replace(bh,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),wh=/(\([^)]*\)|\S)*/,Go=Ht(t=>{t=t.slice(1).trim();const[e]=t.match(wh);return[e,t.slice(e.length+1)]});function Zo(t,e=document,i){var n;const r=Jo(t);if(!r.isContextSelector)return r.selector?gn(e,i,r.selector):t;t="";const a=r.selectors.length===1;for(let c of r.selectors){let u,f=e;if(c[0]==="!"&&([u,c]=Go(c),f=(n=e.parentElement)==null?void 0:n.closest(u),!c&&a)||f&&c[0]==="-"&&([u,c]=Go(c),f=f.previousElementSibling,f=K(f,u)?f:null,!c&&a))return f;if(f){if(a)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${te(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),gn(f,i,c);t+=`${t?",":""}${kh(f)} ${c}`}}return Si(e)||(e=e.ownerDocument),gn(e,i,t)}function gn(t,e,i){try{return t[e](i)}catch{return null}}function kh(t){const e=[];for(;t.parentNode;){const i=z(t,"id");if(i){e.unshift(`#${vn(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${te(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function vn(t){return st(t)?CSS.escape(t):""}function R(...t){let[e,i,n,r,a=!1]=$n(t);r.length>1&&(r=xh(r)),a!=null&&a.self&&(r=Sh(r)),n&&(r=_h(n,r));for(const c of i)for(const u of e)u.addEventListener(c,r,a);return()=>Qe(e,i,r,a)}function Qe(...t){let[e,i,,n,r=!1]=$n(t);for(const a of i)for(const c of e)c.removeEventListener(a,n,r)}function tt(...t){const[e,i,n,r,a=!1,c]=$n(t),u=R(e,i,n,f=>{const g=!c||c(f);g&&(u(),r(f,g))},a);return u}function I(t,e,i){return bn(t).every(n=>n.dispatchEvent(ti(e,!0,!0,i)))}function ti(t,e=!0,i=!1,n){return st(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:n})),t}function $n(t){return t[0]=bn(t[0]),st(t[1])&&(t[1]=t[1].split(" ")),kt(t[2])&&t.splice(2,0,!1),t}function _h(t,e){return i=>{const n=t[0]===">"?Di(t,i.currentTarget).reverse().find(r=>r.contains(i.target)):i.target.closest(t);n&&(i.current=n,e.call(this,i),delete i.current)}}function xh(t){return e=>V(e.detail)?t(e,...e.detail):t(e)}function Sh(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Xo(t){return t&&"addEventListener"in t}function Eh(t){return Xo(t)?t:at(t)}function bn(t){return V(t)?t.map(Eh).filter(Boolean):st(t)?Di(t):Xo(t)?[t]:q(t)}function Lt(t){return t.pointerType==="touch"||!!t.touches}function jt(t){var e,i;const{clientX:n,clientY:r}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:n,y:r}}const Ah={"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 v(t,e,i,n){const r=q(t);for(const a of r)if(st(e)){if(e=fs(e),pt(i))return getComputedStyle(a).getPropertyValue(e);a.style.setProperty(e,Gt(i)&&!Ah[e]&&!Qo(e)?`${i}px`:i||Ai(i)?i:"",n)}else if(V(e)){const c={};for(const u of e)c[u]=v(a,u);return c}else if(ae(e))for(const c in e)v(a,c,e[c],i);return r[0]}function qt(t,e){for(const i in e)v(t,i,"")}const fs=Ht(t=>{if(Qo(t))return t;t=p(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}});function Qo(t){return O(t,"--")}const yn="uk-transition",wn="transitionend",kn="transitioncanceled";function Ch(t,e,i=400,n="linear",r){return i=Math.round(i),Promise.all(q(t).map(a=>new Promise((c,u)=>{r||a.offsetHeight;const f=setTimeout(()=>I(a,wn),i);tt(a,[wn,kn],({type:$})=>{clearTimeout(f),Z(a,yn),qt(a,g),$===kn?u():c(a)},{self:!0}),j(a,yn);const g={transitionProperty:Object.keys(e).map(fs).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:n};v(a,{...g,...e})})))}const J={start:Ch,async stop(t){I(t,wn),await Promise.resolve()},async cancel(t){I(t,kn),await Promise.resolve()},inProgress(t){return N(t,yn)}},Hi="uk-anmt",tr="animationend",ps="animationcanceled";function er(t,e,i=200,n,r){return Promise.all(q(t).map(a=>new Promise((c,u)=>{N(a,Hi)&&I(a,ps);const f=[e,Hi,`${Hi}-${r?"leave":"enter"}`,n&&`uk-transform-origin-${n}`,r&&`${Hi}-reverse`],g=setTimeout(()=>I(a,tr),i);tt(a,[tr,ps],({type:$})=>{clearTimeout(g),$===ps?u():c(a),v(a,"animationDuration",""),Z(a,f)},{self:!0}),v(a,"animationDuration",`${i}ms`),j(a,f)})))}const ce={in:er,out(t,e,i,n){return er(t,e,i,n,!0)},inProgress(t){return N(t,Hi)},cancel(t){I(t,ps)}};function Ih(t){if(document.readyState!=="loading"){t();return}tt(document,"DOMContentLoaded",t)}function it(t,...e){return e.some(i=>{var n;return((n=t==null?void 0:t.tagName)==null?void 0:n.toLowerCase())===i.toLowerCase()})}function ir(t){return t=L(t),t&&(t.innerHTML=""),t}function ee(t,e){return pt(e)?L(t).innerHTML:nt(ir(t),e)}const Th=vs("prepend"),nt=vs("append"),ms=vs("before"),gs=vs("after");function vs(t){return function(e,i){var n;const r=q(st(i)?ie(i):i);return(n=L(e))==null||n[t](...r),sr(r)}}function $t(t){q(t).forEach(e=>e.remove())}function Li(t,e){for(e=at(ms(t,e));e.firstElementChild;)e=e.firstElementChild;return nt(e,t),e}function _n(t,e){return q(q(t).map(i=>i.hasChildNodes()?Li(wt(i.childNodes),e):nt(i,e)))}function Ni(t){q(t).map(X).filter((e,i,n)=>n.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const Ph=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function ie(t){const e=Ph.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),sr(i.content.childNodes)}function sr(t){return t.length>1?t:t[0]}function ue(t,e){if(Fe(t))for(e(t),t=t.firstElementChild;t;)ue(t,e),t=t.nextElementSibling}function L(t,e){return nr(t)?at(ie(t)):mn(t,e)}function Q(t,e){return nr(t)?q(ie(t)):Di(t,e)}function nr(t){return st(t)&&O(t.trim(),"<")}const Ce={width:["left","right"],height:["top","bottom"]};function P(t){const e=Fe(t)?at(t).getBoundingClientRect():{height:bt(t),width:$s(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 W(t,e){e&&v(t,{left:0,top:0});const i=P(t);if(t){const{scrollY:n,scrollX:r}=_e(t),a={height:n,width:r};for(const c in Ce)for(const u of Ce[c])i[u]+=a[c]}if(!e)return i;for(const n of["left","top"])v(t,n,e[n]-i[n])}function xn(t){let{top:e,left:i}=W(t);const{ownerDocument:{body:n,documentElement:r},offsetParent:a}=at(t);let c=a||r;for(;c&&(c===n||c===r)&&v(c,"position")==="static";)c=c.parentNode;if(Fe(c)){const u=W(c);e-=u.top+F(v(c,"borderTopWidth")),i-=u.left+F(v(c,"borderLeftWidth"))}return{top:e-F(v(t,"marginTop")),left:i-F(v(t,"marginLeft"))}}function Bi(t){t=at(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+F(v(t,"borderTopWidth")),e[1]+=t.offsetLeft+F(v(t,"borderLeftWidth")),v(t,"position")==="fixed"){const i=_e(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const bt=or("height"),$s=or("width");function or(t){const e=E(t);return(i,n)=>{if(pt(n)){if(hs(i))return i[`inner${e}`];if(Si(i)){const r=i.documentElement;return Math.max(r[`offset${e}`],r[`scroll${e}`])}return i=at(i),n=v(i,t),n=n==="auto"?i[`offset${e}`]:F(n)||0,n-Sn(i,t)}else return v(i,t,!n&&n!==0?"":+n+Sn(i,t)+"px")}}function Sn(t,e,i="border-box"){return v(t,"boxSizing")===i?Se(Ce[e],n=>F(v(t,`padding-${n}`))+F(v(t,`border-${n}-width`))):0}function bs(t){for(const e in Ce)for(const i in Ce[e])if(Ce[e][i]===t)return Ce[e][1-i];return t}function ft(t,e="width",i=window,n=!1){return st(t)?Se(Mh(t),r=>{const a=Hh(r);return a?Lh(a==="vh"?Nh():a==="vw"?$s(_e(i)):n?i[`offset${E(e)}`]:P(i)[e],r):r}):F(t)}const Oh=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Mh=Ht(t=>t.toString().replace(/\s/g,"").match(Oh)||[]),Dh=/(?:v[hw]|%)$/,Hh=Ht(t=>(t.match(Dh)||[])[0]);function Lh(t,e){return t*F(e)/100}let Ri,ei;function Nh(){return Ri||(ei||(ei=L("<div>"),v(ei,{height:"100vh",position:"fixed"}),R(window,"resize",()=>Ri=null)),nt(document.body,ei),Ri=ei.clientHeight,$t(ei),Ri)}const de={read:Bh,write:Rh,clear:zh,flush:rr},ys=[],ws=[];function Bh(t){return ys.push(t),An(),t}function Rh(t){return ws.push(t),An(),t}function zh(t){lr(ys,t),lr(ws,t)}let En=!1;function rr(){ar(ys),ar(ws.splice(0)),En=!1,(ys.length||ws.length)&&An()}function An(){En||(En=!0,queueMicrotask(rr))}function ar(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function lr(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class hr{init(){this.positions=[];let e;this.unbind=R(document,"mousemove",i=>e=jt(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=P(e),{left:n,right:r,top:a,bottom:c}=i,[u]=this.positions,f=xe(this.positions),g=[u,f];return us(f,i)?!1:[[{x:n,y:a},{x:r,y:c}],[{x:n,y:c},{x:r,y:a}]].some(b=>{const x=jh(g,b);return x&&us(x,i)})}}function jh([{x:t,y:e},{x:i,y:n}],[{x:r,y:a},{x:c,y:u}]){const f=(u-a)*(i-t)-(c-r)*(n-e);if(f===0)return!1;const g=((c-r)*(e-a)-(u-a)*(t-r))/f;return g<0?!1:{x:t+g*(i-t),y:e+g*(n-e)}}function cr(t,e,i={},{intersecting:n=!0}={}){const r=new IntersectionObserver(n?(a,c)=>{a.some(u=>u.isIntersecting)&&e(a,c)}:e,i);for(const a of q(t))r.observe(a);return r}const Fh=Ae&&window.ResizeObserver;function ks(t,e,i={box:"border-box"}){if(Fh)return ur(ResizeObserver,t,e,i);const n=[R(window,"load resize",e),R(document,"loadedmetadata load",e,!0)];return{disconnect:()=>n.map(r=>r())}}function Cn(t){return{disconnect:R([window,window.visualViewport],"resize",t)}}function In(t,e,i){return ur(MutationObserver,t,e,i)}function ur(t,e,i,n){const r=new t(i);for(const a of q(e))r.observe(a,n);return r}function Tn(t){On(t)&&Mn(t,{func:"playVideo",method:"play"}),Pn(t)&&t.play().catch(ut)}function dr(t){On(t)&&t[_s]&&Mn(t,{func:"pauseVideo",method:"pause"}),Pn(t)&&t.pause()}function fr(t){On(t)&&Mn(t,{func:"mute",method:"setVolume",value:0}),Pn(t)&&(t.muted=!0)}function Pn(t){return it(t,"video")}function On(t){return it(t,"iframe")&&(pr(t)||mr(t))}function pr(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function mr(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function Mn(t,e){await Vh(t),gr(t,e)}function gr(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const _s="_ukPlayer";let Uh=0;function Vh(t){if(t[_s])return t[_s];const e=pr(t),i=mr(t),n=++Uh;let r;return t[_s]=new Promise(a=>{e&&tt(t,"load",()=>{const c=()=>gr(t,{event:"listening",id:n});r=setInterval(c,100),c()}),tt(window,"message",a,!1,({data:c})=>{try{return c=JSON.parse(c),e&&(c==null?void 0:c.id)===n&&c.event==="onReady"||i&&Number(c==null?void 0:c.player_id)===n}catch{}}),t.src=`${t.src}${_(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${n}`}`}).then(()=>clearInterval(r))}function zi(t,e=0,i=0){return ht(t)?cn(...Te(t).map(n=>{const{top:r,left:a,bottom:c,right:u}=Ct(n);return{top:r-e,left:a-i,bottom:c+e,right:u+i}}).concat(W(t))):!1}function vr(t,{offset:e=0}={}){const i=ht(t)?ii(t,!1,["hidden"]):[];return i.reduce((c,u,f)=>{const{scrollTop:g,scrollHeight:$,offsetHeight:b}=u,x=Ct(u),M=$-x.height,{height:D,top:S}=i[f-1]?Ct(i[f-1]):W(t);let B=Math.ceil(S-x.top-e+g);return e>0&&b<D+e?B+=e:e=0,B>M?(e-=B-M,B=M):B<0&&(e-=B,B=0),()=>n(u,B-g,t,M).then(c)},()=>Promise.resolve())();function n(c,u,f,g){return new Promise($=>{const b=c.scrollTop,x=r(Math.abs(u)),M=Date.now(),D=Ln(c)===c,S=W(f).top+(D?0:b);let B=0,lt=15;(function yt(){const Nt=a(ct((Date.now()-M)/x));let Bt=0;i[0]===c&&b+u<g&&(Bt=W(f).top+(D?0:c.scrollTop)-S-P(Dn(f)).height),v(c,"scrollBehavior")!=="auto"&&v(c,"scrollBehavior","auto"),c.scrollTop=b+(u+Bt)*Nt,v(c,"scrollBehavior",""),Nt===1&&(B===Bt||!lt--)?$():(B=Bt,requestAnimationFrame(yt))})()})}function r(c){return 40*Math.pow(c,.375)}function a(c){return .5*(1-Math.cos(Math.PI*c))}}function xs(t,e=0,i=0){if(!ht(t))return 0;const n=Ie(t,!0),{scrollHeight:r,scrollTop:a}=n,{height:c}=Ct(n),u=r-c,f=Bi(t)[0]-Bi(n)[0],g=Math.max(0,f-c+e),$=Math.min(u,f+t.offsetHeight-i);return g<$?ct((a-g)/($-g)):1}function ii(t,e=!1,i=[]){const n=Ln(t);let r=Ze(t).reverse();r=r.slice(r.indexOf(n)+1);const a=H(r,c=>v(c,"position")==="fixed");return~a&&(r=r.slice(a)),[n].concat(r.filter(c=>v(c,"overflow").split(" ").some(u=>_(["auto","scroll",...i],u))&&(!e||c.scrollHeight>Ct(c).height))).reverse()}function Ie(...t){return ii(...t)[0]}function Te(t){return ii(t,!1,["hidden","clip"])}function Ct(t){const e=_e(t),i=Ln(t),n=!Ei(t)||t.contains(i);if(n&&e.visualViewport){let{height:f,width:g,scale:$,pageTop:b,pageLeft:x}=e.visualViewport;return f=Math.round(f*$),g=Math.round(g*$),{height:f,width:g,top:b,left:x,bottom:b+f,right:x+g}}let r=W(n?e:t);if(v(t,"display")==="inline")return r;const{body:a,documentElement:c}=e.document,u=n?i===c||i.clientHeight<a.clientHeight?i:a:t;for(let[f,g,$,b]of[["width","x","left","right"],["height","y","top","bottom"]]){const x=r[f]%1;r[$]+=F(v(u,`border-${$}-width`)),r[f]=r[g]=u[`client${E(f)}`]-(x?x<.5?-x:1-x:0),r[b]=r[f]+r[$]}return r}function Dn(t){const{document:e}=_e(t);t=t||e.body;const{left:i,width:n,top:r}=P(t);for(const a of r?[0,r]:[0]){let c;for(const u of e.elementsFromPoint(i+n/2,a))!u.contains(t)&&!N(u,"uk-togglable-leave")&&(Hn(u,"fixed")&&$r(Ze(t).reverse().find(f=>!f.contains(u)&&!Hn(f,"static")))<$r(u)||Hn(u,"sticky")&&(!t||X(u).contains(t)))&&(!c||P(c).height<P(u).height)&&(c=u);if(c)return c}}function $r(t){return F(v(t,"zIndex"))}function Hn(t,e){return v(t,"position")===e}function Ln(t){return _e(t).document.scrollingElement}const It=[["width","x","left","right"],["height","y","top","bottom"]];function br(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},V(e)||(e=[e,e]),W(t,yr(t,e,i))}function yr(t,e,i){const n=wr(t,e,i),{boundary:r,viewportOffset:a=0,placement:c}=i;let u=n;for(const[f,[g,,$,b]]of Object.entries(It)){const x=qh(t,e[f],a,r,f);if(Ss(n,x,f))continue;let M=0;if(c[f]==="flip"){const D=i.attach.target[f];if(D===b&&n[b]<=x[b]||D===$&&n[$]>=x[$])continue;M=Kh(t,e,i,f)[$]-n[$];const S=Wh(t,e[f],a,f);if(!Ss(Nn(n,M,f),S,f)){if(Ss(n,S,f))continue;if(i.recursion)return!1;const B=Yh(t,e,i);if(B&&Ss(B,S,1-f))return B;continue}}else if(c[f]==="shift"){const D=W(e[f]),{offset:S}=i;M=ct(ct(n[$],x[$],x[b]-n[g]),D[$]-n[g]+S[f],D[b]-S[f])-n[$]}u=Nn(u,M,f)}return u}function wr(t,e,i){let{attach:n,offset:r}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},a=W(t);for(const[c,[u,,f,g]]of Object.entries(It)){const $=n.target[c]===n.element[c]?Ct(e[c]):W(e[c]);a=Nn(a,$[f]-a[f]+kr(n.target[c],g,$[u])-kr(n.element[c],g,a[u])+ +r[c],c)}return a}function Nn(t,e,i){const[,n,r,a]=It[i],c={...t};return c[r]=t[n]=t[r]+e,c[a]+=e,c}function kr(t,e,i){return t==="center"?i/2:t===e?i:0}function qh(t,e,i,n,r){let a=xr(..._r(t,e).map(Ct));return i&&(a[It[r][2]]+=i,a[It[r][3]]-=i),n&&(a=xr(a,W(V(n)?n[r]:n))),a}function Wh(t,e,i,n){const[r,a,c,u]=It[n],[f]=_r(t,e),g=Ct(f);return["auto","scroll"].includes(v(f,`overflow-${a}`))&&(g[c]-=f[`scroll${E(c)}`],g[u]=g[c]+f[`scroll${E(r)}`]),g[c]+=i,g[u]-=i,g}function _r(t,e){return Te(e).filter(i=>i.contains(t))}function xr(...t){let e={};for(const i of t)for(const[,,n,r]of It)e[n]=Math.max(e[n]||0,i[n]),e[r]=Math.min(...[e[r],i[r]].filter(Boolean));return e}function Ss(t,e,i){const[,,n,r]=It[i];return t[n]>=e[n]&&t[r]<=e[r]}function Kh(t,e,{offset:i,attach:n},r){return wr(t,e,{attach:{element:Sr(n.element,r),target:Sr(n.target,r)},offset:Jh(i,r)})}function Yh(t,e,i){return yr(t,e,{...i,attach:{element:i.attach.element.map(Er).reverse(),target:i.attach.target.map(Er).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function Sr(t,e){const i=[...t],n=It[e].indexOf(t[e]);return~n&&(i[e]=It[e][1-n%2+2]),i}function Er(t){for(let e=0;e<It.length;e++){const i=It[e].indexOf(t);if(~i)return It[1-e][i%2+2]}}function Jh(t,e){return t=[...t],t[e]*=-1,t}var Gh=Object.freeze({__proto__:null,$:L,$$:Q,Animation:ce,Dimensions:dn,MouseTracker:hr,Transition:J,addClass:j,after:gs,append:nt,apply:ue,assign:Dt,attr:z,before:ms,boxModelAdjust:Sn,camelize:y,children:Y,clamp:ct,createEvent:ti,css:v,data:vt,dimensions:P,each:qe,empty:ir,endsWith:T,escape:vn,fastdom:de,filter:Oi,find:mn,findAll:Di,findIndex:H,flipPosition:bs,fragment:ie,getCoveringElement:Dn,getEventPos:jt,getIndex:Et,getTargetedElement:ds,hasAttr:Xt,hasClass:N,hasOwn:l,hasTouch:We,height:bt,html:ee,hyphenate:p,inBrowser:Ae,includes:_,index:te,intersectRect:cn,isArray:V,isBoolean:Ue,isDocument:Si,isElement:Fe,isEmpty:cs,isEqual:Ve,isFocusable:Pi,isFunction:kt,isInView:zi,isInput:Ti,isNode:Ei,isNumber:Ai,isNumeric:Gt,isObject:ae,isPlainObject:xi,isRtl:mt,isSameSiteAnchor:Xe,isString:st,isTag:it,isTouch:Lt,isUndefined:pt,isVisible:ht,isVoidElement:pn,isWindow:hs,last:xe,matches:K,memoize:Ht,mute:fr,noop:ut,observeIntersection:cr,observeMutation:In,observeResize:ks,observeViewportResize:Cn,off:Qe,offset:W,offsetPosition:Bi,offsetViewport:Ct,on:R,once:tt,overflowParents:Te,parent:X,parents:Ze,pause:dr,pick:hn,play:Tn,pointInRect:us,pointerCancel:Ii,pointerDown:At,pointerEnter:le,pointerLeave:he,pointerMove:Ye,pointerUp:Qt,position:xn,positionAt:br,prepend:Th,propName:fs,query:_t,queryAll:Mi,ready:Ih,remove:$t,removeAttr:Ci,removeClass:Z,replaceClass:fn,resetProps:qt,scrollIntoView:vr,scrollParent:Ie,scrollParents:ii,scrolledOver:xs,selFocusable:Ge,selInput:Je,sortBy:qo,startsWith:O,sumBy:Se,swap:ln,toArray:wt,toBoolean:an,toEventTargets:bn,toFloat:F,toNode:at,toNodes:q,toNumber:Zt,toPx:ft,toWindow:_e,toggleClass:et,trigger:I,ucfirst:E,uniqueBy:Wo,unwrap:Ni,width:$s,wrapAll:Li,wrapInner:_n});const dt={};dt.events=dt.watch=dt.observe=dt.created=dt.beforeConnect=dt.connected=dt.beforeDisconnect=dt.disconnected=dt.destroy=Bn,dt.args=function(t,e){return e!==!1&&Bn(e||t)},dt.update=function(t,e){return qo(Bn(t,kt(e)?{read:e}:e),"order")},dt.props=function(t,e){if(V(e)){const i={};for(const n of e)i[n]=String;e=i}return dt.methods(t,e)},dt.computed=dt.methods=function(t,e){return e?t?{...t,...e}:e:t},dt.i18n=dt.data=function(t,e,i){return i?Ar(t,e,i):e?t?function(n){return Ar(t,e,n)}:e:t};function Ar(t,e,i){return dt.computed(kt(t)?t.call(i,i):t,kt(e)?e.call(i,i):e)}function Bn(t,e){return t=t&&!V(t)?[t]:t,e?t?t.concat(e):V(e)?e:[e]:t}function Zh(t,e){return pt(e)?t:e}function ji(t,e,i){const n={};if(kt(e)&&(e=e.options),e.extends&&(t=ji(t,e.extends,i)),e.mixins)for(const a of e.mixins)t=ji(t,a,i);for(const a in t)r(a);for(const a in e)l(t,a)||r(a);function r(a){n[a]=(dt[a]||Zh)(t[a],e[a],i)}return n}function si(t,e=[]){try{return t?O(t,"{")?JSON.parse(t):e.length&&!_(t,":")?{[e[0]]:t}:t.split(";").reduce((i,n)=>{const[r,a]=n.split(/:(.*)/);return r&&!pt(a)&&(i[r.trim()]=a.trim()),i},{}):{}}catch{return{}}}function Rn(t,e){return t===Boolean?an(e):t===Number?Zt(e):t==="list"?Qh(e):t===Object&&st(e)?si(e):t?t(e):e}const Xh=/,(?![^(]*\))/;function Qh(t){return V(t)?t:st(t)?t.split(Xh).map(e=>Gt(e)?Zt(e):an(e.trim())):[t]}function tc(t){t._data={},t._updates=[...t.$options.update||[]],t._disconnect.push(()=>t._updates=t._data=null)}function ec(t,e){t._updates.unshift(e)}function Fi(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,de.read(()=>{t._connected&&ic(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function ic(t,e){for(const{read:i,write:n,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(c=>e.has(c)))continue;let a;i&&(a=i.call(t,t._data,e),a&&xi(a)&&Dt(t._data,a)),n&&a!==!1&&de.write(()=>{t._connected&&n.call(t,t._data,e)})}}function Wt(t){return Vi(ks,t,"resize")}function ni(t){return Vi(cr,t)}function Es(t){return Vi(In,t)}function As(t={}){return ni({handler:function(e,i){const{targets:n=this.$el,preload:r=5}=t;for(const a of q(kt(n)?n(this):n))Q('[loading="lazy"]',a).slice(0,r-1).forEach(c=>Ci(c,"loading"));for(const a of e.filter(({isIntersecting:c})=>c).map(({target:c})=>c))i.unobserve(a)},...t})}function Cr(t){return Vi((e,i)=>Cn(i),t,"resize")}function Ui(t){return Vi((e,i)=>({disconnect:R(nc(e),"scroll",i,{passive:!0})}),t,"scroll")}function Ir(t){return{observe(e,i){return{observe:ut,unobserve:ut,disconnect:R(e,At,i,{passive:!0})}},handler(e){if(!Lt(e))return;const i=jt(e),n="tagName"in e.target?e.target:X(e.target);tt(document,`${Qt} ${Ii} scroll`,r=>{const{x:a,y:c}=jt(r);(r.type!=="scroll"&&n&&a&&Math.abs(i.x-a)>100||c&&Math.abs(i.y-c)>100)&&setTimeout(()=>{I(n,"swipe"),I(n,`swipe${sc(i.x,i.y,a,c)}`)})})},...t}}function Vi(t,e,i){return{observe:t,handler(){Fi(this,i)},...e}}function sc(t,e,i,n){return Math.abs(t-i)>=Math.abs(e-n)?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function nc(t){return q(t).map(e=>{const{ownerDocument:i}=e,n=Ie(e,!0);return n===i.scrollingElement?i:n})}var oc={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},observe:[Es({options:{childList:!0}}),Es({options:{attributes:!0,attributeFilter:["style"]}}),Wt({handler(t){for(const{borderBoxSize:[{inlineSize:e,blockSize:i}]}of t)if(e||i){this.$emit("resize");return}},target:({$el:t})=>[t,...Y(t)]})],update:{read(){return{rows:Tr(Y(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)et(i,this.margin,t[0]!==e),et(i,this.firstColumn,e[mt?e.length-1:0]===i)},events:["resize"]}};function Tr(t){const e=[[]],i=t.some((n,r)=>r&&t[r-1].offsetParent!==n.offsetParent);for(const n of t){if(!