uikit 3.19.5-dev.57ec46163 → 3.19.5-dev.5db24934f

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 (70) hide show
  1. package/CHANGELOG.md +8 -0
  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 +2 -2
  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 +73 -48
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +74 -49
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +75 -51
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +74 -49
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +74 -49
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +2 -2
  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 +170 -112
  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 +179 -119
  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 +24 -23
  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 +5 -2
  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 +22 -5
  55. package/src/js/core/modal.js +5 -6
  56. package/src/js/core/sticky.js +1 -1
  57. package/src/js/core/switcher.js +5 -1
  58. package/src/js/core/toggle.js +7 -3
  59. package/src/js/mixin/internal/animate-fade.js +1 -3
  60. package/src/js/mixin/parallax.js +7 -3
  61. package/src/js/mixin/slider.js +0 -3
  62. package/src/js/mixin/slideshow.js +3 -0
  63. package/src/js/util/filter.js +7 -14
  64. package/src/js/util/lang.js +1 -1
  65. package/src/js/util/selector.js +71 -38
  66. package/src/js/util/svg.js +1 -12
  67. package/src/less/components/utility.less +1 -1
  68. package/src/scss/components/utility.scss +1 -1
  69. package/tests/js/index.js +12 -10
  70. 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.5db24934f | 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')) :
@@ -579,7 +579,6 @@
579
579
  }
580
580
  }
581
581
  },
