uikit 3.17.12-dev.f1425d280 → 3.18.1-dev.0856bd8a6

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 (260) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/css/uikit-core-rtl.css +577 -504
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +577 -504
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +600 -527
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +600 -527
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +2 -4
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +96 -60
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +96 -60
  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 +11 -6
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +8 -3
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +735 -37
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +8 -3
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +792 -129
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +7 -7
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +2 -8
  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 +299 -273
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +9 -4
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +505 -365
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +3 -3
  43. package/src/images/components/navbar-toggle-icon.svg +1 -1
  44. package/src/images/icons/arrow-up-right.svg +4 -0
  45. package/src/images/icons/git-branch.svg +4 -4
  46. package/src/images/icons/git-fork.svg +4 -4
  47. package/src/images/icons/link-external.svg +5 -0
  48. package/src/images/icons/signal.svg +3 -0
  49. package/src/images/icons/telegram.svg +3 -0
  50. package/src/images/icons/threads.svg +3 -0
  51. package/src/images/icons/x.svg +3 -0
  52. package/src/js/components/countdown.js +1 -3
  53. package/src/js/components/internal/slider-preload.js +6 -0
  54. package/src/js/components/lightbox-panel.js +2 -6
  55. package/src/js/components/parallax.js +1 -20
  56. package/src/js/components/slider.js +38 -18
  57. package/src/js/components/slideshow.js +14 -46
  58. package/src/js/components/sortable.js +7 -6
  59. package/src/js/components/tooltip.js +1 -7
  60. package/src/js/core/accordion.js +1 -1
  61. package/src/js/core/drop.js +3 -5
  62. package/src/js/core/dropnav.js +24 -20
  63. package/src/js/core/height-match.js +7 -3
  64. package/src/js/core/height-placeholder.js +32 -0
  65. package/src/js/core/icon.js +12 -5
  66. package/src/js/core/index.js +2 -0
  67. package/src/js/core/inverse.js +103 -0
  68. package/src/js/core/modal.js +13 -0
  69. package/src/js/core/navbar.js +32 -172
  70. package/src/js/core/responsive.js +2 -29
  71. package/src/js/core/sticky.js +45 -29
  72. package/src/js/core/video.js +5 -1
  73. package/src/js/mixin/modal.js +1 -1
  74. package/src/js/mixin/parallax.js +19 -0
  75. package/src/js/mixin/slider-autoplay.js +1 -3
  76. package/src/js/mixin/slider-drag.js +22 -19
  77. package/src/js/mixin/slider-nav.js +10 -1
  78. package/src/js/mixin/slider-parallax.js +138 -0
  79. package/src/js/mixin/slider-reactive.js +1 -1
  80. package/src/js/mixin/slider.js +25 -3
  81. package/src/js/util/animation.js +14 -14
  82. package/src/js/util/dom.js +2 -2
  83. package/src/js/util/mouse.js +8 -11
  84. package/src/js/util/scroll.js +58 -0
  85. package/src/js/util/selector.js +4 -2
  86. package/src/js/util/style.js +3 -3
  87. package/src/js/util/viewport.js +8 -4
  88. package/src/less/components/align.less +2 -2
  89. package/src/less/components/animation.less +2 -2
  90. package/src/less/components/article.less +2 -2
  91. package/src/less/components/base.less +3 -3
  92. package/src/less/components/card.less +13 -6
  93. package/src/less/components/column.less +3 -3
  94. package/src/less/components/container.less +3 -3
  95. package/src/less/components/divider.less +2 -2
  96. package/src/less/components/dropbar.less +1 -1
  97. package/src/less/components/dropdown.less +1 -1
  98. package/src/less/components/dropnav.less +1 -1
  99. package/src/less/components/form.less +1 -1
  100. package/src/less/components/grid.less +3 -3
  101. package/src/less/components/height.less +1 -1
  102. package/src/less/components/icon.less +3 -3
  103. package/src/less/components/inverse.less +12 -0
  104. package/src/less/components/link.less +1 -1
  105. package/src/less/components/modal.less +3 -3
  106. package/src/less/components/nav.less +66 -0
  107. package/src/less/components/navbar.less +7 -11
  108. package/src/less/components/overlay.less +5 -0
  109. package/src/less/components/position.less +7 -7
  110. package/src/less/components/section.less +6 -5
  111. package/src/less/components/sticky.less +1 -1
  112. package/src/less/components/svg.less +3 -3
  113. package/src/less/components/tile.less +10 -0
  114. package/src/less/components/transition.less +9 -9
  115. package/src/less/components/utility.less +4 -4
  116. package/src/less/components/width.less +7 -7
  117. package/src/less/theme/alert.less +1 -1
  118. package/src/less/theme/align.less +1 -1
  119. package/src/less/theme/animation.less +1 -1
  120. package/src/less/theme/article.less +1 -1
  121. package/src/less/theme/background.less +1 -1
  122. package/src/less/theme/badge.less +1 -1
  123. package/src/less/theme/base.less +1 -1
  124. package/src/less/theme/breadcrumb.less +1 -1
  125. package/src/less/theme/button.less +1 -1
  126. package/src/less/theme/card.less +1 -1
  127. package/src/less/theme/close.less +1 -1
  128. package/src/less/theme/column.less +1 -1
  129. package/src/less/theme/comment.less +1 -1
  130. package/src/less/theme/container.less +1 -1
  131. package/src/less/theme/description-list.less +1 -1
  132. package/src/less/theme/divider.less +1 -1
  133. package/src/less/theme/dotnav.less +1 -1
  134. package/src/less/theme/drop.less +1 -1
  135. package/src/less/theme/dropbar.less +1 -1
  136. package/src/less/theme/dropdown.less +1 -1
  137. package/src/less/theme/form-range.less +1 -1
  138. package/src/less/theme/height.less +1 -1
  139. package/src/less/theme/icon.less +1 -1
  140. package/src/less/theme/iconnav.less +1 -1
  141. package/src/less/theme/inverse.less +1 -1
  142. package/src/less/theme/label.less +1 -1
  143. package/src/less/theme/leader.less +1 -1
  144. package/src/less/theme/lightbox.less +1 -1
  145. package/src/less/theme/margin.less +1 -1
  146. package/src/less/theme/modal.less +1 -1
  147. package/src/less/theme/nav.less +1 -1
  148. package/src/less/theme/navbar.less +3 -3
  149. package/src/less/theme/notification.less +1 -1
  150. package/src/less/theme/offcanvas.less +1 -1
  151. package/src/less/theme/overlay.less +1 -1
  152. package/src/less/theme/padding.less +1 -1
  153. package/src/less/theme/pagination.less +1 -1
  154. package/src/less/theme/position.less +1 -1
  155. package/src/less/theme/search.less +1 -1
  156. package/src/less/theme/spinner.less +1 -1
  157. package/src/less/theme/sticky.less +1 -1
  158. package/src/less/theme/tab.less +2 -2
  159. package/src/less/theme/table.less +1 -1
  160. package/src/less/theme/thumbnav.less +1 -1
  161. package/src/less/theme/tile.less +1 -1
  162. package/src/less/theme/tooltip.less +1 -1
  163. package/src/less/theme/totop.less +1 -1
  164. package/src/less/theme/transition.less +1 -1
  165. package/src/less/theme/utility.less +1 -1
  166. package/src/less/theme/variables.less +1 -1
  167. package/src/less/theme/width.less +1 -1
  168. package/src/less/uikit.less +1 -1
  169. package/src/scss/components/align.scss +2 -2
  170. package/src/scss/components/animation.scss +2 -2
  171. package/src/scss/components/base.scss +2 -2
  172. package/src/scss/components/card.scss +12 -6
  173. package/src/scss/components/column.scss +3 -3
  174. package/src/scss/components/container.scss +3 -3
  175. package/src/scss/components/divider.scss +2 -2
  176. package/src/scss/components/dropnav.scss +1 -1
  177. package/src/scss/components/form.scss +1 -1
  178. package/src/scss/components/grid.scss +3 -3
  179. package/src/scss/components/height.scss +1 -1
  180. package/src/scss/components/icon.scss +3 -3
  181. package/src/scss/components/inverse.scss +12 -0
  182. package/src/scss/components/modal.scss +3 -3
  183. package/src/scss/components/nav.scss +63 -0
  184. package/src/scss/components/navbar.scss +5 -8
  185. package/src/scss/components/overlay.scss +4 -0
  186. package/src/scss/components/position.scss +7 -7
  187. package/src/scss/components/section.scss +6 -5
  188. package/src/scss/components/sticky.scss +1 -1
  189. package/src/scss/components/svg.scss +3 -3
  190. package/src/scss/components/tile.scss +8 -0
  191. package/src/scss/components/transition.scss +9 -9
  192. package/src/scss/components/utility.scss +4 -4
  193. package/src/scss/components/width.scss +7 -7
  194. package/src/scss/mixins-theme.scss +10 -7
  195. package/src/scss/mixins.scss +7 -4
  196. package/src/scss/theme/alert.scss +1 -0
  197. package/src/scss/theme/align.scss +1 -1
  198. package/src/scss/theme/animation.scss +1 -1
  199. package/src/scss/theme/article.scss +1 -1
  200. package/src/scss/theme/background.scss +1 -1
  201. package/src/scss/theme/badge.scss +1 -1
  202. package/src/scss/theme/base.scss +1 -1
  203. package/src/scss/theme/breadcrumb.scss +1 -1
  204. package/src/scss/theme/button.scss +1 -1
  205. package/src/scss/theme/card.scss +1 -0
  206. package/src/scss/theme/close.scss +1 -1
  207. package/src/scss/theme/column.scss +1 -1
  208. package/src/scss/theme/comment.scss +1 -1
  209. package/src/scss/theme/container.scss +1 -1
  210. package/src/scss/theme/description-list.scss +1 -1
  211. package/src/scss/theme/divider.scss +1 -1
  212. package/src/scss/theme/dotnav.scss +1 -0
  213. package/src/scss/theme/drop.scss +1 -1
  214. package/src/scss/theme/dropbar.scss +1 -1
  215. package/src/scss/theme/dropdown.scss +1 -1
  216. package/src/scss/theme/form-range.scss +1 -1
  217. package/src/scss/theme/height.scss +1 -1
  218. package/src/scss/theme/icon.scss +1 -1
  219. package/src/scss/theme/iconnav.scss +1 -1
  220. package/src/scss/theme/inverse.scss +1 -1
  221. package/src/scss/theme/label.scss +1 -1
  222. package/src/scss/theme/leader.scss +1 -1
  223. package/src/scss/theme/lightbox.scss +1 -1
  224. package/src/scss/theme/margin.scss +1 -1
  225. package/src/scss/theme/modal.scss +1 -0
  226. package/src/scss/theme/nav.scss +1 -1
  227. package/src/scss/theme/navbar.scss +1 -1
  228. package/src/scss/theme/notification.scss +1 -1
  229. package/src/scss/theme/offcanvas.scss +1 -1
  230. package/src/scss/theme/overlay.scss +1 -1
  231. package/src/scss/theme/padding.scss +1 -1
  232. package/src/scss/theme/pagination.scss +1 -1
  233. package/src/scss/theme/position.scss +1 -1
  234. package/src/scss/theme/search.scss +1 -1
  235. package/src/scss/theme/spinner.scss +1 -1
  236. package/src/scss/theme/sticky.scss +1 -1
  237. package/src/scss/theme/tab.scss +1 -1
  238. package/src/scss/theme/table.scss +1 -0
  239. package/src/scss/theme/thumbnav.scss +1 -1
  240. package/src/scss/theme/tile.scss +1 -1
  241. package/src/scss/theme/tooltip.scss +1 -1
  242. package/src/scss/theme/totop.scss +1 -1
  243. package/src/scss/theme/transition.scss +1 -1
  244. package/src/scss/theme/utility.scss +1 -1
  245. package/src/scss/theme/variables.scss +1 -1
  246. package/src/scss/theme/width.scss +1 -1
  247. package/src/scss/uikit.scss +1 -1
  248. package/src/scss/variables-theme.scss +20 -5
  249. package/src/scss/variables.scss +20 -5
  250. package/tests/height.html +58 -1
  251. package/tests/icon.html +38 -10
  252. package/tests/nav.html +42 -0
  253. package/tests/navbar.html +1 -1
  254. package/tests/offcanvas.html +8 -8
  255. package/tests/search.html +300 -202
  256. package/tests/slider.html +58 -0
  257. package/tests/slideshow.html +66 -0
  258. package/tests/sticky-navbar.html +381 -23
  259. package/src/images/icons/pagekit.svg +0 -3
  260. package/src/js/mixin/internal/scroll.js +0 -39
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | 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')) :
@@ -20,6 +20,53 @@
20
20
  }
