uikit 3.19.5-dev.c6a7fbca6 → 3.19.5-dev.c70b3862f

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 (77) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/css/uikit-core-rtl.css +2 -2
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +2 -2
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +2 -2
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +2 -2
  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 +87 -87
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +55 -55
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +55 -55
  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 +43 -32
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +44 -33
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +44 -34
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +44 -33
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +44 -33
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +87 -87
  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 +132 -114
  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 +221 -206
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +6 -7
  44. package/src/js/api/component.js +4 -4
  45. package/src/js/api/computed.js +20 -26
  46. package/src/js/api/observer.js +17 -5
  47. package/src/js/components/slider-parallax.js +2 -2
  48. package/src/js/components/slider.js +1 -1
  49. package/src/js/core/drop.js +1 -2
  50. package/src/js/core/height-placeholder.js +4 -1
  51. package/src/js/core/height-viewport.js +1 -1
  52. package/src/js/core/icon.js +2 -3
  53. package/src/js/core/img.js +1 -1
  54. package/src/js/core/inverse.js +13 -6
  55. package/src/js/core/margin.js +5 -0
  56. package/src/js/core/modal.js +5 -6
  57. package/src/js/core/scrollspy.js +0 -3
  58. package/src/js/core/sticky.js +1 -1
  59. package/src/js/core/switcher.js +4 -1
  60. package/src/js/core/toggle.js +6 -3
  61. package/src/js/mixin/internal/animate-fade.js +2 -7
  62. package/src/js/mixin/internal/animate-slide.js +2 -7
  63. package/src/js/mixin/parallax.js +7 -3
  64. package/src/js/mixin/slider.js +0 -3
  65. package/src/js/mixin/slideshow.js +3 -0
  66. package/src/js/util/class.js +1 -1
  67. package/src/js/util/fastdom.js +6 -13
  68. package/src/js/util/filter.js +7 -14
  69. package/src/js/util/lang.js +1 -1
  70. package/src/js/util/selector.js +33 -24
  71. package/src/js/util/style.js +2 -4
  72. package/src/js/util/svg.js +4 -1
  73. package/src/less/components/utility.less +1 -1
  74. package/src/scss/components/utility.scss +1 -1
  75. package/tests/base.html +1 -1
  76. package/tests/js/index.js +12 -10
  77. package/tests/switcher.html +86 -86
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.c6a7fbca6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.c70b3862f | 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')) :
@@ -75,7 +75,7 @@
75
75
  return value === void 0;
76
76
  }
77
77
  function toNode(element) {
78
- return toNodes(element)[0];
78
+ return element && toNodes(element)[0];
79
79
  }
80
80
  function toNodes(element) {
81
81
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -112,6 +112,12 @@
112
112
  toNodes(element).forEach((element2) => element2.removeAttribute(name));
113
113
  }
114
114
 
115
+ const isVisibleFn = Element.prototype.checkVisibility || function() {
116
+ return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
117
+ };
118
+ function isVisible(element) {
119
+ return toNodes(element).some((element2) => isVisibleFn.call(element2));
120
+ }
115
121
  function parent(element) {
116
122
  var _a;
117
123
  return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
@@ -138,15 +144,13 @@
138
144
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
145
  const trailingCommaRe = /\s*,$/;
140
146
  const parseSelector = memoize((selector) => {
147
+ var _a;
141
148
  selector = selector.replace(addStarRe, "$1 *");
142
149
  let isContextSelector = false;
143
150
  const selectors = [];
144
- for (let sel of selector.match(splitSelectorRe)) {
151
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
145
152
  sel = sel.replace(trailingCommaRe, "").trim();
146
- if (sel[0] === ">") {
147
- sel = `:scope ${sel}`;
148
- }
149
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
153
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
150
154
  selectors.push(sel);
151
155
  }
152
156
  return {
@@ -155,6 +159,11 @@
155
159
  isContextSelector
156
160
  };
157
161
  });
162
+ const parsePositionSelector = memoize((selector) => {
163
+ selector = selector.substr(1).trim();
164
+ const index2 = selector.indexOf(" ");
165
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
166
+ });
158
167
  function _query(selector, context = document, queryFn) {
159
168
  if (!selector || !isString(selector)) {
160
169
  return selector;
@@ -166,33 +175,36 @@
166
175
  selector = "";
167
176
  const isSingle = parsed.selectors.length === 1;
168
177
  for (let sel of parsed.selectors) {
178
+ let positionSel;
169
179
  let ctx = context;
170
180
  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) {
181
+ [positionSel, sel] = parsePositionSelector(sel);
182
+ ctx = context.parentElement.closest(positionSel);
183
+ if (!sel && isSingle) {
175
184
  return ctx;
176
185
  }
177
186
  }
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) {
187
+ if (ctx && sel[0] === "-") {
188
+ [positionSel, sel] = parsePositionSelector(sel);
189
+ ctx = ctx.previousElementSibling;
190
+ ctx = matches(ctx, positionSel) ? ctx : null;
191
+ if (!sel && isSingle) {
184
192
  return ctx;
185
193
  }
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
- );
192
194
  }
193
- if (ctx) {
194
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
195
+ if (!ctx) {
196
+ continue;
195
197
  }
198
+ if (isSingle) {
199
+ if (sel[0] === "~" || sel[0] === "+") {
200
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
201
+ ctx = ctx.parentElement;
202
+ } else if (sel[0] === ">") {
203
+ sel = `:scope ${sel}`;
204
+ }
205
+ return _doQuery(ctx, queryFn, sel);
206
+ }
207
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
196
208
  }
197
209
  if (!isDocument(context)) {
198
210
  context = context.ownerDocument;
@@ -249,10 +261,7 @@
249
261
  }
250
262
 
251
263
  function getMaxPathLength(el) {
252
- return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
253
- var _a;
254
- return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
255
- })));
264
+ return isVisible(el) ? Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => stroke.getTotalLength()))) : 0;
256
265
  }