582
- observe: resize(),
583
582
  events: {
584
583
  itemshow({ target }) {
585
584
  util.addClass(target, this.clsEnter, this.clsSlideActive);
@@ -758,7 +757,7 @@
758
757
  return value === void 0;
759
758
  }
760
759
  function toNode(element) {
761
- return toNodes(element)[0];
760
+ return element && toNodes(element)[0];
762
761
  }
763
762
  function toNodes(element) {
764
763
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -817,52 +816,83 @@
817
816
  function findAll(selector, context) {
818
817
  return toNodes(_query(selector, toNode(context), "querySelectorAll"));
819
818
  }
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 *"));
819
+ const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
820
+ const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
821
+ const trailingCommaRe = /\s*,$/;
822
+ const parseSelector = memoize((selector) => {
823
+ var _a;
824
+ selector = selector.replace(addStarRe, "$1 *");
825
+ let isContextSelector = false;
826
+ const selectors = [];
827
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
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
+ });
841
+ const parsePositionSelector = memoize((selector) => {
842
+ selector = selector.substr(1).trim();
843
+ const index2 = selector.indexOf(" ");
844
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
845
+ });
824
846
  function _query(selector, context = document, queryFn) {
825
847
  if (!selector || !isString(selector)) {
826
848
  return selector;
827
849
  }
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}`;
850
+ const parsed = parseSelector(selector);
851
+ if (!parsed.isContextSelector) {
852
+ return _doQuery(context, queryFn, parsed.selector);
853
+ }
854
+ selector = "";
855
+ const isSingle = parsed.selectors.length === 1;
856
+ for (let sel of parsed.selectors) {
857
+ let positionSel;
858
+ let ctx = context;
859
+ if (sel[0] === "!") {
860
+ [positionSel, sel] = parsePositionSelector(sel);
861
+ ctx = context.parentElement.closest(positionSel);
862
+ if (!sel && isSingle) {
863
+ return ctx;
850
864
  }
851
865
  }
852
- if (!isDocument(context)) {
853
- context = context.ownerDocument;
866
+ if (ctx && sel[0] === "-") {
867
+ [positionSel, sel] = parsePositionSelector(sel);
868
+ ctx = ctx.previousElementSibling;
869
+ ctx = matches(ctx, positionSel) ? ctx : null;
870
+ if (!sel && isSingle) {
871
+ return ctx;
872
+ }
873
+ } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
874
+ return _doQuery(
875
+ ctx.parentElement,
876
+ queryFn,
877
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
878
+ );
879
+ }
880
+ if (ctx) {
881
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
854
882
  }
855
883
  }
884
+ if (!isDocument(context)) {
885
+ context = context.ownerDocument;
886
+ }
887
+ return _doQuery(context, queryFn, selector);
888
+ }
889
+ function _doQuery(context, queryFn, selector) {
856
890
  try {
857
891
  return context[queryFn](selector);
858
892
  } catch (e) {
859
893
  return null;
860
894
  }
861
895
  }
862
- const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
863
- const splitSelector = memoize(
864
- (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
865
- );
866
896
  function domPath(element) {
867
897
  const names = [];
868
898
  while (element.parentNode) {
@@ -906,18 +936,10 @@
906
936
  }
907
937
 
908
938
  function getMaxPathLength(el) {
909
- return Math.ceil(
910
- Math.max(
911
- 0,
912
- ...$$("[stroke]", el).map((stroke) => {
913
- try {
914
- return stroke.getTotalLength();
915
- } catch (e) {
916
- return 0;
917
- }
918
- })
919
- )
920
- );
939
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
940
+ var _a;
941
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
942
+ })));
921
943
  }
922
944
 
923
945
  const props = {
@@ -1121,6 +1143,7 @@
1121
1143
  }
1122
1144
  };
1123
1145
  }
1146
+ const loading = {};
1124
1147
  const dimensions = {};
1125
1148
  function getBackgroundImageDimensions(el) {
1126
1149
  const src = util.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -1130,11 +1153,12 @@
1130
1153
  const image = new Image();
1131
1154
  if (src) {
1132
1155
  image.src = src;
1133
- if (!image.naturalWidth) {
1134
- image.onload = () => {
1156
+ if (!image.naturalWidth && !loading[src]) {
1157
+ util.once(image, "error load", () => {
1135
1158
  dimensions[src] = toDimensions(image);
1136
1159
  util.trigger(el, util.createEvent("load", false));
1137
- };
1160
+ });
1161
+ loading[src] = true;
1138
1162
  return toDimensions(image);
1139
1163
  }
1140
1164
  }
@@ -1561,7 +1585,7 @@
1561
1585
  util.toggleClass(this.$el, this.clsContainer, !util.$(`.${this.clsContainer}`, this.$el));
1562
1586
  },
1563
1587
  observe: resize({
1564
- target: ({ slides }) => slides
1588
+ target: ({ slides, $el }) => [$el, ...slides]
1565
1589
  }),
1566
1590
  update: {
1567
1591
  write() {
@@ -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.5db24934f | 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&&ut(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ut(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(h=>e.has(h)))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 B(t){return P(s.observeResize,t,"resize")}function mt(t){return P(s.observeIntersection,t)}function pt(t={}){return mt({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(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))i.unobserve(r)},...t})}function xt(t){return P((e,i)=>({disconnect:s.on(vt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function vt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var wt={connected(){s.addClass(this.$el,this.$options.id)}},It={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++]||""))||""}}},bt={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},$t="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var yt={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:$t,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(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),h=G.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=G.call(this,n,r);this.percent=o/h;const a=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(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!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 St(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 kt=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${kt++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var _t={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 h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=X(this,a)),r=a.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))}}}},At={mixins:[bt,yt,_t,It],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)=>Q(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()}},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 h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),l=this.slides[c];if(a===l){r();return}if(this.dir=Ct(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,l,e).then(()=>{a&&s.trigger(a,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&s.trigger(a,"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 Ct(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}var Mt={props:{media:Boolean},data:{media:!1},connected(){const t=Nt(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 Nt(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 Et(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:xe,from:Ot}=Array;function Tt(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Pt(t){return F(t)&&t===t.window}function Dt(t){return K(t)===9}function J(t){return K(t)>=1}function K(t){return!Pt(t)&&F(t)&&t.nodeType}function R(t){return typeof t=="string"}function Ft(t){return t===void 0}function y(t){return t&&p(t)[0]}function p(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function Y(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function j(t,e,i){var n;if(F(e)){for(const o in e)j(t,o,e[o]);return}if(Ft(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Tt(i)&&(i=i.call(o,j(o,e))),i===null?Rt(o,e):o.setAttribute(e,i)}function Rt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function jt(t){var e;return(e=y(t))==null?void 0:e.parentElement}function Wt(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Lt(t,e){t=y(t);const i=t?Ot(t.children):[];return e?Wt(i,e):i}function tt(t,e){return e?p(t).indexOf(y(e)):Lt(jt(t)).indexOf(t)}function Ht(t,e){return p(qt(t,y(e),"querySelectorAll"))}const zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Bt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ut=/\s*,$/,Vt=Y(t=>{var e;t=t.replace(zt,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Bt))!=null?e:[])o=o.replace(Ut,"").trim(),o[0]===">"&&(o=`:scope ${o}`),i||(i=["!","+","~","-"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}}),et=Y(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function qt(t,e=document,i){if(!t||!R(t))return t;const n=Vt(t);if(!n.isContextSelector)return W(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=et(r),a=e.parentElement.closest(h),!r&&o))return a;if(a&&r[0]==="-"){if([h,r]=et(r),a=a.previousElementSibling,a=Z(a,h)?a:null,!r&&o)return a}else if(r[0]==="~"||r[0]==="+"&&o)return W(a.parentElement,i,`:scope :nth-child(${tt(a)+1}) ${r}`);a&&(t+=`${t?",":""}${Gt(a)} ${r}`)}return Dt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Gt(t){const e=[];for(;t.parentNode;){const i=j(t,"id");if(i){e.unshift(`#${Xt(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 Xt(t){return R(t)?CSS.escape(t):""}const Qt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Qt.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 Yt(t,e){return Zt(t)?p(Jt(t)):Ht(t,e)}function Zt(t){return R(t)&&Et(t.trim(),"<")}function te(t){return Math.ceil(Math.max(0,...Yt("[stroke]",t).map(e=>{var i;return(i=e.getTotalLength)==null?void 0:i.call(e)})))}const C={x:M,y:M,rotate:M,scale:M,color:L,backgroundColor:L,borderColor:L,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:se,stroke:ie,bgx:it,bgy:it},{keys:st}=Object;ht(st(C),"list"),ht(st(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 h;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,h)=>{r.transform=`${r.transform||""} ${t}(${S(i,h)}${n})`}}function L(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>ee(e,n)),(n,o)=>{const[r,h,a]=at(i,o),c=r.map((l,d)=>(l+=a*(h[d]-l),d===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${c})`}}function ee(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 h=S(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function se(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ie(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=te(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,h)=>{r.strokeDashoffset=S(i,h)}):s.noop}function it(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,a=>s.toPx(a,o,e));const r=["bgx","bgy"].filter(a=>a in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return ne(t,e,i,n);const h={};for(const a of r)h[a]=nt(e,a);return rt(r,h,n)}function ne(t,e,i,n){const o=re(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const f=n[d].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),A=u-g;a[d]=`${(m?-A:0)-(m?g:u)}px`,r[d==="bgy"?"height":"width"]+=A}const c=s.Dimensions.cover(o,r);for(const d of h){const f=d==="bgy"?"height":"width",g=c[f]-r[f];a[d]=`max(${nt(e,d)},-${g}px) + ${a[d]}`}const l=rt(h,a,n);return(d,f)=>{l(d,f),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function nt(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function rt(t,e,i){return function(n,o){for(const r of t){const h=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const ot={},N={};function re(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&&!ot[e])?(s.once(i,"error load",()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))}),ot[e]=!0,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[h,a]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),a=a?s.toFloat(a)/100:null,r===0?a===null?a=0:a&&i.push([h,0]):r===n-1&&(a===null?a=1:a!==1&&(i.push([h,a]),a=1)),i.push([h,a]),a===null)o++;else if(o){const c=i[r-o-1][1],l=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+l*(o-d+1);o=0}}return i}function at(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]=at(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const oe=/^-?\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,oe);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 ht(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function ae(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var he={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[B({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),xt({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=ae(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),h=this.getValidIndex(o+Math.ceil(r)),a=this.slides[o],c=this.slides[h],{triggerShow:l,triggerShown:d,triggerHide:f,triggerHidden:g}=de(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([h,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==h;this.dir=1,this.prevIndex=o,this.index=h,a!==c&&f(a),l(c),u&&d(a),this._translate(a===c?1:r,a,c)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function de(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:h,triggerHidden:a};function o(c){s.hasClass(c,n)&&(h(c),a(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 h(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 a(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var ce={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"]}},le={observe:pt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function dt(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function fe(t,e,i,{center:n,easing:o,list:r}){const h=t?_(t,r,n):_(e,r,n)+s.dimensions(e).width*i,a=e?_(e,r,n):h+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),z(this.getItemIn(),"itemin",{percent:d,duration:l,timing:g,dir:i}),t&&z(this.getItemIn(!0),"itemout",{percent:1-d,duration:l,timing:g,dir:i}),new Promise(u=>{c||(c=u),s.Transition.start(r,{transform:dt(-a*(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",dt(s.clamp(-a+(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 A=s.includes(f,m),T=m===g,gt=m===u,pe=T||!gt&&(A||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));z(m,`itemtranslate${pe?"in":"out"}`,{dir:i,percent:gt?1-l:T?l:A?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(l=!1){let d=this.getActives(),f=lt(r,_(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 lt(r,_(t||e,r,n))}}}function _(t,e,i){const n=O(t,e);return i?n-ge(t,e):Math.min(n,ct(e))}function ct(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 ge(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 lt(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),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}function z(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var ft={mixins:[wt,At,ce,he,le],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:fe},computed:{finite({finite:t}){return t||ue(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=ct(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:B({target:({slides:t,$el:e})=>[e,...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=Q(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 h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const l=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(l).width*h,r.add(l)}while(this.length>c&&a>e&&a<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,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function ue(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+me(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let l=0;for(const d of[-1,1]){let f=a/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,a/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 me(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",ft),ft});
@@ -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.5db24934f | 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);
@@ -134,52 +134,83 @@
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
+ var _a;
142
+ selector = selector.replace(addStarRe, "$1 *");
143
+ let isContextSelector = false;
144
+ const selectors = [];
145
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
146
+ sel = sel.replace(trailingCommaRe, "").trim();
147
+ if (sel[0] === ">") {
148
+ sel = `:scope ${sel}`;
149
+ }
150
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
151
+ selectors.push(sel);
152
+ }
153
+ return {
154
+ selector: selectors.join(","),
155
+ selectors,
156
+ isContextSelector
157
+ };
158
+ });
159
+ const parsePositionSelector = memoize((selector) => {
160
+ selector = selector.substr(1).trim();
161
+ const index2 = selector.indexOf(" ");
162
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
163
+ });
141
164
  function _query(selector, context = document, queryFn) {
142
165
  if (!selector || !isString(selector)) {
143
166
  return selector;
144
167
  }
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(" ");
168
+ const parsed = parseSelector(selector);
169
+ if (!parsed.isContextSelector) {
170
+ return _doQuery(context, queryFn, parsed.selector);
171
+ }
172
+ selector = "";
173
+ const isSingle = parsed.selectors.length === 1;
174
+ for (let sel of parsed.selectors) {
175
+ let positionSel;
176
+ let ctx = context;
177
+ if (sel[0] === "!") {
178
+ [positionSel, sel] = parsePositionSelector(sel);
179
+ ctx = context.parentElement.closest(positionSel);
180
+ if (!sel && isSingle) {
181
+ return ctx;
164
182
  }
165
- if (ctx) {
166
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
183
+ }
184
+ if (ctx && sel[0] === "-") {
185
+ [positionSel, sel] = parsePositionSelector(sel);
186
+ ctx = ctx.previousElementSibling;
187
+ ctx = matches(ctx, positionSel) ? ctx : null;
188
+ if (!sel && isSingle) {
189
+ return ctx;
167
190
  }
191
+ } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
192
+ return _doQuery(
193
+ ctx.parentElement,
194
+ queryFn,
195
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
196
+ );
168
197
  }
169
- if (!isDocument(context)) {
170
- context = context.ownerDocument;
198
+ if (ctx) {
199
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
171
200
  }
172
201
  }
202
+ if (!isDocument(context)) {
203
+ context = context.ownerDocument;
204
+ }
205
+ return _doQuery(context, queryFn, selector);
206
+ }
207
+ function _doQuery(context, queryFn, selector) {
173
208
  try {
174
209
  return context[queryFn](selector);
175
210
  } catch (e) {
176
211
  return null;
177
212
  }
178
213
  }
179
- const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
180
- const splitSelector = memoize(
181
- (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
182
- );
183
214
  function domPath(element) {
184
215
  const names = [];
185
216
  while (element.parentNode) {
@@ -223,18 +254,10 @@
223
254
  }
224
255
 
225
256
  function getMaxPathLength(el) {
226
- return Math.ceil(
227
- Math.max(
228
- 0,
229
- ...$$("[stroke]", el).map((stroke) => {
230
- try {
231
- return stroke.getTotalLength();
232
- } catch (e) {
233
- return 0;
234
- }
235
- })
236
- )
237
- );
257
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
258
+ var _a;
259
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
260
+ })));
238
261
  }