21
21
  }
22
22
 
23
+ let prevented;
24
+ function preventBackgroundScroll(el) {
25
+ const off = util.on(el, "touchstart", (e) => {
26
+ if (e.targetTouches.length !== 1 || util.matches(e.target, 'input[type="range"')) {
27
+ return;
28
+ }
29
+ let prev = util.getEventPos(e).y;
30
+ const offMove = util.on(
31
+ el,
32
+ "touchmove",
33
+ (e2) => {
34
+ const pos = util.getEventPos(e2).y;
35
+ if (pos === prev) {
36
+ return;
37
+ }
38
+ prev = pos;
39
+ if (!util.scrollParents(e2.target).some((scrollParent) => {
40
+ if (!el.contains(scrollParent)) {
41
+ return false;
42
+ }
43
+ let { scrollHeight, clientHeight } = scrollParent;
44
+ return clientHeight < scrollHeight;
45
+ })) {
46
+ e2.preventDefault();
47
+ }
48
+ },
49
+ { passive: false }
50
+ );
51
+ util.once(el, "scroll touchend touchcanel", offMove, { capture: true });
52
+ });
53
+ if (prevented) {
54
+ return off;
55
+ }
56
+ prevented = true;
57
+ const { scrollingElement } = document;
58
+ util.css(scrollingElement, {
59
+ overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden",
60
+ touchAction: "none",
61
+ paddingRight: util.width(window) - scrollingElement.clientWidth || ""
62
+ });
63
+ return () => {
64
+ prevented = false;
65
+ off();
66
+ util.css(scrollingElement, { overflowY: "", touchAction: "", paddingRight: "" });
67
+ };
68
+ }
69
+
23
70
  var Class = {
24
71
  connected() {
25
72
  util.addClass(this.$el, this.$options.id);
@@ -40,39 +87,6 @@
40
87
  }
41
88
  };
42
89
 
