uikit 3.19.5-dev.57ec46163 → 3.19.5-dev.8317c4705

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +58 -32
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +58 -32
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +59 -33
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +58 -32
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +58 -32
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +63 -37
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +63 -37
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/util/selector.js +65 -37
  44. package/tests/modal.html +2 -2
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -134,52 +134,78 @@
134
134
  function findAll(selector, context) {
135
135
  return toNodes(_query(selector, toNode(context), "querySelectorAll"));
136
136
  }
137
- const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
138
- const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
139
- const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
140
- const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, "$1 *"));
137
+ const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
138
+ const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
+ const trailingCommaRe = /\s*,$/;
140
+ const parseSelector = memoize((selector) => {
141
+ selector = selector.replace(addStarRe, "$1 *");
142
+ let isContextSelector = false;
143
+ const selectors = [];
144
+ for (let sel of selector.match(splitSelectorRe)) {
145
+ sel = sel.replace(trailingCommaRe, "").trim();
146
+ if (sel[0] === ">") {
147
+ sel = `:scope ${sel}`;
148
+ }
149
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
150
+ selectors.push(sel);
151
+ }
152
+ return {
153
+ selector: selectors.join(","),
154
+ selectors,
155
+ isContextSelector
156
+ };
157
+ });
141
158
  function _query(selector, context = document, queryFn) {
142
159
  if (!selector || !isString(selector)) {
143
160
  return selector;
144
161
  }
145
- selector = sanatize(selector);
146
- if (isContextSelector(selector)) {
147
- const split = splitSelector(selector);
148
- selector = "";
149
- for (let sel of split) {
150
- let ctx = context;
151
- if (sel[0] === "!") {
152
- const selectors = sel.substr(1).trim().split(" ");
153
- ctx = parent(context).closest(selectors[0]);
154
- sel = selectors.slice(1).join(" ").trim();
155
- if (!sel.length && split.length === 1) {
156
- return ctx;
157
- }
158
- }
159
- if (sel[0] === "-") {
160
- const selectors = sel.substr(1).trim().split(" ");
161
- const prev = (ctx || context).previousElementSibling;
162
- ctx = matches(prev, sel.substr(1)) ? prev : null;
163
- sel = selectors.slice(1).join(" ");
162
+ const parsed = parseSelector(selector);
163
+ if (!parsed.isContextSelector) {
164
+ return _doQuery(context, queryFn, parsed.selector);
165
+ }
166
+ selector = "";
167
+ const isSingle = parsed.selectors.length === 1;
168
+ for (let sel of parsed.selectors) {
169
+ let ctx = context;
170
+ if (sel[0] === "!") {
171
+ const selectors = sel.substr(1).trim().split(" ");
172
+ ctx = parent(context).closest(selectors[0]);
173
+ sel = selectors.slice(1).join(" ").trim();
174
+ if (!sel.length && isSingle) {
175
+ return ctx;
164
176
  }
165
- if (ctx) {
166
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
177
+ }
178
+ if (sel[0] === "-") {
179
+ const selectors = sel.substr(1).trim().split(" ");
180
+ const prev = (ctx || context).previousElementSibling;
181
+ ctx = matches(prev, sel.substr(1)) ? prev : null;
182
+ sel = selectors.slice(1).join(" ");
183
+ if (!sel.length && isSingle) {
184
+ return ctx;
167
185
  }
186
+ } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
+ return _doQuery(
188
+ parent(context),
189
+ queryFn,
190
+ `:scope :nth-child(${index(context) + 1}) ${sel}`
191
+ );
168
192
  }
169
- if (!isDocument(context)) {
170
- context = context.ownerDocument;
193
+ if (ctx) {
194
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
171
195
  }
172
196
  }
197
+ if (!isDocument(context)) {
198
+ context = context.ownerDocument;
199
+ }
200
+ return _doQuery(context, queryFn, selector);
201
+ }
202
+ function _doQuery(context, queryFn, selector) {
173
203
  try {
174
204
  return context[queryFn](selector);
175
205
  } catch (e) {
176
206
  return null;
177
207
  }
178
208
  }
179
- const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
180
- const splitSelector = memoize(
181
- (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
182
- );
183
209
  function domPath(element) {
184
210
  const names = [];
185
211
  while (element.parentNode) {
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(c,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlider_parallax=$(c.UIkit.util))})(this,function(c){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function K(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function Q(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Pn,from:X}=Array;function Y(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function Z(n){return M(n)&&n===n.window}function k(n){return A(n)===9}function T(n){return A(n)>=1}function A(n){return!Z(n)&&M(n)&&n.nodeType}function C(n){return typeof n=="string"}function U(n){return n===void 0}function b(n){return d(n)[0]}function d(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function O(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(M(e)){for(const r in e)j(n,r,e[r]);return}if(U(t))return(o=b(n))==null?void 0:o.getAttribute(e);for(const r of d(n))Y(t)&&(t=t.call(r,j(r,e))),t===null?nn(r,e):r.setAttribute(e,t)}function nn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function W(n){var e;return(e=b(n))==null?void 0:e.parentElement}function tn(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function en(n,e){n=b(n);const t=n?X(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?d(n).indexOf(b(e)):en(W(n)).indexOf(n)}function on(n,e){return d(un(n,b(e),"querySelectorAll"))}const cn=/(^|[^\\],)\s*[!>+~-]/,sn=O(n=>n.match(cn)),an=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,fn=O(n=>n.replace(an,"$1 *"));function un(n,e=document,t){if(!n||!C(n))return n;if(n=fn(n),sn(n)){const o=hn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const s=r.substr(1).trim().split(" ");if(i=W(e).closest(s[0]),r=s.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const s=r.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=_(a,r.substr(1))?a:null,r=s.slice(1).join(" ")}i&&(n+=`${n?",":""}${ln(i)} ${r}`)}k(e)||(e=e.ownerDocument)}try{return e[t](n)}catch{return null}}const dn=/.*?[^\\](?![^(]*\))(?:,|$)/g,hn=O(n=>n.match(dn).map(e=>e.replace(/,$/,"").trim()));function ln(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${rn(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function mn(n){return C(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function $n(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),bn(t.content.childNodes)}function bn(n){return n.length>1?n:n[0]}function xn(n,e){return pn(n)?d($n(n)):on(n,e)}function pn(n){return C(n)&&Q(n.trim(),"<")}function yn(n){return Math.ceil(Math.max(0,...xn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const w={x:v,y:v,rotate:v,scale:v,color:P,backgroundColor:P,borderColor:P,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Fn,stroke:Sn,bgx:D,bgy:D},{keys:E}=Object;var wn={mixins:[$],props:B(E(w),"list"),data:B(E(w),void 0),computed:{props(n,e){const t={};for(const r in n)r in w&&!c.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=w[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,r=i=>c.toFloat(c.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var s;return S([i])?c.toPx(i,"width",e,!0)/e[`offset${(s=i.endsWith)!=null&&s.call(i,"vh")?"Height":"Width"}`]:c.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,s)=>{i.transform=`${i.transform||""} ${n}(${x(t,s)}${o})`}}function P(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=g(t,o=>vn(e,o)),(o,r)=>{const[i,s,a]=R(t,r),h=i.map((l,f)=>(l+=a*(s[f]-l),f===3?c.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function vn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const s=x(t,i);r.filter=`${r.filter||""} ${n}(${s+o})`}}function Fn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=g(t),(o,r)=>{o[n]=x(t,r)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=yn(e);return t=g(t.reverse(),i=>(i=c.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(c.css(e,"strokeDasharray",r),(i,s)=>{i.strokeDashoffset=x(t,s)}):c.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,a=>c.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const s={};for(const a of i)s[a]=z(e,a);return H(i,s,o)}function Mn(n,e,t,o){const r=Cn(e);if(!r.width)return c.noop;const i={width:e.offsetWidth,height:e.offsetHeight},s=["bgx","bgy"].filter(f=>f in o),a={};for(const f of s){const u=o[f].map(([jn])=>jn),y=Math.min(...u),N=Math.max(...u),G=u.indexOf(y)<u.indexOf(N),J=N-y;a[f]=`${(G?-J:0)-(G?y:N)}px`,i[f==="bgy"?"height":"width"]+=J}const h=c.Dimensions.cover(r,i);for(const f of s){const u=f==="bgy"?"height":"width",y=h[u]-i[u];a[f]=`max(${z(e,f)},-${y}px) + ${a[f]}`}const l=H(s,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const i of n){const s=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${s}px)`}}}const F={};function Cn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=I(t),c.trigger(n,c.createEvent("load",!1))},I(t)):F[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=c.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[s,a]=c.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(s=e(s),a=a?c.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([s,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([s,a]),a=1)),t.push([s,a]),a===null)r++;else if(r){const h=t[i-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function R(n,e){const t=c.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,o,r]=R(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const On=/^-?\d+(?:\.\d+)?(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,On);if(r)return r[1]}return e}function p(n,e,t){const o=n.style[e],r=c.css(c.css(n,e,t),e);return n.style[e]=o,r}function B(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var L={mixins:[wn],beforeConnect(){this.item=c.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(V(n,r,e)),s=this.getCss(q(n)?.5:r>0?1:0);c.fastdom.write(()=>{c.css(this.$el,i),c.Transition.start(this.$el,s,t,o).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(V(n,t,e));c.fastdom.write(()=>c.css(this.$el,o))})}}]};function q(n){return c.endsWith(n,"in")}function V(n,e,t){return t/=2,q(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",L),L});
1
+ /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function K(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function X(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function U(n){return W(n)===9}function A(n){return W(n)>=1}function W(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function b(n){return h(n)[0]}function h(n){return A(n)?[n]:Array.from(n||[]).filter(A)}function tn(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function j(n,e,t){var r;if(C(e)){for(const i in e)j(n,i,e[i]);return}if(nn(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const i of h(n))Z(t)&&(t=t.call(i,j(i,e))),t===null?en(i,e):i.setAttribute(e,t)}function en(n,e){h(n).forEach(t=>t.removeAttribute(e))}function O(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return h(n).filter(t=>_(t,e))}function _(n,e){return h(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?Y(n.children):[];return e?rn(t,e):t}function E(n,e){return e?h(n).indexOf(b(e)):on(O(n)).indexOf(n)}function sn(n,e){return h(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=tn(n=>{n=n.replace(cn,"$1 *");let e=!1;const t=[];for(let r of n.match(an))r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),e||(e=["!","+","~","-"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}});function dn(n,e=document,t){if(!n||!M(n))return n;const r=un(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const i=r.selectors.length===1;for(let o of r.selectors){let c=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=O(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&i)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=_(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&i)return c}else if(o[0]==="~"||o[0]==="+"&&i)return P(O(e),t,`:scope :nth-child(${E(e)+1}) ${o}`);c&&(n+=`${n?",":""}${hn(c)} ${o}`)}return U(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function hn(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${ln(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${E(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function ln(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?h(mn(n)):sn(n,e)}function xn(n){return M(n)&&X(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const w={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:vn,stroke:Sn,bgx:H,bgy:H},{keys:D}=Object;var yn={mixins:[$],props:L(D(w),"list"),data:L(D(w),void 0),computed:{props(n,e){const t={};for(const i in n)i in w&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=w[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=o=>s.toFloat(s.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var c;return F([o])?s.toPx(o,"width",e,!0)/e[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:s.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,c)=>{o.transform=`${o.transform||""} ${n}(${x(t,c)}${r})`}}function I(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>wn(e,r)),(r,i)=>{const[o,c,a]=B(t,i),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function wn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const c=x(t,o);i.filter=`${i.filter||""} ${n}(${c+r})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=x(t,i)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=pn(e);return t=m(t.reverse(),o=>(o=s.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(s.css(e,"strokeDasharray",i),(o,c)=>{o.strokeDashoffset=x(t,c)}):s.noop}function H(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,a=>s.toPx(a,i,e));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,r);const c={};for(const a of o)c[a]=R(e,a);return z(o,c,r)}function Fn(n,e,t,r){const i=Cn(e);if(!i.width)return s.noop;const o={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([jn])=>jn),y=Math.min(...d),T=Math.max(...d),G=d.indexOf(y)<d.indexOf(T),J=T-y;a[f]=`${(G?-J:0)-(G?y:T)}px`,o[f==="bgy"?"height":"width"]+=J}const u=s.Dimensions.cover(i,o);for(const f of c){const d=f==="bgy"?"height":"width",y=u[d]-o[d];a[f]=`max(${R(e,f)},-${y}px) + ${a[f]}`}const l=z(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function z(n,e,t){return function(r,i){for(const o of n){const c=x(t[o],i);r[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=N(t),s.trigger(n,s.createEvent("load",!1))},N(t)):S[e]=N(t)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[c,a]=s.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=e(c),a=a?s.toFloat(a)/100:null,o===0?a===null?a=0:a&&t.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)i++;else if(i){const u=t[o-i-1][1],l=(a-u)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=u+l*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,i]=B(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Mn);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=r,i}function L(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var V={mixins:[yn],beforeConnect(){this.item=s.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Q(n,i,e)),c=this.getCss(q(n)?.5:i>0?1:0);s.fastdom.write(()=>{s.css(this.$el,o),s.Transition.start(this.$el,c,t,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(Q(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function q(n){return s.endsWith(n,"in")}function Q(n,e,t){return t/=2,q(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",V),V});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -817,52 +817,78 @@
817
817
  function findAll(selector, context) {
818
818
  return toNodes(_query(selector, toNode(context), "querySelectorAll"));
819
819
  }
820
- const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
821
- const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
822
- const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
823
- const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, "$1 *"));
820
+ const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
821
+ const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
822
+ const trailingCommaRe = /\s*,$/;
823
+ const parseSelector = memoize((selector) => {
824
+ selector = selector.replace(addStarRe, "$1 *");
825
+ let isContextSelector = false;
826
+ const selectors = [];
827
+ for (let sel of selector.match(splitSelectorRe)) {
828
+ sel = sel.replace(trailingCommaRe, "").trim();
829
+ if (sel[0] === ">") {
830
+ sel = `:scope ${sel}`;
831
+ }
832
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
833
+ selectors.push(sel);
834
+ }
835
+ return {
836
+ selector: selectors.join(","),
837
+ selectors,
838
+ isContextSelector
839
+ };
840
+ });
824
841
  function _query(selector, context = document, queryFn) {
825
842
  if (!selector || !isString(selector)) {
826
843
  return selector;
827
844
  }
828
- selector = sanatize(selector);
829
- if (isContextSelector(selector)) {
830
- const split = splitSelector(selector);
831
- selector = "";
832
- for (let sel of split) {
833
- let ctx = context;
834
- if (sel[0] === "!") {
835
- const selectors = sel.substr(1).trim().split(" ");
836
- ctx = parent(context).closest(selectors[0]);
837
- sel = selectors.slice(1).join(" ").trim();
838
- if (!sel.length && split.length === 1) {
839
- return ctx;
840
- }
841
- }
842
- if (sel[0] === "-") {
843
- const selectors = sel.substr(1).trim().split(" ");
844
- const prev = (ctx || context).previousElementSibling;
845
- ctx = matches(prev, sel.substr(1)) ? prev : null;
846
- sel = selectors.slice(1).join(" ");
847
- }
848
- if (ctx) {
849
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
845
+ const parsed = parseSelector(selector);
846
+ if (!parsed.isContextSelector) {
847
+ return _doQuery(context, queryFn, parsed.selector);
848
+ }
849
+ selector = "";
850
+ const isSingle = parsed.selectors.length === 1;
851
+ for (let sel of parsed.selectors) {
852
+ let ctx = context;
853
+ if (sel[0] === "!") {
854
+ const selectors = sel.substr(1).trim().split(" ");
855
+ ctx = parent(context).closest(selectors[0]);
856
+ sel = selectors.slice(1).join(" ").trim();
857
+ if (!sel.length && isSingle) {
858
+ return ctx;
850
859
  }
851
860
  }
852
- if (!isDocument(context)) {
853
- context = context.ownerDocument;
861
+ if (sel[0] === "-") {
862
+ const selectors = sel.substr(1).trim().split(" ");
863
+ const prev = (ctx || context).previousElementSibling;
864
+ ctx = matches(prev, sel.substr(1)) ? prev : null;
865
+ sel = selectors.slice(1).join(" ");
866
+ if (!sel.length && isSingle) {
867
+ return ctx;
868
+ }
869
+ } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
870
+ return _doQuery(
871
+ parent(context),
872
+ queryFn,
873
+ `:scope :nth-child(${index(context) + 1}) ${sel}`
874
+ );
875
+ }
876
+ if (ctx) {
877
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
854
878
  }
855
879
  }
880
+ if (!isDocument(context)) {
881
+ context = context.ownerDocument;
882
+ }
883
+ return _doQuery(context, queryFn, selector);
884
+ }
885
+ function _doQuery(context, queryFn, selector) {
856
886
  try {
857
887
  return context[queryFn](selector);
858
888
  } catch (e) {
859
889
  return null;
860
890
  }
861
891
  }
862
- const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
863
- const splitSelector = memoize(
864
- (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
865
- );
866
892
  function domPath(element) {
867
893
  const names = [];
868
894
  while (element.parentNode) {
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&lt(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function lt(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function P(t){return F(s.observeResize,t,"resize")}function ft(t){return F(s.observeIntersection,t)}function gt(t={}){return ft({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function ut(t){return F((e,i)=>({disconnect:s.on(mt(e),"scroll",i,{passive:!0})}),t,"scroll")}function F(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function mt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var pt={connected(){s.addClass(this.$el,this.$options.id)}},xt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},vt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},U={passive:!0,capture:!0},wt="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var It={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:wt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&bt(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,D,this.move,b),s.on(document,V,this.end,U),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",q,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=G.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=G.call(this,n,r);this.percent=o/a;const h=i[n],c=i[r],l=this.index!==r,d=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,d||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!d&&c)},end(){if(s.off(document,D,this.move,b),s.off(document,V,this.end,U),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",q,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function bt(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let $t=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${$t++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var yt={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=X(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},St={mixins:[vt,It,yt,xt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>J(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:P(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],c=this.getIndex(t,this.index),l=this.slides[c];if(h===l){r();return}if(this.dir=kt(t,a),this.prevIndex=a,this.index=c,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const d=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function kt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=_t(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function _t(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Ct(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:pe,from:Mt}=Array;function Nt(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function Et(t){return R(t)&&t===t.window}function Ot(t){return Q(t)===9}function K(t){return Q(t)>=1}function Q(t){return!Et(t)&&R(t)&&t.nodeType}function j(t){return typeof t=="string"}function Tt(t){return t===void 0}function y(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function W(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function L(t,e,i){var n;if(R(e)){for(const o in e)L(t,o,e[o]);return}if(Tt(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Nt(i)&&(i=i.call(o,L(o,e))),i===null?Pt(o,e):o.setAttribute(e,i)}function Pt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function Y(t){var e;return(e=y(t))==null?void 0:e.parentElement}function Ft(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Dt(t,e){t=y(t);const i=t?Mt(t.children):[];return e?Ft(i,e):i}function Rt(t,e){return e?p(t).indexOf(y(e)):Dt(Y(t)).indexOf(t)}function jt(t,e){return p(Bt(t,y(e),"querySelectorAll"))}const Wt=/(^|[^\\],)\s*[!>+~-]/,Lt=W(t=>t.match(Wt)),zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=W(t=>t.replace(zt,"$1 *"));function Bt(t,e=document,i){if(!t||!j(t))return t;if(t=Ht(t),Lt(t)){const n=Vt(t);t="";for(let o of n){let r=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(r=Y(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&n.length===1)return r}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),h=(r||e).previousElementSibling;r=Z(h,o.substr(1))?h:null,o=a.slice(1).join(" ")}r&&(t+=`${t?",":""}${qt(r)} ${o}`)}Ot(e)||(e=e.ownerDocument)}try{return e[i](t)}catch{return null}}const Ut=/.*?[^\\](?![^(]*\))(?:,|$)/g,Vt=W(t=>t.match(Ut).map(e=>e.replace(/,$/,"").trim()));function qt(t){const e=[];for(;t.parentNode;){const i=L(t,"id");if(i){e.unshift(`#${Gt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Rt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Gt(t){return j(t)?CSS.escape(t):""}const Xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Xt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Kt(i.content.childNodes)}function Kt(t){return t.length>1?t:t[0]}function Qt(t,e){return Yt(t)?p(Jt(t)):jt(t,e)}function Yt(t){return j(t)&&Ct(t.trim(),"<")}function Zt(t){return Math.ceil(Math.max(0,...Qt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const C={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ee,stroke:se,bgx:et,bgy:et},{keys:tt}=Object;rt(tt(C),"list"),rt(tt(C),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${S(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>te(e,n)),(n,o)=>{const[r,a,h]=nt(i,o),c=r.map((l,d)=>(l+=h*(a[d]-l),d===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${c})`}}function te(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=S(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function ee(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function se(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Zt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=S(i,a)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return ie(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function ie(t,e,i,n){const o=ne(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(d=>d in n),h={};for(const d of a){const f=n[d].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),_=u-g;h[d]=`${(m?-_:0)-(m?g:u)}px`,r[d==="bgy"?"height":"width"]+=_}const c=s.Dimensions.cover(o,r);for(const d of a){const f=d==="bgy"?"height":"width",g=c[f]-r[f];h[d]=`max(${st(e,d)},-${g}px) + ${h[d]}`}const l=it(a,h,n);return(d,f)=>{l(d,f),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function st(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ne(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))},H(i)):N[e]=H(i)}function H(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const c=i[r-o-1][1],l=(h-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+l*(o-d+1);o=0}}return i}function nt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=nt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const re=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,re);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function oe(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ae={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=oe(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],c=this.slides[a],{triggerShow:l,triggerShown:d,triggerHide:f,triggerHidden:g}=he(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==c&&f(h),l(c),u&&d(h),this._translate(h===c?1:r,h,c)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function he(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(c){s.hasClass(c,n)&&(a(c),h(c)),s.hasClass(c,e)||(s.trigger(c,"beforeitemshow",[t]),s.trigger(c,"itemshow",[t]))}function r(c){s.hasClass(c,i)&&s.trigger(c,"itemshown",[t])}function a(c){s.hasClass(c,e)||o(c),s.hasClass(c,i)&&r(c),s.hasClass(c,n)||(s.trigger(c,"beforeitemhide",[t]),s.trigger(c,"itemhide",[t]))}function h(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var de={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},ce={observe:gt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ot(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function le(t,e,i,{center:n,easing:o,list:r}){const a=t?A(t,r,n):A(e,r,n)+s.dimensions(e).width*i,h=e?A(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let c;return{dir:i,show(l,d=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(d,-1,1)),this.translate(d),d=t?d:s.clamp(d,0,1),B(this.getItemIn(),"itemin",{percent:d,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-d,duration:l,timing:g,dir:i}),new Promise(u=>{c||(c=u),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},l,g).then(c,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){const d=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(d-d*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const _=s.includes(f,m),T=m===g,ct=m===u,me=T||!ct&&(_||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${me?"in":"out"}`,{dir:i,percent:ct?1-l:T?l:_?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let d=this.getActives(),f=ht(r,A(e||t,r,n));if(l){const g=d;d=f,f=g}return f[s.findIndex(f,g=>!s.includes(d,g))]},getActives(){return ht(r,A(t||e,r,n))}}}function A(t,e,i){const n=O(t,e);return i?n-fe(t,e):Math.min(n,at(e))}function at(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function fe(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ht(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var dt={mixins:[pt,St,de,ae,ce],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:le},computed:{finite({finite:t}){return t||ge(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=at(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:P({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=J(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),c=0;do{const l=this.slides[this.getIndex(this.index+a+c++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>c&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/a%1,n-=a}while(n>=0&&e<this.maxIndex);return[e,o]}}};function ge(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ue(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,c=new Set([a]);let l=0;for(const d of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;f+=s.dimensions(u).width,c.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function ue(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
1
+ /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ft(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ft(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function P(t){return D(s.observeResize,t,"resize")}function gt(t){return D(s.observeIntersection,t)}function ut(t={}){return gt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function mt(t){return D((e,i)=>({disconnect:s.on(pt(e),"scroll",i,{passive:!0})}),t,"scroll")}function D(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function pt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var xt={connected(){s.addClass(this.$el,this.$options.id)}},vt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},wt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},V={passive:!0,capture:!0},It="touchstart mousedown",F="touchmove mousemove",q="touchend touchcancel mouseup click input scroll",G=t=>t.preventDefault();var bt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:It,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&$t(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,F,this.move,b),s.on(document,q,this.end,V),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",G,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=X.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=X.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,F,this.move,b),s.off(document,q,this.end,V),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",G,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function X(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $t(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let yt=1;function Q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${yt++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var St={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=Q(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Q(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},kt={mixins:[wt,bt,St,vt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>J(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:P(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=At(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function At(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var Ct={props:{media:Boolean},data:{media:!1},connected(){const t=_t(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function _t(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Mt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:me,from:Nt}=Array;function Et(t){return typeof t=="function"}function j(t){return t!==null&&typeof t=="object"}function Ot(t){return j(t)&&t===t.window}function Tt(t){return Y(t)===9}function K(t){return Y(t)>=1}function Y(t){return!Ot(t)&&j(t)&&t.nodeType}function R(t){return typeof t=="string"}function Pt(t){return t===void 0}function y(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function Dt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function W(t,e,i){var n;if(j(e)){for(const o in e)W(t,o,e[o]);return}if(Pt(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Et(i)&&(i=i.call(o,W(o,e))),i===null?Ft(o,e):o.setAttribute(e,i)}function Ft(t,e){p(t).forEach(i=>i.removeAttribute(e))}function L(t){var e;return(e=y(t))==null?void 0:e.parentElement}function jt(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Rt(t,e){t=y(t);const i=t?Nt(t.children):[];return e?jt(i,e):i}function tt(t,e){return e?p(t).indexOf(y(e)):Rt(L(t)).indexOf(t)}function Wt(t,e){return p(Ut(t,y(e),"querySelectorAll"))}const Lt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=/.*?[^\\](?![^(]*\))(?:,|$)/g,zt=/\s*,$/,Bt=Dt(t=>{t=t.replace(Lt,"$1 *");let e=!1;const i=[];for(let n of t.match(Ht))n=n.replace(zt,"").trim(),n[0]===">"&&(n=`:scope ${n}`),e||(e=["!","+","~","-"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}});function Ut(t,e=document,i){if(!t||!R(t))return t;const n=Bt(t);if(!n.isContextSelector)return H(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=L(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&o)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),d=(a||e).previousElementSibling;if(a=Z(d,r.substr(1))?d:null,r=h.slice(1).join(" "),!r.length&&o)return a}else if(r[0]==="~"||r[0]==="+"&&o)return H(L(e),i,`:scope :nth-child(${tt(e)+1}) ${r}`);a&&(t+=`${t?",":""}${Vt(a)} ${r}`)}return Tt(e)||(e=e.ownerDocument),H(e,i,t)}function H(t,e,i){try{return t[e](i)}catch{return null}}function Vt(t){const e=[];for(;t.parentNode;){const i=W(t,"id");if(i){e.unshift(`#${qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${tt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function qt(t){return R(t)?CSS.escape(t):""}const Gt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Xt(t){const e=Gt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Qt(i.content.childNodes)}function Qt(t){return t.length>1?t:t[0]}function Jt(t,e){return Kt(t)?p(Xt(t)):Wt(t,e)}function Kt(t){return R(t)&&Mt(t.trim(),"<")}function Yt(t){return Math.ceil(Math.max(0,...Jt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const _={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:te,stroke:ee,bgx:st,bgy:st},{keys:et}=Object;ot(et(_),"list"),ot(et(_),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${S(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>Zt(e,n)),(n,o)=>{const[r,a,h]=rt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function Zt(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=S(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function te(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ee(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Yt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=S(i,a)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return se(t,e,i,n);const a={};for(const h of r)a[h]=it(e,h);return nt(r,a,n)}function se(t,e,i,n){const o=ie(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),C=u-g;h[c]=`${(m?-C:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=C}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${it(e,c)},-${g}px) + ${h[c]}`}const l=nt(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function it(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const a=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ie(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=B(i),s.trigger(t,s.createEvent("load",!1))},B(i)):N[e]=B(i)}function B(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function rt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=rt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ne=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ne);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function ot(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function re(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var oe={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),mt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=re(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=ae(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ae(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var he={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},de={observe:ut({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function at(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function ce(t,e,i,{center:n,easing:o,list:r}){const a=t?A(t,r,n):A(e,r,n)+s.dimensions(e).width*i,h=e?A(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),U(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&U(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:at(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",at(s.clamp(-h+(c-c*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const C=s.includes(f,m),T=m===g,lt=m===u,ue=T||!lt&&(C||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));U(m,`itemtranslate${ue?"in":"out"}`,{dir:i,percent:lt?1-l:T?l:C?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=dt(r,A(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return dt(r,A(t||e,r,n))}}}function A(t,e,i){const n=O(t,e);return i?n-le(t,e):Math.min(n,ht(e))}function ht(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function le(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function dt(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function U(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var ct={mixins:[xt,kt,he,oe,de],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:ce},computed:{finite({finite:t}){return t||fe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=ht(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:P({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=J(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/a%1,n-=a}while(n>=0&&e<this.maxIndex);return[e,o]}}};function fe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ge(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ge(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",ct),ct});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -134,52 +134,78 @@
134
134
  function findAll(selector, context) {
135
135
  return toNodes(_query(selector, toNode(context), "querySelectorAll"));
136
136
  }
137
- const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
138
- const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
139
- const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
140
- const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, "$1 *"));
137
+ const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
138
+ const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
+ const trailingCommaRe = /\s*,$/;
140
+ const parseSelector = memoize((selector) => {
141
+ selector = selector.replace(addStarRe, "$1 *");
142
+ let isContextSelector = false;
143
+ const selectors = [];
144
+ for (let sel of selector.match(splitSelectorRe)) {
145
+ sel = sel.replace(trailingCommaRe, "").trim();
146
+ if (sel[0] === ">") {
147
+ sel = `:scope ${sel}`;
148
+ }
149
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
150
+ selectors.push(sel);
151
+ }
152
+ return {
153
+ selector: selectors.join(","),
154
+ selectors,
155
+ isContextSelector
156
+ };
157
+ });
141
158
  function _query(selector, context = document, queryFn) {
142
159
  if (!selector || !isString(selector)) {
143
160
  return selector;
144
161
  }
145
- selector = sanatize(selector);
146
- if (isContextSelector(selector)) {
147
- const split = splitSelector(selector);
148
- selector = "";
149
- for (let sel of split) {
150
- let ctx = context;
151
- if (sel[0] === "!") {
152
- const selectors = sel.substr(1).trim().split(" ");
153
- ctx = parent(context).closest(selectors[0]);
154
- sel = selectors.slice(1).join(" ").trim();
155
- if (!sel.length && split.length === 1) {
156
- return ctx;
157
- }
158
- }
159
- if (sel[0] === "-") {
160
- const selectors = sel.substr(1).trim().split(" ");
161
- const prev = (ctx || context).previousElementSibling;
162
- ctx = matches(prev, sel.substr(1)) ? prev : null;
163
- sel = selectors.slice(1).join(" ");
162
+ const parsed = parseSelector(selector);
163
+ if (!parsed.isContextSelector) {
164
+ return _doQuery(context, queryFn, parsed.selector);
165
+ }
166
+ selector = "";
167
+ const isSingle = parsed.selectors.length === 1;
168
+ for (let sel of parsed.selectors) {
169
+ let ctx = context;
170
+ if (sel[0] === "!") {
171
+ const selectors = sel.substr(1).trim().split(" ");
172
+ ctx = parent(context).closest(selectors[0]);
173
+ sel = selectors.slice(1).join(" ").trim();
174
+ if (!sel.length && isSingle) {
175
+ return ctx;
164
176
  }
165
- if (ctx) {
166
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
177
+ }
178
+ if (sel[0] === "-") {
179
+ const selectors = sel.substr(1).trim().split(" ");
180
+ const prev = (ctx || context).previousElementSibling;
181
+ ctx = matches(prev, sel.substr(1)) ? prev : null;
182
+ sel = selectors.slice(1).join(" ");
183
+ if (!sel.length && isSingle) {
184
+ return ctx;
167
185
  }
186
+ } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
+ return _doQuery(
188
+ parent(context),
189
+ queryFn,
190
+ `:scope :nth-child(${index(context) + 1}) ${sel}`
191
+ );
168
192
  }
169
- if (!isDocument(context)) {
170
- context = context.ownerDocument;
193
+ if (ctx) {
194
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
171
195
  }
172
196
  }
197
+ if (!isDocument(context)) {
198
+ context = context.ownerDocument;
199
+ }
200
+ return _doQuery(context, queryFn, selector);
201
+ }
202
+ function _doQuery(context, queryFn, selector) {
173
203
  try {
174
204
  return context[queryFn](selector);
175
205
  } catch (e) {
176
206
  return null;
177
207
  }
178
208
  }
179
- const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
180
- const splitSelector = memoize(
181
- (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
182
- );
183
209
  function domPath(element) {
184
210
  const names = [];
185
211
  while (element.parentNode) {