239
262
 
240
263
  const props = {
@@ -438,6 +461,7 @@
438
461
  }
439
462
  };
440
463
  }
464
+ const loading = {};
441
465
  const dimensions = {};
442
466
  function getBackgroundImageDimensions(el) {
443
467
  const src = uikitUtil.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -447,11 +471,12 @@
447
471
  const image = new Image();
448
472
  if (src) {
449
473
  image.src = src;
450
- if (!image.naturalWidth) {
451
- image.onload = () => {
474
+ if (!image.naturalWidth && !loading[src]) {
475
+ uikitUtil.once(image, "error load", () => {
452
476
  dimensions[src] = toDimensions(image);
453
477
  uikitUtil.trigger(el, uikitUtil.createEvent("load", false));
454
- };
478
+ });
479
+ loading[src] = true;
455
480
  return toDimensions(image);
456
481
  }
457
482
  }
@@ -538,7 +563,7 @@
538
563
  var Component = {
539
564
  mixins: [Parallax],
540
565
  beforeConnect() {
541
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
566
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
542
567
  },
543
568
  disconnected() {
544
569
  this.item = null;
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.57ec46163 | 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 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 sn=/(^|[^\\],)\s*[!>+~-]/,cn=O(n=>n.match(sn)),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),cn(n)){const o=hn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const c=r.substr(1).trim().split(" ");if(i=W(e).closest(c[0]),r=c.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const c=r.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=_(a,r.substr(1))?a:null,r=c.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 wn(n){return Math.ceil(Math.max(0,...xn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const y={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 yn={mixins:[$],props:B(E(y),"list"),data:B(E(y),void 0),computed:{props(n,e){const t={};for(const r in n)r in y&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=y[r](r,e,t[r],t);return o}},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 o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var c;return S([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${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,c,a]=R(t,r),h=i.map((l,f)=>(l+=a*(c[f]-l),f===3?s.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(s.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 c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+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=wn(e);return t=g(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const c={};for(const a of i)c[a]=z(e,a);return H(i,c,o)}function Mn(n,e,t,o){const r=Cn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const u=o[f].map(([jn])=>jn),w=Math.min(...u),N=Math.max(...u),G=u.indexOf(w)<u.indexOf(N),J=N-w;a[f]=`${(G?-J:0)-(G?w:N)}px`,i[f==="bgy"?"height":"width"]+=J}const h=s.Dimensions.cover(r,i);for(const f of c){const u=f==="bgy"?"height":"width",w=h[u]-i[u];a[f]=`max(${z(e,f)},-${w}px) + ${a[f]}`}const l=H(c,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 c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const F={};function Cn(n){const e=s.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),s.trigger(n,s.createEvent("load",!1))},I(t)):F[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,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=s.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=s.css(s.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:[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:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(V(n,r,e)),c=this.getCss(q(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,t,o).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 o=this.getCss(V(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function q(n){return s.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("slideshowParallax",L),L});
1
+ /*! UIkit 3.19.5-dev.5db24934f | 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 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 Y(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 Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:In,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&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function A(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function O(n,e,t){var o;if(C(e)){for(const r in e)O(n,r,e[r]);return}if(en(t))return(o=b(n))==null?void 0:o.getAttribute(e);for(const r of d(n))U(t)&&(t=t.call(r,O(r,e))),t===null?rn(r,e):r.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function on(n){var e;return(e=b(n))==null?void 0:e.parentElement}function sn(n,e){return d(n).filter(t=>E(t,e))}function E(n,e){return d(n).some(t=>t.matches(e))}function cn(n,e){n=b(n);const t=n?k(n.children):[];return e?sn(t,e):t}function W(n,e){return e?d(n).indexOf(b(e)):cn(on(n)).indexOf(n)}function an(n,e){return d(ln(n,b(e),"querySelectorAll"))}const fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=/.*?[^\\](?![^(]*\))(?:,|$)/g,dn=/\s*,$/,hn=A(n=>{var e;n=n.replace(fn,"$1 *");let t=!1;const o=[];for(let r of(e=n.match(un))!=null?e:[])r=r.replace(dn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),t||(t=["!","+","~","-"].includes(r[0])),o.push(r);return{selector:o.join(","),selectors:o,isContextSelector:t}}),D=A(n=>{n=n.substr(1).trim();const e=n.indexOf(" ");return~e?[n.substring(0,e),n.substring(e+1)]:[n,""]});function ln(n,e=document,t){if(!n||!M(n))return n;const o=hn(n);if(!o.isContextSelector)return P(e,t,o.selector);n="";const r=o.selectors.length===1;for(let i of o.selectors){let a,c=e;if(i[0]==="!"&&([a,i]=D(i),c=e.parentElement.closest(a),!i&&r))return c;if(c&&i[0]==="-"){if([a,i]=D(i),c=c.previousElementSibling,c=E(c,a)?c:null,!i&&r)return c}else if(i[0]==="~"||i[0]==="+"&&r)return P(c.parentElement,t,`:scope :nth-child(${W(c)+1}) ${i}`);c&&(n+=`${n?",":""}${gn(c)} ${i}`)}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function gn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${W(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function mn(n){return M(n)?CSS.escape(n):""}const $n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function bn(n){const e=$n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),xn(t.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function pn(n,e){return wn(n)?d(bn(n)):an(n,e)}function wn(n){return M(n)&&Z(n.trim(),"<")}function yn(n){return Math.ceil(Math.max(0,...pn("[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:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Fn,stroke:Cn,bgx:R,bgy:R},{keys:H}=Object;var vn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const r in n)r in y&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=y[r](r,e,t[r],t);return o}},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 o=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var a;return F([i])?s.toPx(i,"width",e,!0)/e[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,r),(i,a)=>{i.transform=`${i.transform||""} ${n}(${x(t,a)}${o})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,o=>Sn(e,o)),(o,r)=>{const[i,a,c]=V(t,r),h=i.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function Sn(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 o=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(r,i)=>{const a=x(t,i);r.filter=`${r.filter||""} ${n}(${a+o})`}}function Fn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(o,r)=>{o[n]=x(t,r)}}function Cn(n,e,t){t.length===1&&t.unshift(0);const o=F(t),r=yn(e);return t=m(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,a)=>{i.strokeDashoffset=x(t,a)}):s.noop}function R(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(t,c=>s.toPx(c,r,e));const i=["bgx","bgy"].filter(c=>c in o);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const a={};for(const c of i)a[c]=z(e,c);return B(i,a,o)}function Mn(n,e,t,o){const r=On(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const u=o[f].map(([jn])=>jn),w=Math.min(...u),_=Math.max(...u),K=u.indexOf(w)<u.indexOf(_),X=_-w;c[f]=`${(K?-X:0)-(K?w:_)}px`,i[f==="bgy"?"height":"width"]+=X}const h=s.Dimensions.cover(r,i);for(const f of a){const u=f==="bgy"?"height":"width",w=h[u]-i[u];c[f]=`max(${z(e,f)},-${w}px) + ${c[f]}`}const l=B(a,c,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 B(n,e,t){return function(o,r){for(const i of n){const a=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${a}px)`}}}const L={},S={};function On(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&&!L[e])?(s.once(t,"error load",()=>{S[e]=I(t),s.trigger(n,s.createEvent("load",!1))}),L[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=e(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&t.push([a,0]):i===o-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)r++;else if(r){const h=t[i-r-1][1],l=(c-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function V(n,e){const t=s.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]=V(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const Pn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,Pn);if(r)return r[1]}return e}function p(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function q(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var Q={mixins:[vn],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:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,r,e)),a=this.getCss(G(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,t,o).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 o=this.getCss(J(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function G(n){return s.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q});