43
- let prevented;
44
- function preventBackgroundScroll(el) {
45
- const off = util.on(
46
- el,
47
- "touchmove",
48
- (e) => {
49
- if (e.targetTouches.length !== 1 || util.matches(e.target, 'input[type="range"')) {
50
- return;
51
- }
52
- let { scrollHeight, clientHeight, scrollWidth, clientWidth } = util.scrollParent(e.target);
53
- if (e.cancelable && clientHeight >= scrollHeight && clientWidth >= scrollWidth) {
54
- e.preventDefault();
55
- }
56
- },
57
- { passive: false }
58
- );
59
- if (prevented) {
60
- return off;
61
- }
62
- prevented = true;
63
- const { scrollingElement } = document;
64
- util.css(scrollingElement, {
65
- overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden",
66
- touchAction: "none",
67
- paddingRight: util.width(window) - scrollingElement.clientWidth || ""
68
- });
69
- return () => {
70
- prevented = false;
71
- off();
72
- util.css(scrollingElement, { overflowY: "", touchAction: "", paddingRight: "" });
73
- };
74
- }
75
-
76
90
  var Togglable = {
77
91
  props: {
78
92
  cls: Boolean,
@@ -643,9 +657,7 @@
643
657
  events: [
644
658
  {
645
659
  name: "visibilitychange",
646
- el() {
647
- return document;
648
- },
660
+ el: () => document,
649
661
  filter() {
650
662
  return this.autoplay;
651
663
  },
@@ -678,6 +690,7 @@
678
690
  const pointerDown = "touchstart mousedown";
679
691
  const pointerMove = "touchmove mousemove";
680
692
  const pointerUp = "touchend touchcancel mouseup click input scroll";
693
+ const preventClick = (e) => e.preventDefault();
681
694
  var SliderDrag = {
682
695
  props: {
683
696
  draggable: Boolean
@@ -705,7 +718,7 @@
705
718
  return `${this.selList} > *`;
706
719
  },
707
720
  handler(e) {
708
- if (!this.draggable || !util.isTouch(e) && hasSelectableText(e.target) || e.target.closest(util.selInput) || e.button > 0 || this.length < 2) {
721
+ if (!this.draggable || this.parallax || !util.isTouch(e) && hasSelectableText(e.target) || e.target.closest(util.selInput) || e.button > 0 || this.length < 2) {
709
722
  return;
710
723
  }
711
724
  this.start(e);
@@ -749,20 +762,22 @@
749
762
  if (distance === 0 || this.prevPos === this.pos || !this.dragging && Math.abs(distance) < this.threshold) {
750
763
  return;
751
764
  }
752
- util.css(this.list, "pointerEvents", "none");
765
+ if (!this.dragging) {
766
+ util.on(this.list, "click", preventClick, pointerOptions);
767
+ }
753
768
  e.cancelable && e.preventDefault();
754
769
  this.dragging = true;
755
770
  this.dir = distance < 0 ? 1 : -1;
756
771
  let { slides, prevIndex } = this;
757
772
  let dis = Math.abs(distance);
758
773
  let nextIndex = this.getIndex(prevIndex + this.dir);
759
- let width = this._getDistance(prevIndex, nextIndex);
774
+ let width = getDistance.call(this, prevIndex, nextIndex);
760
775
  while (nextIndex !== prevIndex && dis > width) {
761
776
  this.drag -= width * this.dir;
762
777
  prevIndex = nextIndex;
763
778
  dis -= width;
764
779
  nextIndex = this.getIndex(prevIndex + this.dir);
765
- width = this._getDistance(prevIndex, nextIndex);
780
+ width = getDistance.call(this, prevIndex, nextIndex);
766
781
  }
767
782
  this.percent = dis / width;
768
783
  const prev = slides[prevIndex];
@@ -785,14 +800,14 @@
785
800
  if (changed) {
786
801
  this.prevIndex = prevIndex;
787
802
  this.index = nextIndex;
788
- !edge && util.trigger(prev, "beforeitemhide", [this]);
803
+ if (!edge) {
804
+ util.trigger(prev, "beforeitemhide", [this]);
805
+ util.trigger(prev, "itemhide", [this]);
806
+ }
789
807
  util.trigger(next, "beforeitemshow", [this]);
790
- }
791
- this._transitioner = this._translate(Math.abs(this.percent), prev, !edge && next);
792
- if (changed) {
793
- !edge && util.trigger(prev, "itemhide", [this]);
794
808
  util.trigger(next, "itemshow", [this]);
795
809
  }
810
+ this._transitioner = this._translate(Math.abs(this.percent), prev, !edge && next);
796
811
  },
797
812
  end() {
798
813
  util.off(document, pointerMove, this.move, pointerOptions);
@@ -816,14 +831,15 @@
816
831
  );
817
832
  }
818
833
  }
819
- util.css(this.list, { userSelect: "", pointerEvents: "" });
834
+ setTimeout(() => util.off(this.list, "click", preventClick, pointerOptions));
835
+ util.css(this.list, { userSelect: "" });
820
836
  this.drag = this.percent = null;
821
- },
822
- _getDistance(prev, next) {
823
- return this._getTransitioner(prev, prev !== next && next).getDistance() || this.slides[prev].offsetWidth;
824
837
  }
825
838
  }
826
839
  };
840
+ function getDistance(prev, next) {
841
+ return this._getTransitioner(prev, prev !== next && next).getDistance() || this.slides[prev].offsetWidth;
842
+ }
827
843
  function hasSelectableText(el) {
828
844
  return util.css(el, "userSelect") !== "none" && util.toArray(el.childNodes).some((el2) => el2.nodeType === 3 && el2.textContent.trim());
829
845
  }
@@ -958,6 +974,9 @@
958
974
  delegate() {
959
975
  return this.selNavItem;
960
976
  },
977
+ filter() {
978
+ return !this.parallax;
979
+ },
961
980
  handler(e) {
962
981
  if (e.target.closest("a,button") && (e.type === "click" || e.keyCode === keyMap.SPACE)) {
963
982
  e.preventDefault();
@@ -974,6 +993,9 @@
974
993
  delegate() {
975
994
  return this.selNavItem;
976
995
  },
996
+ filter() {
997
+ return !this.parallax;
998
+ },
977
999
  handler(e) {
978
1000
  const { current, keyCode } = e;
979
1001
  const cmd = util.data(current, this.attrItem);
@@ -998,9 +1020,10 @@
998
1020
  const item = util.toNumber(cmd);
999
1021
  const active = item === index;
1000
1022
  util.toggleClass(el, this.clsActive, active);
1023
+ util.toggleClass(button, "uk-disabled", this.parallax);
1001
1024
  util.attr(button, {
1002
1025
  "aria-selected": active,
1003
- tabindex: active ? null : -1
1026
+ tabindex: active && !this.parallax ? null : -1
1004
1027
  });
1005
1028
  if (active && button && util.matches(util.parent(el), ":focus-within")) {
1006
1029
  button.focus();
@@ -1020,7 +1043,7 @@
1020
1043
  var Slider = {
1021
1044
  mixins: [SliderAutoplay, SliderDrag, SliderNav, I18n],
1022
1045
  props: {
1023
- clsActivated: Boolean,
1046
+ clsActivated: String,
1024
1047
  easing: String,
1025
1048
  index: Number,
1026
1049
  finite: Boolean,
@@ -1035,7 +1058,10 @@
1035
1058
  stack: [],
1036
1059
  percent: 0,
1037
1060
  clsActive: "uk-active",
1038
- clsActivated: false,
1061
+ clsActivated: "",
1062
+ clsEnter: "uk-slide-enter",
1063
+ clsLeave: "uk-slide-leave",
1064
+ clsSlideActive: "uk-slide-active",
1039
1065
  Transitioner: false,
1040
1066
  transitionOptions: {}
1041
1067
  }),
@@ -1068,10 +1094,24 @@
1068
1094
  }
1069
1095
  },
1070
1096
  observe: resize(),
1097
+ events: {
1098
+ itemshow({ target }) {
1099
+ util.addClass(target, this.clsEnter, this.clsSlideActive);
1100
+ },
1101
+ itemshown({ target }) {
1102
+ util.removeClass(target, this.clsEnter);
1103
+ },
1104
+ itemhide({ target }) {
1105
+ util.addClass(target, this.clsLeave);
1106
+ },
1107
+ itemhidden({ target }) {
1108
+ util.removeClass(target, this.clsLeave, this.clsSlideActive);
1109
+ }
1110
+ },
1071
1111
  methods: {
1072
1112
  show(index, force = false) {
1073
1113
  var _a;
1074
- if (this.dragging || !this.length) {
1114
+ if (this.dragging || !this.length || this.parallax) {
1075
1115
  return;
1076
1116
  }
1077
1117
  const { stack } = this;
@@ -1286,9 +1326,7 @@
1286
1326
  {
1287
1327
  name: "shown",
1288
1328
  self: true,
1289
- handler() {
1290
- this.showControls();
1291
- }
1329
+ handler: "showControls"
1292
1330
  },
1293
1331
  {
1294
1332
  name: "hide",
@@ -1308,9 +1346,7 @@
1308
1346
  },
1309
1347
  {
1310
1348
  name: "keyup",
1311
- el() {
1312
- return document;
1313
- },
1349
+ el: () => document,
1314
1350
  handler({ keyCode }) {
1315
1351
  if (!this.isToggled(this.$el) || !this.draggable) {
1316
1352
  return;
@@ -1 +1 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(e,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],w):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitLightbox=w(e.UIkit.util))})(this,function(e){"use strict";function w(t,s=[]){try{return t?e.startsWith(t,"{")?JSON.parse(t):s.length&&!e.includes(t,":")?{[s[0]]:t}:t.split(";").reduce((i,n)=>{const[o,r]=n.split(/:(.*)/);return o&&!e.isUndefined(r)&&(i[o.trim()]=r.trim()),i},{}):{}}catch{return{}}}var R={connected(){e.addClass(this.$el,this.$options.id)}},V={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&e.$(t)}}};let P;function G(t){const s=e.on(t,"touchmove",n=>{if(n.targetTouches.length!==1||e.matches(n.target,'input[type="range"'))return;let{scrollHeight:o,clientHeight:r,scrollWidth:h,clientWidth:a}=e.scrollParent(n.target);n.cancelable&&r>=o&&a>=h&&n.preventDefault()},{passive:!1});if(P)return s;P=!0;const{scrollingElement:i}=document;return e.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:e.width(window)-i.clientWidth||""}),()=>{P=!1,s(),e.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var X={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(s=>e.startsWith(t[0],s))},methods:{async toggleElement(t,s,i){try{return await Promise.all(e.toNodes(t).map(n=>{const o=e.isBoolean(s)?s:!this.isToggled(n);if(!e.trigger(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const r=(e.isFunction(i)?i:i===!1||!this.hasAnimation?Y:this.hasTransition?J:K)(n,o,this),h=o?this.clsEnter:this.clsLeave;e.addClass(n,h),e.trigger(n,o?"show":"hide",[this]);const a=()=>{e.removeClass(n,h),e.trigger(n,o?"shown":"hidden",[this])};return r?r.then(a,()=>(e.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=e.toNode(t),e.hasClass(t,this.clsEnter)?!0:e.hasClass(t,this.clsLeave)?!1:this.cls?e.hasClass(t,this.cls.split(" ")[0]):e.isVisible(t)},_toggle(t,s){if(!t)return;s=!!s;let i;this.cls?(i=e.includes(this.cls," ")||s!==e.hasClass(t,this.cls),i&&e.toggleClass(t,this.cls,e.includes(this.cls," ")?void 0:s)):(i=s===t.hidden,i&&(t.hidden=!s)),e.$$("[autofocus]",t).some(n=>e.isVisible(n)?n.focus()||!0:n.blur()),i&&e.trigger(t,"toggled",[s,this])}}};function Y(t,s,{_toggle:i}){return e.Animation.cancel(t),e.Transition.cancel(t),i(t,s)}async function J(t,s,{animation:i,duration:n,velocity:o,transition:r,_toggle:h}){var a;const[l="reveal",d="top"]=((a=i[0])==null?void 0:a.split("-"))||[],c=[["left","right"],["top","bottom"]],p=c[e.includes(c[0],d)?0:1],g=p[1]===d,v=["width","height"][c.indexOf(p)],b=`margin-${p[0]}`,T=`margin-${d}`;let k=e.dimensions(t)[v];const kt=e.Transition.inProgress(t);await e.Transition.cancel(t),s&&h(t,!0);const It=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,T].map(q=>[q,t.style[q]])),I=e.dimensions(t),N=e.toFloat(e.css(t,b)),W=e.toFloat(e.css(t,T)),u=I[v]+W;!kt&&!s&&(k+=W);const[A]=e.wrapInner(t,"<div>");e.css(A,{boxSizing:"border-box",height:I.height,width:I.width,...e.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",T])}),e.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[T]:0,width:I.width,height:I.height,overflow:"hidden",[v]:k});const z=k/u;n=(o*u+n)*(s?1-z:z);const U={[v]:s?u:0};g&&(e.css(t,b,u-k+N),U[b]=s?N:u+N),!g^l==="reveal"&&(e.css(A,b,-u+k),e.Transition.start(A,{[b]:s?0:-u},n,r));try{await e.Transition.start(t,U,n,r)}finally{e.css(t,It),e.unwrap(A.firstChild),s||h(t,!1)}}function K(t,s,i){const{animation:n,duration:o,_toggle:r}=i;return s?(r(t,!0),e.Animation.in(t,n[0],o,i.origin)):e.Animation.out(t,n[1]||n[0],o,i.origin).then(()=>r(t,!1))}const f=[];var Q={mixins:[R,V,X],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},s)=>e.$(t,s),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){e.attr(this.panel||this.$el,"role",this.role),this.overlay&&e.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){e.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:s,defaultPrevented:i}=t,{hash:n}=s;!i&&n&&e.isSameSiteAnchor(s)&&!this.$el.contains(e.$(n))?this.hide():e.matches(s,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===e.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(e.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(s=>s.hide())).then(this.show),t.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){this.stack&&e.css(this.$el,"zIndex",e.toFloat(e.css(this.$el,"zIndex"))+f.length);const t=[this.overlay&&tt(this),this.overlay&&G(this.$el),this.bgClose&&et(this),this.escClose&&st(this)];e.once(this.$el,"hidden",()=>t.forEach(s=>s&&s()),{self:!0}),e.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){e.isFocusable(this.$el)||e.attr(this.$el,"tabindex","-1"),e.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){e.includes(f,this)&&f.splice(f.indexOf(this),1),e.css(this.$el,"zIndex",""),f.some(t=>t.clsPage===this.clsPage)||e.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&e.parent(this.$el)!==this.container?(e.append(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,D)},hide(){return this.toggleElement(this.$el,!1,D)}}};function D(t,s,{transitionElement:i,_toggle:n}){return new Promise((o,r)=>e.once(t,"show hide",()=>{var h;(h=t._reject)==null||h.call(t),t._reject=r,n(t,s);const a=e.once(i,"transitionstart",()=>{e.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),o()},Z(e.css(i,"transitionDuration")))})).then(()=>delete t._reject)}function Z(t){return t?e.endsWith(t,"ms")?e.toFloat(t):e.toFloat(t)*1e3:0}function tt(t){return e.on(document,"focusin",s=>{e.last(f)===t&&!t.$el.contains(s.target)&&t.$el.focus()})}function et(t){return e.on(document,e.pointerDown,({target:s})=>{e.last(f)!==t||t.overlay&&!t.$el.contains(s)||t.panel.contains(s)||e.once(document,`${e.pointerUp} ${e.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:o})=>{!i&&n===e.pointerUp&&s===o&&t.hide()},!0)})}function st(t){return e.on(document,"keydown",s=>{s.keyCode===27&&e.last(f)===t&&t.hide()})}var O={slide:{show(t){return[{transform:y(t*-100)},{transform:y()}]},percent(t){return it(t)},translate(t,s){return[{transform:y(s*-100*t)},{transform:y(s*100*(1-t))}]}}};function it(t){return Math.abs(e.css(t,"transform").split(",")[4]/t.offsetWidth)}function y(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function C(t){return`scale3d(${t}, ${t}, 1)`}function nt(t,s,i,{animation:n,easing:o}){const{percent:r,translate:h,show:a=e.noop}=n,l=a(i);let d;return{dir:i,show(c,p=0,g){const $=g?"linear":o;return c-=Math.round(c*e.clamp(p,-1,1)),this.translate(p),_(s,"itemin",{percent:p,duration:c,timing:$,dir:i}),_(t,"itemout",{percent:1-p,duration:c,timing:$,dir:i}),new Promise(v=>{d||(d=v),Promise.all([e.Transition.start(s,l[1],c,$),e.Transition.start(t,l[0],c,$)]).then(()=>{this.reset(),d()},e.noop)})},cancel(){return e.Transition.cancel([s,t])},reset(){for(const c in l[0])e.css([s,t],c,"")},async forward(c,p=this.percent()){return await this.cancel(),this.show(c,p,!0)},translate(c){this.reset();const p=h(c,i);e.css(s,p[1]),e.css(t,p[0]),_(s,"itemtranslatein",{percent:c,dir:i}),_(t,"itemtranslateout",{percent:1-c,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function _(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}function rt(t,s="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,e.fastdom.read(()=>{t._connected&&ot(t,t._queued),delete t._queued})),t._queued.add(s.type||s))}function ot(t,s){for(const{read:i,write:n,events:o=[]}of t._updates){if(!s.has("update")&&!o.some(h=>s.has(h)))continue;let r;i&&(r=i.call(t,t._data,s),r&&e.isPlainObject(r)&&e.assign(t._data,r)),n&&r!==!1&&e.fastdom.write(()=>{t._connected&&n.call(t,t._data,s)})}}function at(t){return ht(e.observeResize,t,"resize")}function ht(t,s,i){return{observe:t,handler(){rt(this,i)},...s}}var dt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){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,()=>s[r++]||""))||""}}},ct={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){e.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){e.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&e.matches(this.$el,":focus-within")||this.pauseOnHover&&e.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const E={passive:!1,capture:!0},B={passive:!0,capture:!0},lt="touchstart mousedown",S="touchmove mousemove",L="touchend touchcancel mouseup click input scroll";var pt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const s=this[t];this[t]=i=>{const n=e.getEventPos(i).x*(e.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:lt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&ft(t.target)||t.target.closest(e.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:S,el(){return this.list},handler:e.noop,...E}],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,e.on(document,S,this.move,E),e.on(document,L,this.end,B),e.css(this.list,"userSelect","none")},move(t){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),h=this._getDistance(n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=this._getDistance(n,r);this.percent=o/h;const a=i[n],l=i[r],d=this.index!==r,c=n===r;let p;for(const g of[this.index,this.prevIndex])e.includes([r,n],g)||(e.trigger(i[g],"itemhidden",[this]),c&&(p=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||p)&&e.trigger(i[this.index],"itemshown",[this]),d&&(this.prevIndex=n,this.index=r,!c&&e.trigger(a,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!c&&l),d&&(!c&&e.trigger(a,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,S,this.move,E),e.off(document,L,this.end,B),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=(e.isRtl?this.dir*(e.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)}e.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,s){return this._getTransitioner(t,t!==s&&s).getDistance()||this.slides[t].offsetWidth}}};function ft(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}e.memoize((t,s)=>{const i=Object.keys(s),n=i.concat(t).map(o=>[e.hyphenate(o),`data-${e.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let mt=1;function M(t,s=null){return(s==null?void 0:s.id)||`${t.$options.id}-${mt++}`}const m={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var gt={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},s)=>e.$(t,s),navChildren(){return e.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,s){return e.$$(this.selNavItem,s)}},watch:{nav(t,s){e.attr(t,"role","tablist"),s&&this.$emit()},list(t){e.attr(t,"role","presentation")},navChildren(t){e.attr(t,"role","presentation")},navItems(t){for(const s of t){const i=e.data(s,this.attrItem),n=e.$("a,button",s)||s;let o,r=null;if(e.isNumeric(i)){const h=e.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=M(this,a)),r=a.id),o=this.t("slideX",e.toFloat(i)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=M(this,this.list)),r=this.list.id),o=this.t(i);e.attr(n,{"aria-controls":r,"aria-label":e.attr(n,"aria-label")||o})}},slides(t){t.forEach((s,i)=>e.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const s=this.navChildren.length;if(this.nav&&t!==s){e.empty(this.nav);for(let i=0;i<t;i++)e.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){e.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},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===m.SPACE)&&(t.preventDefault(),this.show(e.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:s,keyCode:i}=t,n=e.data(s,this.attrItem);if(!e.isNumeric(n))return;let o=i===m.HOME?0:i===m.END?"last":i===m.LEFT?"previous":i===m.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const s of this.navItems){const i=e.data(s,this.attrItem),n=e.$("a,button",s)||s;if(e.isNumeric(i)){const r=e.toNumber(i)===t;e.toggleClass(s,this.clsActive,r),e.attr(n,{"aria-selected":r,tabindex:r?null:-1}),r&&n&&e.matches(e.parent(s),":focus-within")&&n.focus()}else e.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},ut={mixins:[ct,pt,gt,dt],props:{clsActivated:Boolean,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:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){e.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},s)=>bt(s.offsetWidth/t),list:({selList:t},s)=>e.$(t,s),maxIndex(){return this.length-1},slides(){return e.children(this.list)},length(){return this.slides.length}},watch:{slides(t,s){s&&this.$emit()}},observe:at(),methods:{show(t,s=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](t),!s&&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=e.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(t,this.index),d=this.slides[l];if(a===d){r();return}if(this.dir=vt(t,h),this.prevIndex=h,this.index=l,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(d,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const c=this._show(a,d,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(d,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(d,"itemshow",[this]),c},getIndex(t=this.index,s=this.index){return e.clamp(e.getIndex(t,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,s=this.prevIndex){return this.getIndex(t,s)},_show(t,s,i){if(this._transitioner=this._getTransitioner(t,s,this.dir,{easing:i?s.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,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(e.isNumber(t)?this.slides[t]:t,e.isNumber(s)?this.slides[s]:s,i*(e.isRtl?-1:1),n)}}};function vt(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function bt(t){return .5*t+300}var wt={mixins:[ut],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:nt},computed:{animation({animation:t,Animations:s}){return{...s[t]||s.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){e.addClass(t,this.clsActive)},itemshown({target:t}){e.addClass(t,this.clsActivated)},itemhidden({target:t}){e.removeClass(t,this.clsActive,this.clsActivated)}}},F={...O,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:C(1-.2)},{opacity:1,transform:C(1)}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:C(1-.2*t)},{opacity:t,transform:C(1-.2+.2*t)}]}}},xt={mixins:[Q,wt],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:F,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const t=e.$(this.template),s=e.$(this.selList,t);this.items.forEach(()=>e.append(s,"<li>"));const i=e.$("[uk-close]",t),n=this.t("close");i&&n&&(i.dataset.i18n=JSON.stringify({label:n})),this.$mount(e.append(this.container,t))},computed:{caption:({selCaption:t},s)=>e.$(t,s)},events:[{name:`${e.pointerMove} ${e.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),e.removeClass(this.slides,this.clsActive),e.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;t===m.LEFT?s="previous":t===m.RIGHT?s="next":t===m.HOME?s=0:t===m.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=F.scale,e.removeClass(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){e.html(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,s){const{source:i,type:n,alt:o="",poster:r,attrs:h={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(n==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const d=x("img",{src:i,alt:o,...h});e.on(d,"load",()=>this.setItem(s,d)),e.on(d,"error",()=>this.setError(s))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const d=x("video",{src:i,poster:r,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});e.on(d,"loadedmetadata",()=>this.setItem(s,d)),e.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,x("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...h}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,x("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:d,width:c}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,x("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:c,height:d,...l,...h}))}catch{this.setError(s)}}}],methods:{loadItem(t=this.index){const s=this.getItem(t);this.getSlide(s).childElementCount||e.trigger(this.$el,"itemload",[s])},getItem(t=this.index){return this.items[e.getIndex(t,this.slides)]},setItem(t,s){e.trigger(this.$el,"itemloaded",[this,e.html(this.getSlide(t),s)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),e.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){e.removeClass(this.$el,"uk-active","uk-transition-active")}}};function x(t,s){const i=e.fragment(`<${t}>`);return e.attr(i,s),i}var j={install:$t,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:t},s)=>e.$$(t,s)},watch:{toggles(t){this.hide();for(const s of t)e.isTag(s,"a")&&e.attr(s,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.uk-disabled)`},handler(t){t.preventDefault(),this.show(t.current)}},methods:{show(t){const s=e.uniqueBy(this.toggles.map(H),"source");if(e.isElement(t)){const{source:i}=H(t);t=e.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),e.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function $t(t,s){t.lightboxPanel||t.component("lightboxPanel",xt),e.assign(s.props,t.component("lightboxPanel").options.props)}function H(t){const s={};for(const i of["href","caption","type","poster","alt","attrs"])s[i==="href"?"source":i]=e.data(t,i);return s.attrs=w(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",j),j});
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],w):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=w(t.UIkit.util))})(this,function(t){"use strict";function w(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[o,r]=n.split(/:(.*)/);return o&&!t.isUndefined(r)&&(i[o.trim()]=r.trim()),i},{}):{}}catch{return{}}}let E;function G(e){const s=t.on(e,"touchstart",n=>{if(n.targetTouches.length!==1||t.matches(n.target,'input[type="range"'))return;let o=t.getEventPos(n).y;const r=t.on(e,"touchmove",h=>{const a=t.getEventPos(h).y;a!==o&&(o=a,t.scrollParents(h.target).some(l=>{if(!e.contains(l))return!1;let{scrollHeight:c,clientHeight:d}=l;return d<c})||h.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",r,{capture:!0})});if(E)return s;E=!0;const{scrollingElement:i}=document;return t.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:t.width(window)-i.clientWidth||""}),()=>{E=!1,s(),t.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var X={connected(){t.addClass(this.$el,this.$options.id)}},Y={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}},J={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const o=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(i)?i:i===!1||!this.hasAnimation?K:this.hasTransition?Q:Z)(n,o,this),h=o?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,o?"show":"hide",[this]);const a=()=>{t.removeClass(n,h),t.trigger(n,o?"shown":"hidden",[this])};return r?r.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),t.$$("[autofocus]",e).some(n=>t.isVisible(n)?n.focus()||!0:n.blur()),i&&t.trigger(e,"toggled",[s,this])}}};function K(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function Q(e,s,{animation:i,duration:n,velocity:o,transition:r,_toggle:h}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],d=[["left","right"],["top","bottom"]],p=d[t.includes(d[0],c)?0:1],g=p[1]===c,v=["width","height"][d.indexOf(p)],b=`margin-${p[0]}`,_=`margin-${c}`;let y=t.dimensions(e)[v];const Ie=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const Ce=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,_].map(V=>[V,e.style[V]])),I=t.dimensions(e),N=t.toFloat(t.css(e,b)),q=t.toFloat(t.css(e,_)),u=I[v]+q;!Ie&&!s&&(y+=q);const[P]=t.wrapInner(e,"<div>");t.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",_])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[_]:0,width:I.width,height:I.height,overflow:"hidden",[v]:y});const R=y/u;n=(o*u+n)*(s?1-R:R);const W={[v]:s?u:0};g&&(t.css(e,b,u-y+N),W[b]=s?N:u+N),!g^l==="reveal"&&(t.css(P,b,-u+y),t.Transition.start(P,{[b]:s?0:-u},n,r));try{await t.Transition.start(e,W,n,r)}finally{t.css(e,Ce),t.unwrap(P.firstChild),s||h(e,!1)}}function Z(e,s,i){const{animation:n,duration:o,_toggle:r}=i;return s?(r(e,!0),t.Animation.in(e,n[0],o,i.origin)):t.Animation.out(e,n[1]||n[0],o,i.origin).then(()=>r(e,!1))}const f=[];var ee={mixins:[X,Y,J],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel},bgClose({bgClose:e}){return e&&this.panel}},connected(){t.attr(this.panel||this.$el,"role",this.role),this.overlay&&t.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){t.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(s=>s.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+f.length);const e=[this.overlay&&se(this),this.overlay&&G(this.$el),this.bgClose&&ie(this),this.escClose&&ne(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(f,this)&&f.splice(f.indexOf(this),1),t.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,D)},hide(){return this.toggleElement(this.$el,!1,D)}}};function D(e,s,{transitionElement:i,_toggle:n}){return new Promise((o,r)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=r,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),o()},te(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function te(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function se(e){return t.on(document,"focusin",s=>{t.last(f)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function ie(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(f)!==e||e.overlay&&!e.$el.contains(s)||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:o})=>{!i&&n===t.pointerUp&&s===o&&e.hide()},!0)})}function ne(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(f)===e&&e.hide()})}var O={slide:{show(e){return[{transform:C(e*-100)},{transform:C()}]},percent(e){return re(e)},translate(e,s){return[{transform:C(s*-100*e)},{transform:C(s*100*(1-e))}]}}};function re(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)}function C(e=0,s="%"){return e+=e?s:"",`translate3d(${e}, 0, 0)`}function T(e){return`scale3d(${e}, ${e}, 1)`}function oe(e,s,i,{animation:n,easing:o}){const{percent:r,translate:h,show:a=t.noop}=n,l=a(i);let c;return{dir:i,show(d,p=0,g){const k=g?"linear":o;return d-=Math.round(d*t.clamp(p,-1,1)),this.translate(p),A(s,"itemin",{percent:p,duration:d,timing:k,dir:i}),A(e,"itemout",{percent:1-p,duration:d,timing:k,dir:i}),new Promise(v=>{c||(c=v),Promise.all([t.Transition.start(s,l[1],d,k),t.Transition.start(e,l[0],d,k)]).then(()=>{this.reset(),c()},t.noop)})},cancel(){return t.Transition.cancel([s,e])},reset(){for(const d in l[0])t.css([s,e],d,"")},async forward(d,p=this.percent()){return await this.cancel(),this.show(d,p,!0)},translate(d){this.reset();const p=h(d,i);t.css(s,p[1]),t.css(e,p[0]),A(s,"itemtranslatein",{percent:d,dir:i}),A(e,"itemtranslateout",{percent:1-d,dir:i})},percent(){return r(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function A(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ae(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&he(e,e._queued),delete e._queued})),e._queued.add(s.type||s))}function he(e,s){for(const{read:i,write:n,events:o=[]}of e._updates){if(!s.has("update")&&!o.some(h=>s.has(h)))continue;let r;i&&(r=i.call(e,e._data,s),r&&t.isPlainObject(r)&&t.assign(e._data,r)),n&&r!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function ce(e){return de(t.observeResize,e,"resize")}function de(e,s,i){return{observe:e,handler(){ae(this,i)},...s}}var le={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}},pe={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.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&&t.matches(this.$el,":focus-within")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const x={passive:!1,capture:!0},L={passive:!0,capture:!0},fe="touchstart mousedown",S="touchmove mousemove",B="touchend touchcancel mouseup click input scroll",M=e=>e.preventDefault();var me={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:fe,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ge(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:S,el(){return this.list},handler:t.noop,...x}],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,t.on(document,S,this.move,x),t.on(document,B,this.end,L),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;this.dragging||t.on(this.list,"click",M,x),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),h=F.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=F.call(this,n,r);this.percent=o/h;const a=i[n],l=i[r],c=this.index!==r,d=n===r;let p;for(const g of[this.index,this.prevIndex])t.includes([r,n],g)||(t.trigger(i[g],"itemhidden",[this]),d&&(p=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||p)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,d||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(l,"beforeitemshow",[this]),t.trigger(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&l)},end(){if(t.off(document,S,this.move,x),t.off(document,B,this.end,L),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 e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}setTimeout(()=>t.off(this.list,"click",M,x)),t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function F(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ge(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(o=>[t.hyphenate(o),`data-${t.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let ue=1;function j(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${ue++}`}const m={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ve={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),s&&this.$emit()},list(e){t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation")},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let o,r=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=j(this,a)),r=a.id),o=this.t("slideX",t.toFloat(i)+1),t.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=j(this,this.list)),r=this.list.id),o=this.t(i);t.attr(n,{"aria-controls":r,"aria-label":t.attr(n,"aria-label")||o})}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(e){const s=this.navChildren.length;if(this.nav&&e!==s){t.empty(this.nav);for(let i=0;i<e;i++)t.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){t.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===m.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let o=i===m.HOME?0:i===m.END?"last":i===m.LEFT?"previous":i===m.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const r=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,r),t.toggleClass(n,"uk-disabled",this.parallax),t.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}}}},be={mixins:[pe,me,ve,le],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(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>xe(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},observe:ce(),events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&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=t.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(e,this.index),c=this.slides[l];if(a===c){r();return}if(this.dir=we(e,h),this.prevIndex=h,this.index=l,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,c,s).then(()=>{a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),d},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},_show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.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&&!e)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(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function we(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function xe(e){return .5*e+300}var $e={mixins:[be],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:oe},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}},H={...O,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},ke={mixins:[ee,$e],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:H,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=t.$(this.template),s=t.$(this.selList,e);this.items.forEach(()=>t.append(s,"<li>"));const i=t.$("[uk-close]",e),n=this.t("close");i&&n&&(i.dataset.i18n=JSON.stringify({label:n})),this.$mount(t.append(this.container,e))},computed:{caption:({selCaption:e},s)=>t.$(e,s)},events:[{name:`${t.pointerMove} ${t.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:"showControls"},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;e===m.LEFT?s="previous":e===m.RIGHT?s="next":e===m.HOME?s=0:e===m.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=H.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){t.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,alt:o="",poster:r,attrs:h={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(n==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=$("img",{src:i,alt:o,...h});t.on(c,"load",()=>this.setItem(s,c)),t.on(c,"error",()=>this.setError(s))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=$("video",{src:i,poster:r,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});t.on(c,"loadedmetadata",()=>this.setItem(s,c)),t.on(c,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,$("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...h}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,$("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,$("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:d,height:c,...l,...h}))}catch{this.setError(s)}}}],methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function $(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}var z={install:ye,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:e},s)=>t.$$(e,s)},watch:{toggles(e){this.hide();for(const s of e)t.isTag(s,"a")&&t.attr(s,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.uk-disabled)`},handler(e){e.preventDefault(),this.show(e.current)}},methods:{show(e){const s=t.uniqueBy(this.toggles.map(U),"source");if(t.isElement(e)){const{source:i}=U(e);e=t.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function ye(e,s){e.lightboxPanel||e.component("lightboxPanel",ke),t.assign(s.props,e.component("lightboxPanel").options.props)}function U(e){const s={};for(const i of["href","caption","type","poster","alt","attrs"])s[i==="href"?"source":i]=t.data(e,i);return s.attrs=w(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",z),z});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | 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')) :
@@ -1 +1 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | 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')) :
@@ -131,6 +131,9 @@
131
131
  function isWindow(obj) {
132
132
  return isObject(obj) && obj === obj.window;
133
133
  }
134
+ function isDocument(obj) {
135
+ return nodeType(obj) === 9;
136
+ }
134
137
  function isNode(obj) {
135
138
  return nodeType(obj) >= 1;
136
139
  }
@@ -235,7 +238,9 @@
235
238
  selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
236
239
  }
237
240
  }
238
- context = document;
241
+ if (!isDocument(context)) {
242
+ context = context.ownerDocument;
243
+ }
239
244
  }
240
245
  try {
241
246
  return context[queryFn](selector);
@@ -243,7 +248,7 @@
243
248
  return null;
244
249
  }
245
250
  }
246
- const selectorRe = /.*?[^\\](?:,|$)/g;
251
+ const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
247
252
  const splitSelector = memoize(
248
253
  (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
249
254
  );
@@ -601,6 +606,9 @@
601
606
  return data;
602
607
  }, {});
603
608
  }
609
+ function ease(percent, easing) {
610
+ return easing >= 0 ? Math.pow(percent, easing + 1) : 1 - Math.pow(1 - percent, 1 - easing);
611
+ }
604
612
 
605
613
  var Component = {
606
614
  mixins: [Parallax],
@@ -666,9 +674,6 @@
666
674
  events: ["scroll", "resize"]
667
675
  }
668
676
  };
669
- function ease(percent, easing) {
670
- return easing >= 0 ? Math.pow(percent, easing + 1) : 1 - Math.pow(1 - percent, 1 - easing);
671
- }
672
677
  function getOffsetElement(el) {
673
678
  return el ? "offsetTop" in el ? el : getOffsetElement(uikitUtil.parent(el)) : document.documentElement;
674
679
  }
@@ -1 +1 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitParallax=b(s.UIkit.util))})(this,function(s){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,s.fastdom.read(()=>{n._connected&&J(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function J(n,t){for(const{read:e,write:o,events:r=[]}of n._updates){if(!t.has("update")&&!r.some(i=>t.has(i)))continue;let c;e&&(c=e.call(n,n._data,t),c&&s.isPlainObject(c)&&s.assign(n._data,c)),o&&c!==!1&&s.fastdom.write(()=>{n._connected&&o.call(n,n._data,t)})}}function K(n){return _(s.observeResize,n,"resize")}function Q(n){return _((t,e)=>s.observeViewportResize(e),n,"resize")}function X(n){return _((t,e)=>({disconnect:s.on(Y(t),"scroll",e,{passive:!0})}),n,"scroll")}function _(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function Y(n){return s.toNodes(n).map(t=>{const{ownerDocument:e}=t,o=s.scrollParent(t,!0);return o===e.scrollingElement?e:o})}var Z={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 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 k(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 U(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:An,from:nn}=Array;function tn(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function en(n){return M(n)&&n===n.window}function E(n){return rn(n)>=1}function rn(n){return!en(n)&&M(n)&&n.nodeType}function O(n){return typeof n=="string"}function on(n){return n===void 0}function x(n){return d(n)[0]}function d(n){return E(n)?[n]:Array.from(n||[]).filter(E)}function P(n){const t=Object.create(null);return(e,...o)=>t[e]||(t[e]=n(e,...o))}function j(n,t,e){var o;if(M(t)){for(const r in t)j(n,r,t[r]);return}if(on(e))return(o=x(n))==null?void 0:o.getAttribute(t);for(const r of d(n))tn(e)&&(e=e.call(r,j(r,t))),e===null?cn(r,t):r.setAttribute(t,e)}function cn(n,t){d(n).forEach(e=>e.removeAttribute(t))}function I(n){var t;return(t=x(n))==null?void 0:t.parentElement}function sn(n,t){return d(n).filter(e=>A(e,t))}function A(n,t){return d(n).some(e=>e.matches(t))}function an(n,t){n=x(n);const e=n?nn(n.children):[];return t?sn(e,t):e}function fn(n,t){return t?d(n).indexOf(x(t)):an(I(n)).indexOf(n)}function un(n,t){return d(mn(n,x(t),"querySelectorAll"))}const dn=/(^|[^\\],)\s*[!>+~-]/,hn=P(n=>n.match(dn)),ln=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,gn=P(n=>n.replace(ln,"$1 *"));function mn(n,t=document,e){if(!n||!O(n))return n;if(n=gn(n),hn(n)){const o=xn(n);n="";for(let r of o){let c=t;if(r[0]==="!"){const i=r.substr(1).trim().split(" ");if(c=I(t).closest(i[0]),r=i.slice(1).join(" ").trim(),!r.length&&o.length===1)return c}if(r[0]==="-"){const i=r.substr(1).trim().split(" "),a=(c||t).previousElementSibling;c=A(a,r.substr(1))?a:null,r=i.slice(1).join(" ")}c&&(n+=`${n?",":""}${$n(c)} ${r}`)}t=document}try{return t[e](n)}catch{return null}}const bn=/.*?[^\\](?:,|$)/g,xn=P(n=>n.match(bn).map(t=>t.replace(/,$/,"").trim()));function $n(n){const t=[];for(;n.parentNode;){const e=j(n,"id");if(e){t.unshift(`#${pn(e)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${fn(n)+1})`),t.unshift(o),n=n.parentNode}}return t.join(" > ")}function pn(n){return O(n)?CSS.escape(n):""}const wn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function vn(n){const t=wn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),yn(e.content.childNodes)}function yn(n){return n.length>1?n:n[0]}function Sn(n,t){return Fn(n)?d(vn(n)):un(n,t)}function Fn(n){return O(n)&&U(n.trim(),"<")}function _n(n){return Math.ceil(Math.max(0,...Sn("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:y,y,rotate:y,scale:y,color:N,backgroundColor:N,borderColor:N,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Pn,stroke:jn,bgx:q,bgy:q},{keys:T}=Object;var Mn={mixins:[Z],props:H(T(v),"list"),data:H(T(v),void 0),computed:{props(n,t){const e={};for(const r in n)r in v&&!s.isUndefined(n[r])&&(e[r]=n[r].slice());const o={};for(const r in e)o[r]=v[r](r,t,e[r],e);return o}},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 y(n,t,e){let o=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=c=>s.toFloat(s.toFloat(c).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=c=>{var i;return F([c])?s.toPx(c,"width",t,!0)/t[`offset${(i=c.endsWith)!=null&&i.call(c,"vh")?"Height":"Width"}`]:s.toFloat(c)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,r),(c,i)=>{c.transform=`${c.transform||""} ${n}(${$(e,i)}${o})`}}function N(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,o=>On(t,o)),(o,r)=>{const[c,i,a]=D(e,r),h=c.map((l,f)=>(l+=a*(i[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function On(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 o=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(r,c)=>{const i=$(e,c);r.filter=`${r.filter||""} ${n}(${i+o})`}}function Pn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(o,r)=>{o[n]=$(e,r)}}function jn(n,t,e){e.length===1&&e.unshift(0);const o=F(e),r=_n(t);return e=m(e.reverse(),c=>(c=s.toFloat(c),o==="%"?c*r/100:c)),e.some(([c])=>c)?(s.css(t,"strokeDasharray",r),(c,i)=>{c.strokeDashoffset=$(e,i)}):s.noop}function q(n,t,e,o){e.length===1&&e.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(e,a=>s.toPx(a,r,t));const c=["bgx","bgy"].filter(a=>a in o);if(c.length===2&&n==="bgx")return s.noop;if(p(t,"backgroundSize","")==="cover")return Nn(n,t,e,o);const i={};for(const a of c)i[a]=W(t,a);return R(c,i,o)}function Nn(n,t,e,o){const r=zn(t);if(!r.width)return s.noop;const c={width:t.offsetWidth,height:t.offsetHeight},i=["bgx","bgy"].filter(f=>f in o),a={};for(const f of i){const u=o[f].map(([In])=>In),w=Math.min(...u),C=Math.max(...u),V=u.indexOf(w)<u.indexOf(C),G=C-w;a[f]=`${(V?-G:0)-(V?w:C)}px`,c[f==="bgy"?"height":"width"]+=G}const h=s.Dimensions.cover(r,c);for(const f of i){const u=f==="bgy"?"height":"width",w=h[u]-c[u];a[f]=`max(${W(t,f)},-${w}px) + ${a[f]}`}const l=R(i,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function W(n,t){return p(n,`background-position-${t.substr(-1)}`,"")}function R(n,t,e){return function(o,r){for(const c of n){const i=$(e[c],r);o[`background-position-${c.substr(-1)}`]=`calc(${t[c]} + ${i}px)`}}}const S={};function zn(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)?(e.onload=()=>{S[t]=z(e),s.trigger(n,s.createEvent("load",!1))},z(e)):S[t]=z(e)}function z(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=s.toFloat){const e=[],{length:o}=n;let r=0;for(let c=0;c<o;c++){let[i,a]=s.isString(n[c])?n[c].trim().split(/ (?![^(]*\))/):[n[c]];if(i=t(i),a=a?s.toFloat(a)/100:null,c===0?a===null?a=0:a&&e.push([i,0]):c===o-1&&(a===null?a=1:a!==1&&(e.push([i,a]),a=1)),e.push([i,a]),a===null)r++;else if(r){const h=e[c-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)e[c-f][1]=h+l*(r-f+1);r=0}}return e}function D(n,t){const e=s.findIndex(n.slice(1),([,o])=>t<=o)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function $(n,t){const[e,o,r]=D(n,t);return e+Math.abs(e-o)*r*(e<o?1:-1)}const Cn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const o of n){const r=(e=o.match)==null?void 0:e.call(o,Cn);if(r)return r[1]}return t}function p(n,t,e){const o=n.style[t],r=s.css(s.css(n,t,e),t);return n.style[t]=o,r}function H(n,t){return n.reduce((e,o)=>(e[o]=t,e),{})}var B={mixins:[Mn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>L(n&&s.query(n,t)||t),start({start:n}){return s.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return s.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[Q(),X({target:({target:n})=>n}),K({target:({$el:n,target:t})=>[n,t,s.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!s.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=En(s.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&s.css(this.$el,n)},events:["scroll","resize"]}};function En(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}function L(n){return n?"offsetTop"in n?n:L(s.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",B),B});
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&K(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function K(n,t){for(const{read:e,write:o,events:r=[]}of n._updates){if(!t.has("update")&&!r.some(s=>t.has(s)))continue;let c;e&&(c=e.call(n,n._data,t),c&&i.isPlainObject(c)&&i.assign(n._data,c)),o&&c!==!1&&i.fastdom.write(()=>{n._connected&&o.call(n,n._data,t)})}}function Q(n){return _(i.observeResize,n,"resize")}function X(n){return _((t,e)=>i.observeViewportResize(e),n,"resize")}function Y(n){return _((t,e)=>({disconnect:i.on(Z(t),"scroll",e,{passive:!0})}),n,"scroll")}function _(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function Z(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,o=i.scrollParent(t,!0);return o===e.scrollingElement?e:o})}var k={props:{media:Boolean},data:{media:!1},connected(){const n=U(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function U(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function nn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:Tn,from:tn}=Array;function en(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function rn(n){return M(n)&&n===n.window}function on(n){return I(n)===9}function E(n){return I(n)>=1}function I(n){return!rn(n)&&M(n)&&n.nodeType}function O(n){return typeof n=="string"}function cn(n){return n===void 0}function $(n){return d(n)[0]}function d(n){return E(n)?[n]:Array.from(n||[]).filter(E)}function P(n){const t=Object.create(null);return(e,...o)=>t[e]||(t[e]=n(e,...o))}function j(n,t,e){var o;if(M(t)){for(const r in t)j(n,r,t[r]);return}if(cn(e))return(o=$(n))==null?void 0:o.getAttribute(t);for(const r of d(n))en(e)&&(e=e.call(r,j(r,t))),e===null?sn(r,t):r.setAttribute(t,e)}function sn(n,t){d(n).forEach(e=>e.removeAttribute(t))}function A(n){var t;return(t=$(n))==null?void 0:t.parentElement}function an(n,t){return d(n).filter(e=>T(e,t))}function T(n,t){return d(n).some(e=>e.matches(t))}function fn(n,t){n=$(n);const e=n?tn(n.children):[];return t?an(e,t):e}function un(n,t){return t?d(n).indexOf($(t)):fn(A(n)).indexOf(n)}function dn(n,t){return d(bn(n,$(t),"querySelectorAll"))}const hn=/(^|[^\\],)\s*[!>+~-]/,ln=P(n=>n.match(hn)),gn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,mn=P(n=>n.replace(gn,"$1 *"));function bn(n,t=document,e){if(!n||!O(n))return n;if(n=mn(n),ln(n)){const o=xn(n);n="";for(let r of o){let c=t;if(r[0]==="!"){const s=r.substr(1).trim().split(" ");if(c=A(t).closest(s[0]),r=s.slice(1).join(" ").trim(),!r.length&&o.length===1)return c}if(r[0]==="-"){const s=r.substr(1).trim().split(" "),a=(c||t).previousElementSibling;c=T(a,r.substr(1))?a:null,r=s.slice(1).join(" ")}c&&(n+=`${n?",":""}${pn(c)} ${r}`)}on(t)||(t=t.ownerDocument)}try{return t[e](n)}catch{return null}}const $n=/.*?[^\\](?![^(]*\))(?:,|$)/g,xn=P(n=>n.match($n).map(t=>t.replace(/,$/,"").trim()));function pn(n){const t=[];for(;n.parentNode;){const e=j(n,"id");if(e){t.unshift(`#${wn(e)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${un(n)+1})`),t.unshift(o),n=n.parentNode}}return t.join(" > ")}function wn(n){return O(n)?CSS.escape(n):""}const vn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function yn(n){const t=vn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),Sn(e.content.childNodes)}function Sn(n){return n.length>1?n:n[0]}function Fn(n,t){return _n(n)?d(yn(n)):dn(n,t)}function _n(n){return O(n)&&nn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Fn("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:y,y,rotate:y,scale:y,color:N,backgroundColor:N,borderColor:N,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:jn,stroke:Nn,bgx:W,bgy:W},{keys:q}=Object;var On={mixins:[k],props:B(q(v),"list"),data:B(q(v),void 0),computed:{props(n,t){const e={};for(const r in n)r in v&&!i.isUndefined(n[r])&&(e[r]=n[r].slice());const o={};for(const r in e)o[r]=v[r](r,t,e[r],e);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let o=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,r=c=>i.toFloat(i.toFloat(c).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=c=>{var s;return F([c])?i.toPx(c,"width",t,!0)/t[`offset${(s=c.endsWith)!=null&&s.call(c,"vh")?"Height":"Width"}`]:i.toFloat(c)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,r),(c,s)=>{c.transform=`${c.transform||""} ${n}(${x(e,s)}${o})`}}function N(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,o=>Pn(t,o)),(o,r)=>{const[c,s,a]=H(e,r),h=c.map((l,f)=>(l+=a*(s[f]-l),f===3?i.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function Pn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const o=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(r,c)=>{const s=x(e,c);r.filter=`${r.filter||""} ${n}(${s+o})`}}function jn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(o,r)=>{o[n]=x(e,r)}}function Nn(n,t,e){e.length===1&&e.unshift(0);const o=F(e),r=Mn(t);return e=m(e.reverse(),c=>(c=i.toFloat(c),o==="%"?c*r/100:c)),e.some(([c])=>c)?(i.css(t,"strokeDasharray",r),(c,s)=>{c.strokeDashoffset=x(e,s)}):i.noop}function W(n,t,e,o){e.length===1&&e.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(e,a=>i.toPx(a,r,t));const c=["bgx","bgy"].filter(a=>a in o);if(c.length===2&&n==="bgx")return i.noop;if(p(t,"backgroundSize","")==="cover")return zn(n,t,e,o);const s={};for(const a of c)s[a]=D(t,a);return R(c,s,o)}function zn(n,t,e,o){const r=Cn(t);if(!r.width)return i.noop;const c={width:t.offsetWidth,height:t.offsetHeight},s=["bgx","bgy"].filter(f=>f in o),a={};for(const f of s){const u=o[f].map(([An])=>An),w=Math.min(...u),C=Math.max(...u),G=u.indexOf(w)<u.indexOf(C),J=C-w;a[f]=`${(G?-J:0)-(G?w:C)}px`,c[f==="bgy"?"height":"width"]+=J}const h=i.Dimensions.cover(r,c);for(const f of s){const u=f==="bgy"?"height":"width",w=h[u]-c[u];a[f]=`max(${D(t,f)},-${w}px) + ${a[f]}`}const l=R(s,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function D(n,t){return p(n,`background-position-${t.substr(-1)}`,"")}function R(n,t,e){return function(o,r){for(const c of n){const s=x(e[c],r);o[`background-position-${c.substr(-1)}`]=`calc(${t[c]} + ${s}px)`}}}const S={};function Cn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=z(e),i.trigger(n,i.createEvent("load",!1))},z(e)):S[t]=z(e)}function z(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:o}=n;let r=0;for(let c=0;c<o;c++){let[s,a]=i.isString(n[c])?n[c].trim().split(/ (?![^(]*\))/):[n[c]];if(s=t(s),a=a?i.toFloat(a)/100:null,c===0?a===null?a=0:a&&e.push([s,0]):c===o-1&&(a===null?a=1:a!==1&&(e.push([s,a]),a=1)),e.push([s,a]),a===null)r++;else if(r){const h=e[c-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)e[c-f][1]=h+l*(r-f+1);r=0}}return e}function H(n,t){const e=i.findIndex(n.slice(1),([,o])=>t<=o)+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,o,r]=H(n,t);return e+Math.abs(e-o)*r*(e<o?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const o of n){const r=(e=o.match)==null?void 0:e.call(o,En);if(r)return r[1]}return t}function p(n,t,e){const o=n.style[t],r=i.css(i.css(n,t,e),t);return n.style[t]=o,r}function B(n,t){return n.reduce((e,o)=>(e[o]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var L={mixins:[On],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>V(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[X(),Y({target:({target:n})=>n}),Q({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function V(n){return n?"offsetTop"in n?n:V(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",L),L});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | 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')) :
@@ -59,6 +59,9 @@
59
59
  function isWindow(obj) {
60
60
  return isObject(obj) && obj === obj.window;
61
61
  }
62
+ function isDocument(obj) {
63
+ return nodeType(obj) === 9;
64
+ }
62
65
  function isNode(obj) {
63
66
  return nodeType(obj) >= 1;
64
67
  }
@@ -163,7 +166,9 @@
163
166
  selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
164
167
  }
165
168
  }
166
- context = document;
169
+ if (!isDocument(context)) {
170
+ context = context.ownerDocument;
171
+ }
167
172
  }
168
173
  try {
169
174
  return context[queryFn](selector);
@@ -171,7 +176,7 @@
171
176
  return null;
172
177
  }
173
178
  }
174
- const selectorRe = /.*?[^\\](?:,|$)/g;
179
+ const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
175
180
  const splitSelector = memoize(
176
181
  (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
177
182
  );