257
266
 
258
267
  const props = {
@@ -456,6 +465,7 @@
456
465
  }
457
466
  };
458
467
  }
468
+ const loading = {};
459
469
  const dimensions = {};
460
470
  function getBackgroundImageDimensions(el) {
461
471
  const src = uikitUtil.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -465,11 +475,12 @@
465
475
  const image = new Image();
466
476
  if (src) {
467
477
  image.src = src;
468
- if (!image.naturalWidth) {
469
- image.onload = () => {
478
+ if (!image.naturalWidth && !loading[src]) {
479
+ uikitUtil.once(image, "error load", () => {
470
480
  dimensions[src] = toDimensions(image);
471
481
  uikitUtil.trigger(el, uikitUtil.createEvent("load", false));
472
- };
482
+ });
483
+ loading[src] = true;
473
484
  return toDimensions(image);
474
485
  }
475
486
  }
@@ -556,7 +567,7 @@
556
567
  var Component = {
557
568
  mixins: [Parallax],
558
569
  beforeConnect() {
559
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
570
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
560
571
  },
561
572
  disconnected() {
562
573
  this.item = null;
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.c6a7fbca6 | 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("uikitslideshow_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_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 A(n)===9}function _(n){return A(n)>=1}function A(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 _(n)?[n]:Array.from(n||[]).filter(_)}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=>W(t,e))}function W(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=W(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=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const y={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 wn={mixins:[$],props:L(D(y),"list"),data:L(D(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[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=>yn(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 yn(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),w=Math.min(...d),T=Math.max(...d),G=d.indexOf(w)<d.indexOf(T),J=T-w;a[f]=`${(G?-J:0)-(G?w: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",w=u[d]-o[d];a[f]=`max(${R(e,f)},-${w}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:[wn],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("slideshowParallax",V),V});
1
+ /*! UIkit 3.19.5-dev.c70b3862f | 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("uikitslideshow_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,t){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:Nn,from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function b(n){return n&&u(n)[0]}function u(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function O(n,t,e){var r;if(C(t)){for(const o in t)O(n,o,t[o]);return}if(en(e))return(r=b(n))==null?void 0:r.getAttribute(t);for(const o of u(n))U(e)&&(e=e.call(o,O(o,t))),e===null?rn(o,t):o.setAttribute(t,e)}function rn(n,t){u(n).forEach(e=>e.removeAttribute(t))}const on=Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function sn(n){return u(n).some(t=>on.call(t))}function cn(n){var t;return(t=b(n))==null?void 0:t.parentElement}function an(n,t){return u(n).filter(e=>_(e,t))}function _(n,t){return u(n).some(e=>e.matches(t))}function fn(n,t){n=b(n);const e=n?k(n.children):[];return t?an(e,t):e}function A(n,t){return t?u(n).indexOf(b(t)):fn(cn(n)).indexOf(n)}function un(n,t){return u(mn(n,b(t),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,hn=/.*?[^\\](?![^(]*\))(?:,|$)/g,ln=/\s*,$/,gn=W(n=>{var t;n=n.replace(dn,"$1 *");let e=!1;const r=[];for(let o of(t=n.match(hn))!=null?t:[])o=o.replace(ln,"").trim(),e||(e=["!","+","~","-",">"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:e}}),D=W(n=>{n=n.substr(1).trim();const t=n.indexOf(" ");return~t?[n.substring(0,t),n.substring(t+1)]:[n,""]});function mn(n,t=document,e){if(!n||!M(n))return n;const r=gn(n);if(!r.isContextSelector)return P(t,e,r.selector);n="";const o=r.selectors.length===1;for(let i of r.selectors){let a,c=t;if(i[0]==="!"&&([a,i]=D(i),c=t.parentElement.closest(a),!i&&o)||c&&i[0]==="-"&&([a,i]=D(i),c=c.previousElementSibling,c=_(c,a)?c:null,!i&&o))return c;if(c){if(o)return i[0]==="~"||i[0]==="+"?(i=`:scope :nth-child(${A(c)+1}) ${i}`,c=c.parentElement):i[0]===">"&&(i=`:scope ${i}`),P(c,e,i);n+=`${n?",":""}${$n(c)} ${i}`}}return tn(t)||(t=t.ownerDocument),P(t,e,n)}function P(n,t,e){try{return n[t](e)}catch{return null}}function $n(n){const t=[];for(;n.parentNode;){const e=O(n,"id");if(e){t.unshift(`#${bn(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const xn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function pn(n){const t=xn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),wn(e.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,t){return vn(n)?u(pn(n)):un(n,t)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return sn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(t=>t.getTotalLength()))):0}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Mn,stroke:On,bgx:R,bgy:R},{keys:H}=Object;var Fn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!s.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,s.clamp(n));return t.willChange=Object.keys(t).map(s.propName).join(","),t}}};function v(n,t,e){let r=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,o=i=>s.toFloat(s.toFloat(i).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=i=>{var a;return F([i])?s.toPx(i,"width",t,!0)/t[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(i,a)=>{i.transform=`${i.transform||""} ${n}(${x(e,a)}${r})`}}function j(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,r=>Cn(t,r)),(r,o)=>{const[i,a,c]=L(e,o),h=i.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${h})`}}function Cn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,i)=>{const a=x(e,i);o.filter=`${o.filter||""} ${n}(${a+r})`}}function Mn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(r,o)=>{r[n]=x(e,o)}}function On(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=Sn(t);return e=m(e.reverse(),i=>(i=s.toFloat(i),r==="%"?i*o/100:i)),e.some(([i])=>i)?(s.css(t,"strokeDasharray",o),(i,a)=>{i.strokeDashoffset=x(e,a)}):s.noop}function R(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,c=>s.toPx(c,o,t));const i=["bgx","bgy"].filter(c=>c in r);if(i.length===2&&n==="bgx")return s.noop;if(p(t,"backgroundSize","")==="cover")return Pn(n,t,e,r);const a={};for(const c of i)a[c]=V(t,c);return z(i,a,r)}function Pn(n,t,e,r){const o=jn(t);if(!o.width)return s.noop;const i={width:t.offsetWidth,height:t.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),c={};for(const f of a){const d=r[f].map(([En])=>En),w=Math.min(...d),E=Math.max(...d),K=d.indexOf(w)<d.indexOf(E),X=E-w;c[f]=`${(K?-X:0)-(K?w:E)}px`,i[f==="bgy"?"height":"width"]+=X}const h=s.Dimensions.cover(o,i);for(const f of a){const d=f==="bgy"?"height":"width",w=h[d]-i[d];c[f]=`max(${V(t,f)},-${w}px) + ${c[f]}`}const l=z(a,c,r);return(f,d)=>{l(f,d),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function V(n,t){return p(n,`background-position-${t.substr(-1)}`,"")}function z(n,t,e){return function(r,o){for(const i of n){const a=x(e[i],o);r[`background-position-${i.substr(-1)}`]=`calc(${t[i]} + ${a}px)`}}}const B={},S={};function jn(n){const t=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!B[t])?(s.once(e,"error load",()=>{S[t]=I(e),s.trigger(n,s.createEvent("load",!1))}),B[t]=!0,I(e)):S[t]=I(e)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=s.toFloat){const e=[],{length:r}=n;let o=0;for(let i=0;i<r;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=t(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&e.push([a,0]):i===r-1&&(c===null?c=1:c!==1&&(e.push([a,c]),c=1)),e.push([a,c]),c===null)o++;else if(o){const h=e[i-o-1][1],l=(c-h)/(o+1);for(let f=o;f>0;f--)e[i-f][1]=h+l*(o-f+1);o=0}}return e}function L(n,t){const e=s.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function x(n,t){const[e,r,o]=L(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const In=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,In);if(o)return o[1]}return t}function p(n,t,e){const r=n.style[t],o=s.css(s.css(n,t,e),t);return n.style[t]=r,o}function q(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}var Q={mixins:[Fn],beforeConnect(){this.item=this.$el.closest(`.${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:t,duration:e,timing:r,dir:o}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,o,t)),a=this.getCss(G(n)?.5:o>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,e,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:t,dir:e}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,e,t));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function G(n){return s.endsWith(n,"in")}function J(n,t,e){return e/=2,G(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.c6a7fbca6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.c70b3862f | 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')) :
@@ -167,7 +167,7 @@
167
167
  return value === void 0;
168
168
  }
169
169
  function toNode(element) {
170
- return toNodes(element)[0];
170
+ return element && toNodes(element)[0];
171
171
  }
172
172
  function toNodes(element) {
173
173
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -204,6 +204,12 @@
204
204
  toNodes(element).forEach((element2) => element2.removeAttribute(name));
205
205
  }
206
206
 
207
+ const isVisibleFn = Element.prototype.checkVisibility || function() {
208
+ return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
209
+ };
210
+ function isVisible(element) {
211
+ return toNodes(element).some((element2) => isVisibleFn.call(element2));
212
+ }
207
213
  function parent(element) {
208
214
  var _a;
209
215
  return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
@@ -230,15 +236,13 @@
230
236
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
231
237
  const trailingCommaRe = /\s*,$/;
232
238
  const parseSelector = memoize((selector) => {
239
+ var _a;
233
240
  selector = selector.replace(addStarRe, "$1 *");
234
241
  let isContextSelector = false;
235
242
  const selectors = [];
236
- for (let sel of selector.match(splitSelectorRe)) {
243
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
237
244
  sel = sel.replace(trailingCommaRe, "").trim();
238
- if (sel[0] === ">") {
239
- sel = `:scope ${sel}`;
240
- }
241
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
245
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
242
246
  selectors.push(sel);
243
247
  }
244
248
  return {
@@ -247,6 +251,11 @@
247
251
  isContextSelector
248
252
  };
249
253
  });
254
+ const parsePositionSelector = memoize((selector) => {
255
+ selector = selector.substr(1).trim();
256
+ const index2 = selector.indexOf(" ");
257
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
258
+ });
250
259
  function _query(selector, context = document, queryFn) {
251
260
  if (!selector || !isString(selector)) {
252
261
  return selector;
@@ -258,33 +267,36 @@
258
267
  selector = "";
259
268
  const isSingle = parsed.selectors.length === 1;
260
269
  for (let sel of parsed.selectors) {
270
+ let positionSel;
261
271
  let ctx = context;
262
272
  if (sel[0] === "!") {
263
- const selectors = sel.substr(1).trim().split(" ");
264
- ctx = parent(context).closest(selectors[0]);
265
- sel = selectors.slice(1).join(" ").trim();
266
- if (!sel.length && isSingle) {
273
+ [positionSel, sel] = parsePositionSelector(sel);
274
+ ctx = context.parentElement.closest(positionSel);
275
+ if (!sel && isSingle) {
267
276
  return ctx;
268
277
  }
269
278
  }
270
- if (sel[0] === "-") {
271
- const selectors = sel.substr(1).trim().split(" ");
272
- const prev = (ctx || context).previousElementSibling;
273
- ctx = matches(prev, sel.substr(1)) ? prev : null;
274
- sel = selectors.slice(1).join(" ");
275
- if (!sel.length && isSingle) {
279
+ if (ctx && sel[0] === "-") {
280
+ [positionSel, sel] = parsePositionSelector(sel);
281
+ ctx = ctx.previousElementSibling;
282
+ ctx = matches(ctx, positionSel) ? ctx : null;
283
+ if (!sel && isSingle) {
276
284
  return ctx;
277
285
  }
278
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
279
- return _doQuery(
280
- parent(context),
281
- queryFn,
282
- `:scope :nth-child(${index(context) + 1}) ${sel}`
283
- );
284
286
  }
285
- if (ctx) {
286
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
287
+ if (!ctx) {
288
+ continue;
289
+ }
290
+ if (isSingle) {
291
+ if (sel[0] === "~" || sel[0] === "+") {
292
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
293
+ ctx = ctx.parentElement;
294
+ } else if (sel[0] === ">") {
295
+ sel = `:scope ${sel}`;
296
+ }
297
+ return _doQuery(ctx, queryFn, sel);
287
298
  }
299
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
288
300
  }
289
301
  if (!isDocument(context)) {
290
302
  context = context.ownerDocument;
@@ -341,10 +353,7 @@
341
353
  }
342
354
 
343
355
  function getMaxPathLength(el) {
344
- return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
345
- var _a;
346
- return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
347
- })));
356
+ return isVisible(el) ? Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => stroke.getTotalLength()))) : 0;
348
357
  }
349
358
 
350
359
  const props = {
@@ -548,6 +557,7 @@
548
557
  }
549
558
  };
550
559
  }
560
+ const loading = {};
551
561
  const dimensions = {};
552
562
  function getBackgroundImageDimensions(el) {
553
563
  const src = util.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -557,11 +567,12 @@
557
567
  const image = new Image();
558
568
  if (src) {
559
569
  image.src = src;
560
- if (!image.naturalWidth) {
561
- image.onload = () => {
570
+ if (!image.naturalWidth && !loading[src]) {
571
+ util.once(image, "error load", () => {
562
572
  dimensions[src] = toDimensions(image);
563
573
  util.trigger(el, util.createEvent("load", false));
564
- };
574
+ });
575
+ loading[src] = true;
565
576
  return toDimensions(image);
566
577
  }
567
578
  }
@@ -1336,7 +1347,6 @@
1336
1347
  }
1337
1348
  }
1338
1349
  },
1339
- observe: resize(),
1340
1350
  events: {
1341
1351
  itemshow({ target }) {
1342
1352
  util.addClass(target, this.clsEnter, this.clsSlideActive);
@@ -1465,6 +1475,7 @@
1465
1475
  return { animation: this.animation };
1466
1476
  }
1467
1477
  },
1478
+ observe: resize(),
1468
1479
  events: {
1469
1480
  beforeitemshow({ target }) {
1470
1481
  util.addClass(target, this.clsActive);
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.c6a7fbca6 | 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("uikitslideshow",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow=I(s.UIkit.util))})(this,function(s){"use strict";var I={connected(){s.addClass(this.$el,this.$options.id)}};function ot(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ht(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ht(t,e){for(const{read:n,write:i,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),i&&r!==!1&&s.fastdom.write(()=>{t._connected&&i.call(t,t._data,e)})}}function L(t){return T(s.observeResize,t,"resize")}function dt(t){return T(s.observeIntersection,t)}function ct(t={}){return dt({handler:function(e,n){const{targets:i=this.$el,preload:a=5}=t;for(const r of s.toNodes(s.isFunction(i)?i(this):i))s.$$('[loading="lazy"]',r).slice(0,a-1).forEach(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(r)},...t})}function lt(t){return T((e,n)=>({disconnect:s.on(ft(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){ot(this,n)},...e}}function ft(t){return s.toNodes(t).map(e=>{const{ownerDocument:n}=e,i=s.scrollParent(e,!0);return i===n.scrollingElement?n:i})}var ut={props:{media:Boolean},data:{media:!1},connected(){const t=gt(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 gt(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 n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:ce,from:pt}=Array;function vt(t){return typeof t=="function"}function M(t){return t!==null&&typeof t=="object"}function xt(t){return M(t)&&t===t.window}function bt(t){return U(t)===9}function R(t){return U(t)>=1}function U(t){return!xt(t)&&M(t)&&t.nodeType}function O(t){return typeof t=="string"}function It(t){return t===void 0}function w(t){return p(t)[0]}function p(t){return R(t)?[t]:Array.from(t||[]).filter(R)}function wt(t){const e=Object.create(null);return(n,...i)=>e[n]||(e[n]=t(n,...i))}function P(t,e,n){var i;if(M(e)){for(const a in e)P(t,a,e[a]);return}if(It(n))return(i=w(t))==null?void 0:i.getAttribute(e);for(const a of p(t))vt(n)&&(n=n.call(a,P(a,e))),n===null?$t(a,e):a.setAttribute(e,n)}function $t(t,e){p(t).forEach(n=>n.removeAttribute(e))}function H(t){var e;return(e=w(t))==null?void 0:e.parentElement}function yt(t,e){return p(t).filter(n=>B(n,e))}function B(t,e){return p(t).some(n=>n.matches(e))}function St(t,e){t=w(t);const n=t?pt(t.children):[];return e?yt(n,e):n}function q(t,e){return e?p(t).indexOf(w(e)):St(H(t)).indexOf(t)}function kt(t,e){return p(Nt(t,w(e),"querySelectorAll"))}const _t=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,At=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ct=/\s*,$/,zt=wt(t=>{t=t.replace(_t,"$1 *");let e=!1;const n=[];for(let i of t.match(At))i=i.replace(Ct,"").trim(),i[0]===">"&&(i=`:scope ${i}`),e||(e=["!","+","~","-"].includes(i[0])),n.push(i);return{selector:n.join(","),selectors:n,isContextSelector:e}});function Nt(t,e=document,n){if(!t||!O(t))return t;const i=zt(t);if(!i.isContextSelector)return D(e,n,i.selector);t="";const a=i.selectors.length===1;for(let r of i.selectors){let h=e;if(r[0]==="!"){const o=r.substr(1).trim().split(" ");if(h=H(e).closest(o[0]),r=o.slice(1).join(" ").trim(),!r.length&&a)return h}if(r[0]==="-"){const o=r.substr(1).trim().split(" "),d=(h||e).previousElementSibling;if(h=B(d,r.substr(1))?d:null,r=o.slice(1).join(" "),!r.length&&a)return h}else if(r[0]==="~"||r[0]==="+"&&a)return D(H(e),n,`:scope :nth-child(${q(e)+1}) ${r}`);h&&(t+=`${t?",":""}${Et(h)} ${r}`)}return bt(e)||(e=e.ownerDocument),D(e,n,t)}function D(t,e,n){try{return t[e](n)}catch{return null}}function Et(t){const e=[];for(;t.parentNode;){const n=P(t,"id");if(n){e.unshift(`#${Tt(n)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${q(t)+1})`),e.unshift(i),t=t.parentNode}}return e.join(" > ")}function Tt(t){return O(t)?CSS.escape(t):""}const Mt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Ot(t){const e=Mt.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Pt(n.content.childNodes)}function Pt(t){return t.length>1?t:t[0]}function Ht(t,e){return Dt(t)?p(Ot(t)):kt(t,e)}function Dt(t){return O(t)&&mt(t.trim(),"<")}function Ft(t){return Math.ceil(Math.max(0,...Ht("[stroke]",t).map(e=>{var n;return(n=e.getTotalLength)==null?void 0:n.call(e)})))}const A={x:C,y:C,rotate:C,scale:C,color:F,backgroundColor:F,borderColor:F,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:Wt,stroke:Lt,bgx:G,bgy:G},{keys:V}=Object;K(V(A),"list"),K(V(A),void 0);function C(t,e,n){let i=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,a=r=>s.toFloat(s.toFloat(r).toFixed(i==="px"?0:6))):t==="scale"&&(i="",a=r=>{var h;return N([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(n,h)}${i})`}}function F(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,i=>jt(e,i)),(i,a)=>{const[r,h,o]=J(n,a),d=r.map((f,c)=>(f+=o*(h[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");i[t]=`rgba(${d})`}}function jt(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,n){n.length===1&&n.unshift(0);const i=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(a,r)=>{const h=$(n,r);a.filter=`${a.filter||""} ${t}(${h+i})`}}function Wt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(i,a)=>{i[t]=$(n,a)}}function Lt(t,e,n){n.length===1&&n.unshift(0);const i=N(n),a=Ft(e);return n=b(n.reverse(),r=>(r=s.toFloat(r),i==="%"?r*a/100:r)),n.some(([r])=>r)?(s.css(e,"strokeDasharray",a),(r,h)=>{r.strokeDashoffset=$(n,h)}):s.noop}function G(t,e,n,i){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";i[t]=b(n,o=>s.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in i);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return Rt(t,e,n,i);const h={};for(const o of r)h[o]=X(e,o);return Q(r,h,i)}function Rt(t,e,n,i){const a=Ut(e);if(!a.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in i),o={};for(const c of h){const l=i[c].map(([de])=>de),g=Math.min(...l),m=Math.max(...l),v=l.indexOf(g)<l.indexOf(m),at=m-g;o[c]=`${(v?-at:0)-(v?g:m)}px`,r[c==="bgy"?"height":"width"]+=at}const d=s.Dimensions.cover(a,r);for(const c of h){const l=c==="bgy"?"height":"width",g=d[l]-r[l];o[c]=`max(${X(e,c)},-${g}px) + ${o[c]}`}const f=Q(h,o,i);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function X(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function Q(t,e,n){return function(i,a){for(const r of t){const h=$(n[r],a);i[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const z={};function Ut(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth)?(n.onload=()=>{z[e]=j(n),s.trigger(t,s.createEvent("load",!1))},j(n)):z[e]=j(n)}function j(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=s.toFloat){const n=[],{length:i}=t;let a=0;for(let r=0;r<i;r++){let[h,o]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?s.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===i-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],f=(o-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+f*(a-c+1);a=0}}return n}function J(t,e){const n=s.findIndex(t.slice(1),([,i])=>e<=i)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,i,a]=J(t,e);return n+Math.abs(n-i)*a*(n<i?1:-1)}const Bt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const i of t){const a=(n=i.match)==null?void 0:n.call(i,Bt);if(a)return a[1]}return e}function y(t,e,n){const i=t.style[e],a=s.css(s.css(t,e,n),e);return t.style[e]=i,a}function K(t,e){return t.reduce((n,i)=>(n[i]=e,n),{})}function qt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Vt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[L({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),lt({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),n=s.toPx(this.parallaxEnd,"height",t,!0),i=qt(s.scrolledOver(t,e,n),this.parallaxEasing),[a,r]=this.getIndexAt(i),h=this.getValidIndex(a+Math.ceil(r)),o=this.slides[a],d=this.slides[h],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Gt(this);if(~this.prevIndex)for(const v of new Set([this.index,this.prevIndex]))s.includes([h,a],v)||(l(this.slides[v]),g(this.slides[v]));const m=this.prevIndex!==a||this.index!==h;this.dir=1,this.prevIndex=a,this.index=h,o!==d&&l(o),f(d),m&&c(o),this._translate(o===d?1:r,o,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Gt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:i}=t;return{triggerShow:a,triggerShown:r,triggerHide:h,triggerHidden:o};function a(d){s.hasClass(d,i)&&(h(d),o(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,n)&&s.trigger(d,"itemshown",[t])}function h(d){s.hasClass(d,e)||a(d),s.hasClass(d,n)&&r(d),s.hasClass(d,i)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function o(d){s.hasClass(d,i)&&s.trigger(d,"itemhidden",[t])}}var Xt={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"]}},Y={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(s.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Z(t){return`scale3d(${t}, ${t}, 1)`}function Qt(t,e,n,{animation:i,easing:a}){const{percent:r,translate:h,show:o=s.noop}=i,d=o(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":a;return c-=Math.round(c*s.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(v=>{f||(f=v),Promise.all([s.Transition.start(e,d[1],c,m),s.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},s.noop)})},cancel(){return s.Transition.cancel([e,t])},reset(){for(const c in d[0])s.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=h(c,n);s.css(e,l[1]),s.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){s.trigger(t,s.createEvent(e,!1,!1,n))}var Jt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,i,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((i=this.$options.i18n)==null?void 0:i[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Kt={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 k={passive:!1,capture:!0},tt={passive:!0,capture:!0},Yt="touchstart mousedown",W="touchmove mousemove",et="touchend touchcancel mouseup click input scroll",nt=t=>t.preventDefault();var Zt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const i=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,e(n)}}},events:[{name:Yt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&te(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:W,el(){return this.list},handler:s.noop,...k}],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,W,this.move,k),s.on(document,et,this.end,tt),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",nt,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:i}=this,a=Math.abs(e),r=this.getIndex(i+this.dir),h=st.call(this,i,r);for(;r!==i&&a>h;)this.drag-=h*this.dir,i=r,a-=h,r=this.getIndex(i+this.dir),h=st.call(this,i,r);this.percent=a/h;const o=n[i],d=n[r],f=this.index!==r,c=i===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,i],g)||(s.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=i));(this.index===i&&this.prevIndex!==i||l)&&s.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=i,this.index=r,c||(s.trigger(o,"beforeitemhide",[this]),s.trigger(o,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(s.off(document,W,this.move,k),s.off(document,et,this.end,tt),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",nt,k)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function st(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function te(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const n=Object.keys(e),i=n.concat(t).map(a=>[s.hyphenate(a),`data-${s.hyphenate(a)}`]).flat();return{attributes:n,filter:i}});let ee=1;function it(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ee++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ne={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 n=s.data(e,this.attrItem),i=s.$("a,button",e)||e;let a,r=null;if(s.isNumeric(n)){const h=s.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=it(this,o)),r=o.id),a=this.t("slideX",s.toFloat(n)+1),s.attr(i,"role","tab")}else this.list&&(this.list.id||(this.list.id=it(this,this.list)),r=this.list.id),a=this.t(n);s.attr(i,{"aria-controls":r,"aria-label":s.attr(i,"aria-label")||a})}},slides(t){t.forEach((e,n)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+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 n=0;n<t;n++)s.append(this.nav,`<li ${this.attrItem}="${n}"><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:n}=t,i=s.data(e,this.attrItem);if(!s.isNumeric(i))return;let a=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=s.data(e,this.attrItem),i=s.$("a,button",e)||e;if(s.isNumeric(n)){const r=s.toNumber(n)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(i,"uk-disabled",this.parallax),s.attr(i,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&i&&s.matches(s.parent(e),":focus-within")&&i.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},se={mixins:[Kt,Zt,ne,Jt],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)=>re(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:L(),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 n;if(this.dragging||!this.length||this.parallax)return;const{stack:i}=this,a=e?0:i.length,r=()=>{i.splice(a,1),i.length&&this.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=s.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),f=this.slides[d];if(o===f){r();return}if(this.dir=ie(t,h),this.prevIndex=h,this.index=d,o&&!s.trigger(o,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}const c=this._show(o,f,e).then(()=>{o&&s.trigger(o,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),i.shift(),this._transitioner=null,requestAnimationFrame(()=>i.length&&this.show(i.shift(),!0))});return o&&s.trigger(o,"itemhide",[this]),s.trigger(f,"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,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?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}),!n&&!t)return this._translate(1),Promise.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const i=this._getTransitioner(e===n?!1:e,n);return i.translate(t),i},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,i=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,n*(s.isRtl?-1:1),i)}}};function ie(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function re(t){return .5*t+300}var ae={mixins:[se],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:Y,Transitioner:Qt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){s.addClass(t,this.clsActive)},itemshown({target:t}){s.addClass(t,this.clsActivated)},itemhidden({target:t}){s.removeClass(t,this.clsActive,this.clsActivated)}}},oe={observe:ct({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},he={...Y,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:Z(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Z(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},rt={mixins:[I,ae,Xt,Vt,oe],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:he},watch:{list(t){s.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",rt),rt});
1
+ /*! UIkit 3.19.5-dev.c70b3862f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],I):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=I(i.UIkit.util))})(this,function(i){"use strict";var I={connected(){i.addClass(this.$el,this.$options.id)}};function dt(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&ct(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ct(t,e){for(const{read:n,write:s,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function W(t){return T(i.observeResize,t,"resize")}function lt(t){return T(i.observeIntersection,t)}function ft(t={}){return lt({handler:function(e,n){const{targets:s=this.$el,preload:a=5}=t;for(const r of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',r).slice(0,a-1).forEach(h=>i.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(r)},...t})}function ut(t){return T((e,n)=>({disconnect:i.on(gt(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){dt(this,n)},...e}}function gt(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}var mt={props:{media:Boolean},data:{media:!1},connected(){const t=pt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function pt(t,e){if(i.isString(t)){if(i.startsWith(t,"@"))t=i.toFloat(i.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&i.isNumeric(t)?`(min-width: ${t}px)`:""}function xt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:ge,from:vt}=Array;function bt(t){return typeof t=="function"}function O(t){return t!==null&&typeof t=="object"}function It(t){return O(t)&&t===t.window}function wt(t){return R(t)===9}function L(t){return R(t)>=1}function R(t){return!It(t)&&O(t)&&t.nodeType}function M(t){return typeof t=="string"}function $t(t){return t===void 0}function w(t){return t&&p(t)[0]}function p(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function U(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function P(t,e,n){var s;if(O(e)){for(const a in e)P(t,a,e[a]);return}if($t(n))return(s=w(t))==null?void 0:s.getAttribute(e);for(const a of p(t))bt(n)&&(n=n.call(a,P(a,e))),n===null?yt(a,e):a.setAttribute(e,n)}function yt(t,e){p(t).forEach(n=>n.removeAttribute(e))}const St=Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function kt(t){return p(t).some(e=>St.call(e))}function _t(t){var e;return(e=w(t))==null?void 0:e.parentElement}function At(t,e){return p(t).filter(n=>B(n,e))}function B(t,e){return p(t).some(n=>n.matches(e))}function Ct(t,e){t=w(t);const n=t?vt(t.children):[];return e?At(n,e):n}function V(t,e){return e?p(t).indexOf(w(e)):Ct(_t(t)).indexOf(t)}function zt(t,e){return p(Mt(t,w(e),"querySelectorAll"))}const Nt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Et=/.*?[^\\](?![^(]*\))(?:,|$)/g,Tt=/\s*,$/,Ot=U(t=>{var e;t=t.replace(Nt,"$1 *");let n=!1;const s=[];for(let a of(e=t.match(Et))!=null?e:[])a=a.replace(Tt,"").trim(),n||(n=["!","+","~","-",">"].includes(a[0])),s.push(a);return{selector:s.join(","),selectors:s,isContextSelector:n}}),q=U(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Mt(t,e=document,n){if(!t||!M(t))return t;const s=Ot(t);if(!s.isContextSelector)return H(e,n,s.selector);t="";const a=s.selectors.length===1;for(let r of s.selectors){let h,o=e;if(r[0]==="!"&&([h,r]=q(r),o=e.parentElement.closest(h),!r&&a)||o&&r[0]==="-"&&([h,r]=q(r),o=o.previousElementSibling,o=B(o,h)?o:null,!r&&a))return o;if(o){if(a)return r[0]==="~"||r[0]==="+"?(r=`:scope :nth-child(${V(o)+1}) ${r}`,o=o.parentElement):r[0]===">"&&(r=`:scope ${r}`),H(o,n,r);t+=`${t?",":""}${Pt(o)} ${r}`}}return wt(e)||(e=e.ownerDocument),H(e,n,t)}function H(t,e,n){try{return t[e](n)}catch{return null}}function Pt(t){const e=[];for(;t.parentNode;){const n=P(t,"id");if(n){e.unshift(`#${Ht(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${V(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Ht(t){return M(t)?CSS.escape(t):""}const Ft=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const e=Ft.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),jt(n.content.childNodes)}function jt(t){return t.length>1?t:t[0]}function Wt(t,e){return Lt(t)?p(Dt(t)):zt(t,e)}function Lt(t){return M(t)&&xt(t.trim(),"<")}function Rt(t){return kt(t)?Math.ceil(Math.max(0,...Wt("[stroke]",t).map(e=>e.getTotalLength()))):0}const A={x:C,y:C,rotate:C,scale:C,color:F,backgroundColor:F,borderColor:F,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:Bt,stroke:Vt,bgx:X,bgy:X},{keys:G}=Object;Z(G(A),"list"),Z(G(A),void 0);function C(t,e,n){let s=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,a=r=>i.toFloat(i.toFloat(r).toFixed(s==="px"?0:6))):t==="scale"&&(s="",a=r=>{var h;return N([r])?i.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(n,h)}${s})`}}function F(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,s=>Ut(e,s)),(s,a)=>{const[r,h,o]=Y(n,a),d=r.map((f,c)=>(f+=o*(h[c]-f),c===3?i.toFloat(f):parseInt(f,10))).join(",");s[t]=`rgba(${d})`}}function Ut(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function v(t,e,n){n.length===1&&n.unshift(0);const s=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(a,r)=>{const h=$(n,r);a.filter=`${a.filter||""} ${t}(${h+s})`}}function Bt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(s,a)=>{s[t]=$(n,a)}}function Vt(t,e,n){n.length===1&&n.unshift(0);const s=N(n),a=Rt(e);return n=b(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,h)=>{r.strokeDashoffset=$(n,h)}):i.noop}function X(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=b(n,o=>i.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in s);if(r.length===2&&t==="bgx")return i.noop;if(y(e,"backgroundSize","")==="cover")return qt(t,e,n,s);const h={};for(const o of r)h[o]=Q(e,o);return J(r,h,s)}function qt(t,e,n,s){const a=Gt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in s),o={};for(const c of h){const l=s[c].map(([ue])=>ue),g=Math.min(...l),m=Math.max(...l),x=l.indexOf(g)<l.indexOf(m),ht=m-g;o[c]=`${(x?-ht:0)-(x?g:m)}px`,r[c==="bgy"?"height":"width"]+=ht}const d=i.Dimensions.cover(a,r);for(const c of h){const l=c==="bgy"?"height":"width",g=d[l]-r[l];o[c]=`max(${Q(e,c)},-${g}px) + ${o[c]}`}const f=J(h,o,s);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function Q(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const h=$(n[r],a);s[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const K={},z={};function Gt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{z[e]=D(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,D(n)):z[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[h,o]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?i.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],f=(o-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+f*(a-c+1);a=0}}return n}function Y(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const Xt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,Xt);if(a)return a[1]}return e}function y(t,e,n){const s=t.style[e],a=i.css(i.css(t,e,n),e);return t.style[e]=s,a}function Z(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Qt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Jt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[W({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Qt(i.scrolledOver(t,e,n),this.parallaxEasing),[a,r]=this.getIndexAt(s),h=this.getValidIndex(a+Math.ceil(r)),o=this.slides[a],d=this.slides[h],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Kt(this);if(~this.prevIndex)for(const x of new Set([this.index,this.prevIndex]))i.includes([h,a],x)||(l(this.slides[x]),g(this.slides[x]));const m=this.prevIndex!==a||this.index!==h;this.dir=1,this.prevIndex=a,this.index=h,o!==d&&l(o),f(d),m&&c(o),this._translate(o===d?1:r,o,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Kt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:h,triggerHidden:o};function a(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function r(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||a(d),i.hasClass(d,n)&&r(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Yt={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"]}},tt={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(i.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function et(t){return`scale3d(${t}, ${t}, 1)`}function Zt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:h,show:o=i.noop}=s,d=o(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":a;return c-=Math.round(c*i.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(x=>{f||(f=x),Promise.all([i.Transition.start(e,d[1],c,m),i.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},i.noop)})},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=h(c,n);i.css(e,l[1]),i.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}var te={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},ee={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.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&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const k={passive:!1,capture:!0},nt={passive:!0,capture:!0},ne="touchstart mousedown",j="touchmove mousemove",it="touchend touchcancel mouseup click input scroll",st=t=>t.preventDefault();var ie={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:ne,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&se(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:j,el(){return this.list},handler:i.noop,...k}],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,i.on(document,j,this.move,k),i.on(document,it,this.end,nt),i.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||i.on(this.list,"click",st,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,a=Math.abs(e),r=this.getIndex(s+this.dir),h=rt.call(this,s,r);for(;r!==s&&a>h;)this.drag-=h*this.dir,s=r,a-=h,r=this.getIndex(s+this.dir),h=rt.call(this,s,r);this.percent=a/h;const o=n[s],d=n[r],f=this.index!==r,c=s===r;let l;for(const g of[this.index,this.prevIndex])i.includes([r,s],g)||(i.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||l)&&i.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=s,this.index=r,c||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(i.off(document,j,this.move,k),i.off(document,it,this.end,nt),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=(i.isRtl?this.dir*(i.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(()=>i.off(this.list,"click",st,k)),i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function rt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function se(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let re=1;function at(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${re++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ae={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)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation")},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let a,r=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=at(this,o)),r=o.id),a=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=at(this,this.list)),r=this.list.id),a=this.t(n);i.attr(s,{"aria-controls":r,"aria-label":i.attr(s,"aria-label")||a})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){i.empty(this.nav);for(let n=0;n<t;n++)i.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){i.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(i.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:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let a=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const r=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,r),i.toggleClass(s,"uk-disabled",this.parallax),i.attr(s,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},oe={mixins:[ee,ie,ae,te],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(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>de(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,a=e?0:s.length,r=()=>{s.splice(a,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),f=this.slides[d];if(o===f){r();return}if(this.dir=he(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(f,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}const c=this._show(o,f,e).then(()=>{o&&i.trigger(o,"itemhidden",[this]),i.trigger(f,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&i.trigger(o,"itemhide",[this]),i.trigger(f,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return i.clamp(i.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,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?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}),!n&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function he(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function de(t){return .5*t+300}var ce={mixins:[oe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Zt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:W(),events:{beforeitemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},le={observe:ft({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},fe={...tt,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:et(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:et(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},ot={mixins:[I,ce,Yt,Jt,le],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:fe},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",ot),ot});