uikit 3.16.27 → 3.17.1-dev.7c0766a6f

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 (119) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/less.js +5 -4
  3. package/build/util.js +7 -9
  4. package/dist/css/uikit-core-rtl.css +53 -18
  5. package/dist/css/uikit-core-rtl.min.css +1 -1
  6. package/dist/css/uikit-core.css +53 -18
  7. package/dist/css/uikit-core.min.css +1 -1
  8. package/dist/css/uikit-rtl.css +56 -17
  9. package/dist/css/uikit-rtl.min.css +1 -1
  10. package/dist/css/uikit.css +56 -17
  11. package/dist/css/uikit.min.css +1 -1
  12. package/dist/js/components/countdown.js +1 -1
  13. package/dist/js/components/countdown.min.js +1 -1
  14. package/dist/js/components/filter.js +24 -43
  15. package/dist/js/components/filter.min.js +1 -1
  16. package/dist/js/components/lightbox-panel.js +2 -3
  17. package/dist/js/components/lightbox-panel.min.js +1 -1
  18. package/dist/js/components/lightbox.js +2 -3
  19. package/dist/js/components/lightbox.min.js +1 -1
  20. package/dist/js/components/notification.js +2 -2
  21. package/dist/js/components/notification.min.js +1 -1
  22. package/dist/js/components/parallax.js +7 -17
  23. package/dist/js/components/parallax.min.js +1 -1
  24. package/dist/js/components/slider-parallax.js +6 -13
  25. package/dist/js/components/slider-parallax.min.js +1 -1
  26. package/dist/js/components/slider.js +2 -2
  27. package/dist/js/components/slider.min.js +1 -1
  28. package/dist/js/components/slideshow-parallax.js +6 -13
  29. package/dist/js/components/slideshow-parallax.min.js +1 -1
  30. package/dist/js/components/slideshow.js +19 -4
  31. package/dist/js/components/slideshow.min.js +1 -1
  32. package/dist/js/components/sortable.js +24 -43
  33. package/dist/js/components/sortable.min.js +1 -1
  34. package/dist/js/components/tooltip.js +1 -2
  35. package/dist/js/components/tooltip.min.js +1 -1
  36. package/dist/js/components/upload.js +1 -1
  37. package/dist/js/components/upload.min.js +1 -1
  38. package/dist/js/uikit-core.js +455 -185
  39. package/dist/js/uikit-core.min.js +1 -1
  40. package/dist/js/uikit-icons.js +1 -1
  41. package/dist/js/uikit-icons.min.js +1 -1
  42. package/dist/js/uikit.js +483 -240
  43. package/dist/js/uikit.min.js +1 -9502
  44. package/package.json +1 -1
  45. package/src/js/api/boot.js +2 -2
  46. package/src/js/api/computed.js +1 -1
  47. package/src/js/api/observables.js +1 -4
  48. package/src/js/components/notification.js +1 -1
  49. package/src/js/components/slideshow.js +19 -2
  50. package/src/js/core/cover.js +30 -1
  51. package/src/js/core/drop.js +15 -9
  52. package/src/js/core/dropnav.js +16 -2
  53. package/src/js/core/grid.js +119 -64
  54. package/src/js/core/height-viewport.js +4 -1
  55. package/src/js/core/margin.js +23 -39
  56. package/src/js/core/navbar.js +219 -1
  57. package/src/js/core/scrollspy-nav.js +13 -4
  58. package/src/js/core/scrollspy.js +1 -1
  59. package/src/js/core/sticky.js +10 -11
  60. package/src/js/mixin/internal/animate-fade.js +1 -11
  61. package/src/js/mixin/internal/slideshow-animations.js +1 -1
  62. package/src/js/mixin/slider-reactive.js +1 -1
  63. package/src/js/mixin/togglable.js +0 -2
  64. package/src/js/util/animation.js +19 -13
  65. package/src/js/util/class.js +30 -26
  66. package/src/js/util/dom.js +3 -8
  67. package/src/js/util/filter.js +2 -6
  68. package/src/js/util/viewport.js +26 -4
  69. package/src/less/components/base.less +6 -3
  70. package/src/less/components/form.less +3 -0
  71. package/src/less/components/heading.less +18 -0
  72. package/src/less/components/navbar.less +6 -12
  73. package/src/less/components/pagination.less +13 -6
  74. package/src/less/components/position.less +1 -0
  75. package/src/less/components/section.less +6 -0
  76. package/src/less/theme/heading.less +4 -0
  77. package/src/less/theme/navbar.less +5 -0
  78. package/src/scss/components/base.scss +4 -2
  79. package/src/scss/components/form.scss +3 -0
  80. package/src/scss/components/heading.scss +13 -0
  81. package/src/scss/components/navbar.scss +5 -12
  82. package/src/scss/components/pagination.scss +13 -6
  83. package/src/scss/components/position.scss +1 -0
  84. package/src/scss/components/section.scss +4 -0
  85. package/src/scss/mixins-theme.scss +13 -1
  86. package/src/scss/mixins.scss +8 -1
  87. package/src/scss/theme/heading.scss +4 -0
  88. package/src/scss/variables-theme.scss +7 -0
  89. package/src/scss/variables.scss +7 -0
  90. package/tests/cover.html +2 -2
  91. package/tests/drop.html +13 -7
  92. package/tests/dropnav.html +22 -10
  93. package/tests/filter.html +5 -5
  94. package/tests/form.html +1 -1
  95. package/tests/grid-masonry.html +49 -73
  96. package/tests/grid-parallax.html +82 -40
  97. package/tests/grid.html +21 -3
  98. package/tests/heading.html +33 -4
  99. package/tests/height-viewport.html +3 -3
  100. package/tests/height.html +2 -2
  101. package/tests/icon.html +1 -1
  102. package/tests/image.html +6 -6
  103. package/tests/leader.html +3 -3
  104. package/tests/nav.html +1 -1
  105. package/tests/navbar.html +28 -10
  106. package/tests/notification.html +1 -1
  107. package/tests/offcanvas.html +2 -2
  108. package/tests/parallax.html +1 -1
  109. package/tests/scrollspy.html +3 -3
  110. package/tests/sortable.html +3 -3
  111. package/tests/sticky-navbar.html +233 -14
  112. package/tests/sticky.html +8 -8
  113. package/tests/svg.html +1 -1
  114. package/tests/tab.html +1 -1
  115. package/tests/toggle.html +2 -2
  116. package/tests/tooltip.html +2 -2
  117. package/tests/upload.html +16 -16
  118. package/tests/utility.html +2 -2
  119. package/tests/video.html +3 -3
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 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.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitCountdown=s(t.UIkit.util))})(this,function(t){"use strict";var s={connected(){t.addClass(this.$el,this.$options.id)}};const d=["days","hours","minutes","seconds"];var r={mixins:[s],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){t.attr(this.$el,"role",this.role),this.date=t.toFloat(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(t.trigger(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),t.trigger(this.$el,"countdownstop"),this.timer=null)},update(){const o=a(this.date);o.total||(this.stop(),this.end||(t.trigger(this.$el,"countdownend"),this.end=!0));for(const n of d){const i=t.$(this.clsWrapper.replace("%unit%",n),this.$el);if(!i)continue;let e=String(Math.trunc(o[n]));e=e.length<2?`0${e}`:e,i.textContent!==e&&(e=e.split(""),e.length!==i.children.length&&t.html(i,e.map(()=>"<span></span>").join("")),e.forEach((h,u)=>i.children[u].textContent=h))}}}};function a(o){const n=Math.max(0,o-Date.now())/1e3;return{total:n,seconds:n%60,minutes:n/60%60,hours:n/60/60%24,days:n/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",r),r});
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitCountdown=s(t.UIkit.util))})(this,function(t){"use strict";var s={connected(){t.addClass(this.$el,this.$options.id)}};const d=["days","hours","minutes","seconds"];var r={mixins:[s],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){t.attr(this.$el,"role",this.role),this.date=t.toFloat(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(t.trigger(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),t.trigger(this.$el,"countdownstop"),this.timer=null)},update(){const o=a(this.date);o.total||(this.stop(),this.end||(t.trigger(this.$el,"countdownend"),this.end=!0));for(const n of d){const i=t.$(this.clsWrapper.replace("%unit%",n),this.$el);if(!i)continue;let e=String(Math.trunc(o[n]));e=e.length<2?`0${e}`:e,i.textContent!==e&&(e=e.split(""),e.length!==i.children.length&&t.html(i,e.map(()=>"<span></span>").join("")),e.forEach((h,u)=>i.children[u].textContent=h))}}}};function a(o){const n=Math.max(0,o-Date.now())/1e3;return{total:n,seconds:n%60,minutes:n/60%60,hours:n/60/60%24,days:n/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",r),r});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 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,62 +59,51 @@
59
59
  ],
60
60
  update: {
61
61
  read() {
62
- const rows = getRows(this.$el.children);
63
62
  return {
64
- rows,
65
- columns: getColumns(rows)
63
+ rows: getRows(uikitUtil.toArray(this.$el.children))
66
64
  };
67
65
  },
68
- write({ columns, rows }) {
66
+ write({ rows }) {
69
67
  for (const row of rows) {
70
- for (const column of row) {
71
- uikitUtil.toggleClass(column, this.margin, rows[0] !== row);
72
- uikitUtil.toggleClass(column, this.firstColumn, columns[0].includes(column));
68
+ for (const el of row) {
69
+ uikitUtil.toggleClass(el, this.margin, rows[0] !== row);
70
+ uikitUtil.toggleClass(el, this.firstColumn, row[uikitUtil.isRtl ? row.length - 1 : 0] === el);
73
71
  }
74
72
  }
75
73
  },
76
74
  events: ["resize"]
77
75
  }
78
76
  });
79
- function getRows(items) {
80
- return sortBy(items, "top", "bottom");
81
- }
82
- function getColumns(rows) {
83
- const columns = [];
84
- for (const row of rows) {
85
- const sorted = sortBy(row, "left", "right");
86
- for (let j = 0; j < sorted.length; j++) {
87
- columns[j] = columns[j] ? columns[j].concat(sorted[j]) : sorted[j];
88
- }
89
- }
90
- return uikitUtil.isRtl ? columns.reverse() : columns;
91
- }
92
- function sortBy(items, startProp, endProp) {
77
+ function getRows(elements) {
93
78
  const sorted = [[]];
94
- for (const el of items) {
79
+ const withOffset = elements.some(
80
+ (el, i) => i && elements[i - 1].offsetParent !== el.offsetParent
81
+ );
82
+ for (const el of elements) {
95
83
  if (!uikitUtil.isVisible(el)) {
96
84
  continue;
97
85
  }
98
- let dim = getOffset(el);
86
+ const offset = getOffset(el, withOffset);
99
87
  for (let i = sorted.length - 1; i >= 0; i--) {
100
88
  const current = sorted[i];
101
89
  if (!current[0]) {
102
90
  current.push(el);
103
91
  break;
104
92
  }
105
- let startDim;
106
- if (current[0].offsetParent === el.offsetParent) {
107
- startDim = getOffset(current[0]);
108
- } else {
109
- dim = getOffset(el, true);
110
- startDim = getOffset(current[0], true);
111
- }
112
- if (dim[startProp] >= startDim[endProp] - 1 && dim[startProp] !== startDim[startProp]) {
93
+ const offsetCurrent = getOffset(current[0], withOffset);
94
+ if (offset.top >= offsetCurrent.bottom - 1 && offset.top !== offsetCurrent.top) {
113
95
  sorted.push([el]);
114
96
  break;
115
97
  }
116
- if (dim[endProp] - 1 > startDim[startProp] || dim[startProp] === startDim[startProp]) {
117
- current.push(el);
98
+ if (offset.bottom - 1 > offsetCurrent.top || offset.top === offsetCurrent.top) {
99
+ let j = current.length - 1;
100
+ for (; j >= 0; j--) {
101
+ const offsetCurrent2 = getOffset(current[j], withOffset);
102
+ if (offset.left >= offsetCurrent2.left) {
103
+ break;
104
+ }
105
+ }
106
+ current.splice(j + 1, 0, el);
118
107
  break;
119
108
  }
120
109
  if (i === 0) {
@@ -212,15 +201,7 @@
212
201
  );
213
202
  }
214
203
  function getTransitionNodes(target) {
215
- return getRows(uikitUtil.children(target)).reduce(
216
- (nodes, row) => nodes.concat(
217
- uikitUtil.sortBy(
218
- row.filter((el) => uikitUtil.isInView(el)),
219
- "offsetLeft"
220
- )
221
- ),
222
- []
223
- );
204
+ return getRows(uikitUtil.children(target)).flat().filter(uikitUtil.isInView);
224
205
  }
225
206
  function awaitFrame$1() {
226
207
  return new Promise((resolve) => requestAnimationFrame(resolve));
@@ -1 +1 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(s,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitFilter=u(s.UIkit.util))})(this,function(s){"use strict";function u(n,e=[]){try{return n?s.startsWith(n,"{")?JSON.parse(n):e.length&&!s.includes(n,":")?{[e[0]]:n}:n.split(";").reduce((o,t)=>{const[r,a]=t.split(/:(.*)/);return r&&!s.isUndefined(a)&&(o[r.trim()]=a.trim()),o},{}):{}}catch{return{}}}function N(n){return b(s.observeResize,n,"resize")}function q(n){return b(s.observeMutation,n)}function b(n,e,o){return{observe:n,handler(){this.$emit(o)},...e}}q({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),N({target:({$el:n})=>[n,...s.children(n)]});function T(n){return C(n,"top","bottom")}function L(n){const e=[];for(const o of n){const t=C(o,"left","right");for(let r=0;r<t.length;r++)e[r]=e[r]?e[r].concat(t[r]):t[r]}return s.isRtl?e.reverse():e}function C(n,e,o){const t=[[]];for(const r of n){if(!s.isVisible(r))continue;let a=y(r);for(let c=t.length-1;c>=0;c--){const f=t[c];if(!f[0]){f.push(r);break}let h;if(f[0].offsetParent===r.offsetParent?h=y(f[0]):(a=y(r,!0),h=y(f[0],!0)),a[e]>=h[o]-1&&a[e]!==h[e]){t.push([r]);break}if(a[o]-1>h[e]||a[e]===h[e]){f.push(r);break}if(c===0){t.unshift([r]);break}}}return t}function y(n,e=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:r,offsetWidth:a}=n;return e&&([o,t]=s.offsetPosition(n)),{top:o,left:t,bottom:o+r,right:t+a}}const w="uk-transition-leave",v="uk-transition-enter";function S(n,e,o,t=0){const r=g(e,!0),a={opacity:1},c={opacity:0},f=p=>()=>r===g(e)?p():Promise.reject(),h=f(async()=>{s.addClass(e,w),await Promise.all(P(e).map((p,l)=>new Promise(d=>setTimeout(()=>s.Transition.start(p,c,o/2,"ease").then(d),l*t)))),s.removeClass(e,w)}),i=f(async()=>{const p=s.height(e);s.addClass(e,v),n(),s.css(s.children(e),{opacity:0}),await O();const l=s.children(e),d=s.height(e);s.css(e,"alignContent","flex-start"),s.height(e,p);const m=P(e);s.css(l,c);const B=m.map(async(Y,Z)=>{await H(Z*t),await s.Transition.start(Y,a,o/2,"ease")});p!==d&&B.push(s.Transition.start(e,{height:d},o/2+m.length*t,"ease")),await Promise.all(B).then(()=>{s.removeClass(e,v),r===g(e)&&(s.css(e,{height:"",alignContent:""}),s.css(l,{opacity:""}),delete e.dataset.transition)})});return s.hasClass(e,w)?$(e).then(i):s.hasClass(e,v)?$(e).then(h).then(i):h().then(i)}function g(n,e){return e&&(n.dataset.transition=1+g(n)),s.toNumber(n.dataset.transition)||0}function $(n){return Promise.all(s.children(n).filter(s.Transition.inProgress).map(e=>new Promise(o=>s.once(e,"transitionend transitioncanceled",o))))}function P(n){return T(s.children(n)).reduce((e,o)=>e.concat(s.sortBy(o.filter(t=>s.isInView(t)),"offsetLeft")),[])}function O(){return new Promise(n=>requestAnimationFrame(n))}function H(n){return new Promise(e=>setTimeout(e,n))}async function V(n,e,o){await E();let t=s.children(e);const r=t.map(d=>I(d,!0)),a={...s.css(e,["height","padding"]),display:"block"};await Promise.all(t.concat(e).map(s.Transition.cancel)),n(),t=t.concat(s.children(e).filter(d=>!s.includes(t,d))),await Promise.resolve(),s.fastdom.flush();const c=s.attr(e,"style"),f=s.css(e,["height","padding"]),[h,i]=D(e,t,r),p=t.map(d=>({style:s.attr(d,"style")}));t.forEach((d,m)=>i[m]&&s.css(d,i[m])),s.css(e,a),s.trigger(e,"scroll"),s.fastdom.flush(),await E();const l=t.map((d,m)=>s.parent(d)===e&&s.Transition.start(d,h[m],o,"ease")).concat(s.Transition.start(e,f,o,"ease"));try{await Promise.all(l),t.forEach((d,m)=>{s.attr(d,p[m]),s.parent(d)===e&&s.css(d,"display",h[m].opacity===0?"none":"")}),s.attr(e,"style",c)}catch{s.attr(t,"style",""),M(e,a)}}function I(n,e){const o=s.css(n,"zIndex");return s.isVisible(n)?{display:"",opacity:e?s.css(n,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?s.index(n):o,...F(n)}:!1}function D(n,e,o){const t=e.map((a,c)=>s.parent(a)&&c in o?o[c]?s.isVisible(a)?F(a):{opacity:0}:{opacity:s.isVisible(a)?1:0}:!1),r=t.map((a,c)=>{const f=s.parent(e[c])===n&&(o[c]||I(e[c]));if(!f)return!1;if(!a)delete f.opacity;else if(!("opacity"in a)){const{opacity:h}=f;h%1?a.opacity=1:delete f.opacity}return f});return[t,r]}function M(n,e){for(const o in e)s.css(n,o,"")}function F(n){const{height:e,width:o}=s.offset(n);return{height:e,width:o,transform:"",...s.position(n),...s.css(n,["marginTop","marginLeft"])}}function E(){return new Promise(n=>requestAnimationFrame(n))}var R={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,e=this.$el){const o=this.animation;return(o==="fade"?S:o==="delayed-fade"?(...r)=>S(...r,40):o?V:()=>(n(),Promise.resolve()))(n,e,this.duration).catch(s.noop)}}};const W={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var x={mixins:[R],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles({attrItem:n},e){return s.$$(`[${n}],[data-${n}]`,e)},children({target:n},e){return s.$$(`${n} > *`,e)}},watch:{toggles(n){this.updateState();const e=s.$$(this.selActive,this.$el);for(const o of n){this.selActive!==!1&&s.toggleClass(o,this.cls,s.includes(e,o));const t=X(o);s.isTag(t,"a")&&s.attr(t,"role","button")}},children(n,e){e&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(n){n.type==="keydown"&&n.keyCode!==W.SPACE||s.closest(n.target,"a,button")&&(n.preventDefault(),this.apply(n.current))}},methods:{apply(n){const e=this.getState(),o=z(n,this.attrItem,this.getState());j(e,o)||this.setState(o)},getState(){return this.toggles.filter(n=>s.hasClass(n,this.cls)).reduce((n,e)=>z(e,this.attrItem,n),{filter:{"":""},sort:[]})},async setState(n,e=!0){n={filter:{"":""},sort:[],...n},s.trigger(this.$el,"beforeFilter",[this,n]);for(const o of this.toggles)s.toggleClass(o,this.cls,J(o,this.attrItem,n));await Promise.all(s.$$(this.target,this.$el).map(o=>{const t=()=>{G(n,o,s.children(o)),this.$update(this.$el)};return e?this.animate(t,o):t()})),s.trigger(this.$el,"afterFilter",[this])},updateState(){s.fastdom.write(()=>this.setState(this.getState(),!1))}}};function A(n,e){return u(s.data(n,e),["filter"])}function j(n,e){return["filter","sort"].every(o=>s.isEqual(n[o],e[o]))}function G(n,e,o){const t=K(n);o.forEach(c=>s.css(c,"display",t&&!s.matches(c,t)?"none":""));const[r,a]=n.sort;if(r){const c=Q(o,r,a);s.isEqual(c,o)||s.append(e,c)}}function z(n,e,o){const{filter:t,group:r,sort:a,order:c="asc"}=A(n,e);return(t||s.isUndefined(a))&&(r?t?(delete o.filter[""],o.filter[r]=t):(delete o.filter[r],(s.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":t||""})):o.filter={"":t||""}),s.isUndefined(a)||(o.sort=[a,c]),o}function J(n,e,{filter:o={"":""},sort:[t,r]}){const{filter:a="",group:c="",sort:f,order:h="asc"}=A(n,e);return s.isUndefined(f)?c in o&&a===o[c]||!a&&c&&!(c in o)&&!o[""]:t===f&&r===h}function K({filter:n}){let e="";return s.each(n,o=>e+=o||""),e}function Q(n,e,o){return[...n].sort((t,r)=>s.data(t,e).localeCompare(s.data(r,e),void 0,{numeric:!0})*(o==="asc"||-1))}function X(n){return s.$("a,button",n)||n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",x),x});
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,y){typeof exports=="object"&&typeof module<"u"?module.exports=y(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],y):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitFilter=y(e.UIkit.util))})(this,function(e){"use strict";function y(n,s=[]){try{return n?e.startsWith(n,"{")?JSON.parse(n):s.length&&!e.includes(n,":")?{[s[0]]:n}:n.split(";").reduce((o,t)=>{const[r,a]=t.split(/:(.*)/);return r&&!e.isUndefined(a)&&(o[r.trim()]=a.trim()),o},{}):{}}catch{return{}}}function N(n){return v(e.observeResize,n,"resize")}function O(n){return v(e.observeMutation,n)}function v(n,s,o){return{observe:n,handler(){this.$emit(o)},...s}}O({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),N({target:({$el:n})=>[n,...e.children(n)]});function P(n){const s=[[]],o=n.some((t,r)=>r&&n[r-1].offsetParent!==t.offsetParent);for(const t of n){if(!e.isVisible(t))continue;const r=g(t,o);for(let a=s.length-1;a>=0;a--){const c=s[a];if(!c[0]){c.push(t);break}const d=g(c[0],o);if(r.top>=d.bottom-1&&r.top!==d.top){s.push([t]);break}if(r.bottom-1>d.top||r.top===d.top){let h=c.length-1;for(;h>=0;h--){const m=g(c[h],o);if(r.left>=m.left)break}c.splice(h+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function g(n,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:r,offsetWidth:a}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+r,right:t+a}}const w="uk-transition-leave",b="uk-transition-enter";function T(n,s,o,t=0){const r=u(s,!0),a={opacity:1},c={opacity:0},d=i=>()=>r===u(s)?i():Promise.reject(),h=d(async()=>{e.addClass(s,w),await Promise.all(S(s).map((i,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(i,c,o/2,"ease").then(f),l*t)))),e.removeClass(s,w)}),m=d(async()=>{const i=e.height(s);e.addClass(s,b),n(),e.css(e.children(s),{opacity:0}),await q();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,i);const p=S(s);e.css(l,c);const z=p.map(async(Q,X)=>{await B(X*t),await e.Transition.start(Q,a,o/2,"ease")});i!==f&&z.push(e.Transition.start(s,{height:f},o/2+p.length*t,"ease")),await Promise.all(z).then(()=>{e.removeClass(s,b),r===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?C(s).then(m):e.hasClass(s,b)?C(s).then(h).then(m):h().then(m)}function u(n,s){return s&&(n.dataset.transition=1+u(n)),e.toNumber(n.dataset.transition)||0}function C(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function S(n){return P(e.children(n)).flat().filter(e.isInView)}function q(){return new Promise(n=>requestAnimationFrame(n))}function B(n){return new Promise(s=>setTimeout(s,n))}async function H(n,s,o){await F();let t=e.children(s);const r=t.map(f=>$(f,!0)),a={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),n(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const c=e.attr(s,"style"),d=e.css(s,["height","padding"]),[h,m]=L(s,t,r),i=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,p)=>m[p]&&e.css(f,m[p])),e.css(s,a),e.trigger(s,"scroll"),e.fastdom.flush(),await F();const l=t.map((f,p)=>e.parent(f)===s&&e.Transition.start(f,h[p],o,"ease")).concat(e.Transition.start(s,d,o,"ease"));try{await Promise.all(l),t.forEach((f,p)=>{e.attr(f,i[p]),e.parent(f)===s&&e.css(f,"display",h[p].opacity===0?"none":"")}),e.attr(s,"style",c)}catch{e.attr(t,"style",""),V(s,a)}}function $(n,s){const o=e.css(n,"zIndex");return e.isVisible(n)?{display:"",opacity:s?e.css(n,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(n):o,...I(n)}:!1}function L(n,s,o){const t=s.map((a,c)=>e.parent(a)&&c in o?o[c]?e.isVisible(a)?I(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),r=t.map((a,c)=>{const d=e.parent(s[c])===n&&(o[c]||$(s[c]));if(!d)return!1;if(!a)delete d.opacity;else if(!("opacity"in a)){const{opacity:h}=d;h%1?a.opacity=1:delete d.opacity}return d});return[t,r]}function V(n,s){for(const o in s)e.css(n,o,"")}function I(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function F(){return new Promise(n=>requestAnimationFrame(n))}var M={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s=this.$el){const o=this.animation;return(o==="fade"?T:o==="delayed-fade"?(...r)=>T(...r,40):o?H:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}};const R={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var E={mixins:[M],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles({attrItem:n},s){return e.$$(`[${n}],[data-${n}]`,s)},children({target:n},s){return e.$$(`${n} > *`,s)}},watch:{toggles(n){this.updateState();const s=e.$$(this.selActive,this.$el);for(const o of n){this.selActive!==!1&&e.toggleClass(o,this.cls,e.includes(s,o));const t=K(o);e.isTag(t,"a")&&e.attr(t,"role","button")}},children(n,s){s&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(n){n.type==="keydown"&&n.keyCode!==R.SPACE||e.closest(n.target,"a,button")&&(n.preventDefault(),this.apply(n.current))}},methods:{apply(n){const s=this.getState(),o=A(n,this.attrItem,this.getState());W(s,o)||this.setState(o)},getState(){return this.toggles.filter(n=>e.hasClass(n,this.cls)).reduce((n,s)=>A(s,this.attrItem,n),{filter:{"":""},sort:[]})},async setState(n,s=!0){n={filter:{"":""},sort:[],...n},e.trigger(this.$el,"beforeFilter",[this,n]);for(const o of this.toggles)e.toggleClass(o,this.cls,D(o,this.attrItem,n));await Promise.all(e.$$(this.target,this.$el).map(o=>{const t=()=>{j(n,o,e.children(o)),this.$update(this.$el)};return s?this.animate(t,o):t()})),e.trigger(this.$el,"afterFilter",[this])},updateState(){e.fastdom.write(()=>this.setState(this.getState(),!1))}}};function x(n,s){return y(e.data(n,s),["filter"])}function W(n,s){return["filter","sort"].every(o=>e.isEqual(n[o],s[o]))}function j(n,s,o){const t=G(n);o.forEach(c=>e.css(c,"display",t&&!e.matches(c,t)?"none":""));const[r,a]=n.sort;if(r){const c=J(o,r,a);e.isEqual(c,o)||e.append(s,c)}}function A(n,s,o){const{filter:t,group:r,sort:a,order:c="asc"}=x(n,s);return(t||e.isUndefined(a))&&(r?t?(delete o.filter[""],o.filter[r]=t):(delete o.filter[r],(e.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":t||""})):o.filter={"":t||""}),e.isUndefined(a)||(o.sort=[a,c]),o}function D(n,s,{filter:o={"":""},sort:[t,r]}){const{filter:a="",group:c="",sort:d,order:h="asc"}=x(n,s);return e.isUndefined(d)?c in o&&a===o[c]||!a&&c&&!(c in o)&&!o[""]:t===d&&r===h}function G({filter:n}){let s="";return e.each(n,o=>s+=o||""),s}function J(n,s,o){return[...n].sort((t,r)=>e.data(t,s).localeCompare(e.data(r,s),void 0,{numeric:!0})*(o==="asc"||-1))}function K(n){return e.$("a,button",n)||n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",E),E});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -232,7 +232,6 @@
232
232
  }
233
233
  }
234
234
  function toggleAnimation(el, show, cmp) {
235
- util.Animation.cancel(el);
236
235
  const { animation, duration, _toggle } = cmp;
237
236
  if (show) {
238
237
  _toggle(el, true);
@@ -475,7 +474,7 @@
475
474
  }
476
475
  };
477
476
  function translated(el) {
478
- return Math.abs(util.css(el, "transform").split(",")[4] / el.offsetWidth) || 0;
477
+ return Math.abs(util.css(el, "transform").split(",")[4] / el.offsetWidth);
479
478
  }
480
479
  function translate(value = 0, unit = "%") {
481
480
  value += value ? unit : "";
@@ -1 +1 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 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_panel",["uikit-util"],w):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitLightbox_panel=w(e.UIkit.util))})(this,function(e){"use strict";var w={connected(){e.addClass(this.$el,this.$options.id)}},W={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&e.$(t)}}};let E;function q(t){const s=e.on(t,"touchmove",n=>{if(n.targetTouches.length!==1||e.matches(n.target,'input[type="range"'))return;let{scrollHeight:a,clientHeight:r}=e.scrollParent(n.target);r>=a&&n.cancelable&&n.preventDefault()},{passive:!1});if(E)return s;E=!0;const{scrollingElement:i}=document;return e.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:e.width(window)-i.clientWidth||""}),()=>{E=!1,s(),e.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var V={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-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["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 a=e.isBoolean(s)?s:!this.isToggled(n);if(!e.trigger(n,`before${a?"show":"hide"}`,[this]))return Promise.reject();const r=(e.isFunction(i)?i:i===!1||!this.hasAnimation?G:this.hasTransition?X:Y)(n,a,this),h=a?this.clsEnter:this.clsLeave;e.addClass(n,h),e.trigger(n,a?"show":"hide",[this]);const o=()=>{e.removeClass(n,h),e.trigger(n,a?"shown":"hidden",[this])};return r?r.then(o,()=>(e.removeClass(n,h),Promise.reject())):o()})),!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 G(t,s,{_toggle:i}){return e.Animation.cancel(t),e.Transition.cancel(t),i(t,s)}async function X(t,s,{animation:i,duration:n,velocity:a,transition:r,_toggle:h}){var o;const[l="reveal",c="top"]=((o=i[0])==null?void 0:o.split("-"))||[],d=[["left","right"],["top","bottom"]],p=d[e.includes(d[0],c)?0:1],g=p[1]===c,v=["width","height"][d.indexOf(p)],b=`margin-${p[0]}`,A=`margin-${c}`;let k=e.dimensions(t)[v];const gt=e.Transition.inProgress(t);await e.Transition.cancel(t),s&&h(t,!0);const ut=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,A].map(U=>[U,t.style[U]])),I=e.dimensions(t),D=e.toFloat(e.css(t,b)),j=e.toFloat(e.css(t,A)),u=I[v]+j;!gt&&!s&&(k+=j);const[_]=e.wrapInner(t,"<div>");e.css(_,{boxSizing:"border-box",height:I.height,width:I.width,...e.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),e.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:I.width,height:I.height,overflow:"hidden",[v]:k});const z=k/u;n=(a*u+n)*(s?1-z:z);const R={[v]:s?u:0};g&&(e.css(t,b,u-k+D),R[b]=s?D:u+D),!g^l==="reveal"&&(e.css(_,b,-u+k),e.Transition.start(_,{[b]:s?0:-u},n,r));try{await e.Transition.start(t,R,n,r)}finally{e.css(t,ut),e.unwrap(_.firstChild),s||h(t,!1)}}function Y(t,s,i){e.Animation.cancel(t);const{animation:n,duration:a,_toggle:r}=i;return s?(r(t,!0),e.Animation.in(t,n[0],a,i.origin)):e.Animation.out(t,n[1]||n[0],a,i.origin).then(()=>r(t,!1))}const m=[];var J={mixins:[w,W,V],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){return 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(m,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)&&!e.within(n,this.$el)&&e.$(n,document.body)?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(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(e.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(s=>s.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&e.css(this.$el,"zIndex",e.toFloat(e.css(this.$el,"zIndex"))+m.length);const t=[this.overlay&&Q(this),this.overlay&&q(this.$el),this.bgClose&&Z(this),this.escClose&&tt(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(m,this)&&m.splice(m.indexOf(this),1),e.css(this.$el,"zIndex",""),m.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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(t,s,{transitionElement:i,_toggle:n}){return new Promise((a,r)=>e.once(t,"show hide",()=>{var h;(h=t._reject)==null||h.call(t),t._reject=r,n(t,s);const o=e.once(i,"transitionstart",()=>{e.once(i,"transitionend transitioncancel",a,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{o(),a()},K(e.css(i,"transitionDuration")))})).then(()=>delete t._reject)}function K(t){return t?e.endsWith(t,"ms")?e.toFloat(t):e.toFloat(t)*1e3:0}function Q(t){return e.on(document,"focusin",s=>{e.last(m)===t&&!e.within(s.target,t.$el)&&t.$el.focus()})}function Z(t){return e.on(document,e.pointerDown,({target:s})=>{e.last(m)!==t||t.overlay&&!e.within(s,t.$el)||e.within(s,t.panel)||e.once(document,`${e.pointerUp} ${e.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:a})=>{!i&&n===e.pointerUp&&s===a&&t.hide()},!0)})}function tt(t){return e.on(document,"keydown",s=>{s.keyCode===27&&e.last(m)===t&&t.hide()})}var B={slide:{show(t){return[{transform:y(t*-100)},{transform:y()}]},percent(t){return et(t)},translate(t,s){return[{transform:y(s*-100*t)},{transform:y(s*100*(1-t))}]}}};function et(t){return Math.abs(e.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function y(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function C(t){return`scale3d(${t}, ${t}, 1)`}function st(t,s,i,{animation:n,easing:a}){const{percent:r,translate:h,show:o=e.noop}=n,l=o(i);let c;return{dir:i,show(d,p=0,g){const $=g?"linear":a;return d-=Math.round(d*e.clamp(p,-1,1)),this.translate(p),T(s,"itemin",{percent:p,duration:d,timing:$,dir:i}),T(t,"itemout",{percent:1-p,duration:d,timing:$,dir:i}),new Promise(v=>{c||(c=v),Promise.all([e.Transition.start(s,l[1],d,$),e.Transition.start(t,l[0],d,$)]).then(()=>{this.reset(),c()},e.noop)})},cancel(){return e.Transition.cancel([s,t])},reset(){for(const d in l[0])e.css([s,t],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);e.css(s,p[1]),e.css(t,p[0]),T(s,"itemtranslatein",{percent:d,dir:i}),T(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function T(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}function it(t){return nt(e.observeResize,t,"resize")}function nt(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var rt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var i,n,a;let r=0;return((a=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:a.replace(/%s/g,()=>s[r++]||""))||""}}},ot={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 P={passive:!1,capture:!0},L={passive:!0,capture:!0},at="touchstart mousedown",S="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var ht={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:at,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&ct(t.target)||e.closest(t.target,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,...P}],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,P),e.on(document,M,this.end,L),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,a=Math.abs(s),r=this.getIndex(n+this.dir),h=this._getDistance(n,r);for(;r!==n&&a>h;)this.drag-=h*this.dir,n=r,a-=h,r=this.getIndex(n+this.dir),h=this._getDistance(n,r);this.percent=a/h;const o=i[n],l=i[r],c=this.index!==r,d=n===r;let p;for(const g of[this.index,this.prevIndex])e.includes([r,n],g)||(e.trigger(i[g],"itemhidden",[this]),d&&(p=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||p)&&e.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,!d&&e.trigger(o,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!d&&l),c&&(!d&&e.trigger(o,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,S,this.move,P),e.off(document,M,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 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 ct(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function N(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=N(t,s,`${i}-2`)),n}const f={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var dt={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){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${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 a,r=null;if(e.isNumeric(i)){const h=e.toNumber(i),o=this.slides[h];o&&(o.id||(o.id=N(this,o,`-item-${i}`)),r=o.id),a=this.t("slideX",e.toFloat(i)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=N(this,this.list,"-items")),r=this.list.id),a=this.t(i);e.attr(n,{"aria-controls":r,"aria-label":e.attr(n,"aria-label")||a})}},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){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===f.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 a=i===f.HOME?0:i===f.END?"last":i===f.LEFT?"previous":i===f.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],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))}}}},lt={mixins:[ot,ht,dt,rt],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){return mt(s.offsetWidth/t)},list({selList:t},s){return 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:it(),methods:{show(t,s=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,a=s?0:n.length,r=()=>{n.splice(a,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),o=e.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(t,this.index),c=this.slides[l];if(o===c){r();return}if(this.dir=pt(t,h),this.prevIndex=h,this.index=l,o&&!e.trigger(o,"beforeitemhide",[this])||!e.trigger(c,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}const d=this._show(o,c,s).then(()=>{o&&e.trigger(o,"itemhidden",[this]),e.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return o&&e.trigger(o,"itemhide",[this]),e.trigger(c,"itemshow",[this]),d},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 pt(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function mt(t){return .5*t+300}var ft={mixins:[lt],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:B,Transitioner:st},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={...B,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)}]}}},H={mixins:[J,ft],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){return 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===f.LEFT?s="previous":t===f.RIGHT?s="next":t===f.HOME?s=0:t===f.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:a="",poster:r,attrs:h={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!i)return;let o;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=x("img",{src:i,alt:a,...h});e.on(c,"load",()=>this.setItem(s,c)),e.on(c,"error",()=>this.setError(s))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=x("video",{src:i,poster:r,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});e.on(c,"loadedmetadata",()=>this.setItem(s,c)),e.on(c,"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(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,x("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(o=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,x("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:d,height:c,...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}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",H),H});
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 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_panel",["uikit-util"],w):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitLightbox_panel=w(e.UIkit.util))})(this,function(e){"use strict";var w={connected(){e.addClass(this.$el,this.$options.id)}},W={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&e.$(t)}}};let E;function q(t){const s=e.on(t,"touchmove",n=>{if(n.targetTouches.length!==1||e.matches(n.target,'input[type="range"'))return;let{scrollHeight:a,clientHeight:r}=e.scrollParent(n.target);r>=a&&n.cancelable&&n.preventDefault()},{passive:!1});if(E)return s;E=!0;const{scrollingElement:i}=document;return e.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:e.width(window)-i.clientWidth||""}),()=>{E=!1,s(),e.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var V={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-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["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 a=e.isBoolean(s)?s:!this.isToggled(n);if(!e.trigger(n,`before${a?"show":"hide"}`,[this]))return Promise.reject();const r=(e.isFunction(i)?i:i===!1||!this.hasAnimation?G:this.hasTransition?X:Y)(n,a,this),h=a?this.clsEnter:this.clsLeave;e.addClass(n,h),e.trigger(n,a?"show":"hide",[this]);const o=()=>{e.removeClass(n,h),e.trigger(n,a?"shown":"hidden",[this])};return r?r.then(o,()=>(e.removeClass(n,h),Promise.reject())):o()})),!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 G(t,s,{_toggle:i}){return e.Animation.cancel(t),e.Transition.cancel(t),i(t,s)}async function X(t,s,{animation:i,duration:n,velocity:a,transition:r,_toggle:h}){var o;const[l="reveal",d="top"]=((o=i[0])==null?void 0:o.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]}`,A=`margin-${d}`;let k=e.dimensions(t)[v];const gt=e.Transition.inProgress(t);await e.Transition.cancel(t),s&&h(t,!0);const ut=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,A].map(U=>[U,t.style[U]])),I=e.dimensions(t),D=e.toFloat(e.css(t,b)),j=e.toFloat(e.css(t,A)),u=I[v]+j;!gt&&!s&&(k+=j);const[_]=e.wrapInner(t,"<div>");e.css(_,{boxSizing:"border-box",height:I.height,width:I.width,...e.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),e.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:I.width,height:I.height,overflow:"hidden",[v]:k});const z=k/u;n=(a*u+n)*(s?1-z:z);const R={[v]:s?u:0};g&&(e.css(t,b,u-k+D),R[b]=s?D:u+D),!g^l==="reveal"&&(e.css(_,b,-u+k),e.Transition.start(_,{[b]:s?0:-u},n,r));try{await e.Transition.start(t,R,n,r)}finally{e.css(t,ut),e.unwrap(_.firstChild),s||h(t,!1)}}function Y(t,s,i){const{animation:n,duration:a,_toggle:r}=i;return s?(r(t,!0),e.Animation.in(t,n[0],a,i.origin)):e.Animation.out(t,n[1]||n[0],a,i.origin).then(()=>r(t,!1))}const m=[];var J={mixins:[w,W,V],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){return 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(m,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)&&!e.within(n,this.$el)&&e.$(n,document.body)?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(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(e.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(s=>s.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&e.css(this.$el,"zIndex",e.toFloat(e.css(this.$el,"zIndex"))+m.length);const t=[this.overlay&&Q(this),this.overlay&&q(this.$el),this.bgClose&&Z(this),this.escClose&&tt(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(m,this)&&m.splice(m.indexOf(this),1),e.css(this.$el,"zIndex",""),m.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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(t,s,{transitionElement:i,_toggle:n}){return new Promise((a,r)=>e.once(t,"show hide",()=>{var h;(h=t._reject)==null||h.call(t),t._reject=r,n(t,s);const o=e.once(i,"transitionstart",()=>{e.once(i,"transitionend transitioncancel",a,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{o(),a()},K(e.css(i,"transitionDuration")))})).then(()=>delete t._reject)}function K(t){return t?e.endsWith(t,"ms")?e.toFloat(t):e.toFloat(t)*1e3:0}function Q(t){return e.on(document,"focusin",s=>{e.last(m)===t&&!e.within(s.target,t.$el)&&t.$el.focus()})}function Z(t){return e.on(document,e.pointerDown,({target:s})=>{e.last(m)!==t||t.overlay&&!e.within(s,t.$el)||e.within(s,t.panel)||e.once(document,`${e.pointerUp} ${e.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:a})=>{!i&&n===e.pointerUp&&s===a&&t.hide()},!0)})}function tt(t){return e.on(document,"keydown",s=>{s.keyCode===27&&e.last(m)===t&&t.hide()})}var B={slide:{show(t){return[{transform:y(t*-100)},{transform:y()}]},percent(t){return et(t)},translate(t,s){return[{transform:y(s*-100*t)},{transform:y(s*100*(1-t))}]}}};function et(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 st(t,s,i,{animation:n,easing:a}){const{percent:r,translate:h,show:o=e.noop}=n,l=o(i);let d;return{dir:i,show(c,p=0,g){const $=g?"linear":a;return c-=Math.round(c*e.clamp(p,-1,1)),this.translate(p),T(s,"itemin",{percent:p,duration:c,timing:$,dir:i}),T(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]),T(s,"itemtranslatein",{percent:c,dir:i}),T(t,"itemtranslateout",{percent:1-c,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function T(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}function it(t){return nt(e.observeResize,t,"resize")}function nt(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var rt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var i,n,a;let r=0;return((a=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:a.replace(/%s/g,()=>s[r++]||""))||""}}},ot={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 P={passive:!1,capture:!0},L={passive:!0,capture:!0},at="touchstart mousedown",S="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var ht={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:at,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&dt(t.target)||e.closest(t.target,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,...P}],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,P),e.on(document,M,this.end,L),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,a=Math.abs(s),r=this.getIndex(n+this.dir),h=this._getDistance(n,r);for(;r!==n&&a>h;)this.drag-=h*this.dir,n=r,a-=h,r=this.getIndex(n+this.dir),h=this._getDistance(n,r);this.percent=a/h;const o=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(o,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&l),d&&(!c&&e.trigger(o,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,S,this.move,P),e.off(document,M,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 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 dt(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function N(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=N(t,s,`${i}-2`)),n}const f={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ct={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){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${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 a,r=null;if(e.isNumeric(i)){const h=e.toNumber(i),o=this.slides[h];o&&(o.id||(o.id=N(this,o,`-item-${i}`)),r=o.id),a=this.t("slideX",e.toFloat(i)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=N(this,this.list,"-items")),r=this.list.id),a=this.t(i);e.attr(n,{"aria-controls":r,"aria-label":e.attr(n,"aria-label")||a})}},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){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===f.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 a=i===f.HOME?0:i===f.END?"last":i===f.LEFT?"previous":i===f.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],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))}}}},lt={mixins:[ot,ht,ct,rt],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){return mt(s.offsetWidth/t)},list({selList:t},s){return 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:it(),methods:{show(t,s=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,a=s?0:n.length,r=()=>{n.splice(a,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),o=e.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(t,this.index),d=this.slides[l];if(o===d){r();return}if(this.dir=pt(t,h),this.prevIndex=h,this.index=l,o&&!e.trigger(o,"beforeitemhide",[this])||!e.trigger(d,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}const c=this._show(o,d,s).then(()=>{o&&e.trigger(o,"itemhidden",[this]),e.trigger(d,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return o&&e.trigger(o,"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 pt(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function mt(t){return .5*t+300}var ft={mixins:[lt],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:B,Transitioner:st},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={...B,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)}]}}},H={mixins:[J,ft],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){return 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===f.LEFT?s="previous":t===f.RIGHT?s="next":t===f.HOME?s=0:t===f.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:a="",poster:r,attrs:h={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!i)return;let o;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:a,...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(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,x("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(o=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/${o[1]}${o[2]?`?${o[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}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",H),H});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -246,7 +246,6 @@
246
246
  }
247
247
  }
248
248
  function toggleAnimation(el, show, cmp) {
249
- util.Animation.cancel(el);
250
249
  const { animation, duration, _toggle } = cmp;
251
250
  if (show) {
252
251
  _toggle(el, true);
@@ -489,7 +488,7 @@
489
488
  }
490
489
  };
491
490
  function translated(el) {
492
- return Math.abs(util.css(el, "transform").split(",")[4] / el.offsetWidth) || 0;
491
+ return Math.abs(util.css(el, "transform").split(",")[4] / el.offsetWidth);
493
492
  }
494
493
  function translate(value = 0, unit = "%") {
495
494
  value += value ? unit : "";
@@ -1 +1 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 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 q={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 E;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}=e.scrollParent(n.target);r>=o&&n.cancelable&&n.preventDefault()},{passive:!1});if(E)return s;E=!0;const{scrollingElement:i}=document;return e.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:e.width(window)-i.clientWidth||""}),()=>{E=!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-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["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",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],d=[["left","right"],["top","bottom"]],p=d[e.includes(d[0],c)?0:1],f=p[1]===c,v=["width","height"][d.indexOf(p)],b=`margin-${p[0]}`,A=`margin-${c}`;let k=e.dimensions(t)[v];const wt=e.Transition.inProgress(t);await e.Transition.cancel(t),s&&h(t,!0);const xt=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,A].map(U=>[U,t.style[U]])),I=e.dimensions(t),D=e.toFloat(e.css(t,b)),z=e.toFloat(e.css(t,A)),u=I[v]+z;!wt&&!s&&(k+=z);const[P]=e.wrapInner(t,"<div>");e.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...e.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),e.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:I.width,height:I.height,overflow:"hidden",[v]:k});const R=k/u;n=(o*u+n)*(s?1-R:R);const W={[v]:s?u:0};f&&(e.css(t,b,u-k+D),W[b]=s?D:u+D),!f^l==="reveal"&&(e.css(P,b,-u+k),e.Transition.start(P,{[b]:s?0:-u},n,r));try{await e.Transition.start(t,W,n,r)}finally{e.css(t,xt),e.unwrap(P.firstChild),s||h(t,!1)}}function K(t,s,i){e.Animation.cancel(t);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 m=[];var Q={mixins:[q,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){return 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(m,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)&&!e.within(n,this.$el)&&e.$(n,document.body)?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(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(e.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(s=>s.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&e.css(this.$el,"zIndex",e.toFloat(e.css(this.$el,"zIndex"))+m.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(m,this)&&m.splice(m.indexOf(this),1),e.css(this.$el,"zIndex",""),m.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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(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(m)===t&&!e.within(s.target,t.$el)&&t.$el.focus()})}function et(t){return e.on(document,e.pointerDown,({target:s})=>{e.last(m)!==t||t.overlay&&!e.within(s,t.$el)||e.within(s,t.panel)||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(m)===t&&t.hide()})}var B={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)||0}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 c;return{dir:i,show(d,p=0,f){const $=f?"linear":o;return d-=Math.round(d*e.clamp(p,-1,1)),this.translate(p),T(s,"itemin",{percent:p,duration:d,timing:$,dir:i}),T(t,"itemout",{percent:1-p,duration:d,timing:$,dir:i}),new Promise(v=>{c||(c=v),Promise.all([e.Transition.start(s,l[1],d,$),e.Transition.start(t,l[0],d,$)]).then(()=>{this.reset(),c()},e.noop)})},cancel(){return e.Transition.cancel([s,t])},reset(){for(const d in l[0])e.css([s,t],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);e.css(s,p[1]),e.css(t,p[0]),T(s,"itemtranslatein",{percent:d,dir:i}),T(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function T(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}function rt(t){return ot(e.observeResize,t,"resize")}function ot(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var at={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++]||""))||""}}},ht={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 _={passive:!1,capture:!0},L={passive:!0,capture:!0},ct="touchstart mousedown",S="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var dt={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:ct,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&lt(t.target)||e.closest(t.target,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,..._}],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.on(document,M,this.end,L),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],c=this.index!==r,d=n===r;let p;for(const f of[this.index,this.prevIndex])e.includes([r,n],f)||(e.trigger(i[f],"itemhidden",[this]),d&&(p=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||p)&&e.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,!d&&e.trigger(a,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&l),c&&(!d&&e.trigger(a,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,S,this.move,_),e.off(document,M,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 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 lt(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function N(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=N(t,s,`${i}-2`)),n}const g={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var pt={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){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${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=N(this,a,`-item-${i}`)),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=N(this,this.list,"-items")),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){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===g.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===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.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))}}}},mt={mixins:[ht,dt,pt,at],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){return ft(s.offsetWidth/t)},list({selList:t},s){return 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:rt(),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),c=this.slides[l];if(a===c){r();return}if(this.dir=gt(t,h),this.prevIndex=h,this.index=l,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,c,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(c,"itemshow",[this]),d},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 gt(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function ft(t){return .5*t+300}var ut={mixins:[mt],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:B,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={...B,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)}]}}},vt={mixins:[Q,ut],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){return 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===g.LEFT?s="previous":t===g.RIGHT?s="next":t===g.HOME?s=0:t===g.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 c=x("img",{src:i,alt:o,...h});e.on(c,"load",()=>this.setItem(s,c)),e.on(c,"error",()=>this.setError(s))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=x("video",{src:i,poster:r,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});e.on(c,"loadedmetadata",()=>this.setItem(s,c)),e.on(c,"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:c,width:d}=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:d,height:c,...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 H={install:bt,props:{toggle:String},data:{toggle:"a"},computed:{toggles({toggle:t},s){return 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(j),"source");if(e.isElement(t)){const{source:i}=j(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 bt(t,s){t.lightboxPanel||t.component("lightboxPanel",vt),e.assign(s.props,t.component("lightboxPanel").options.props)}function j(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",H),H});
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 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 q={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 E;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}=e.scrollParent(n.target);r>=o&&n.cancelable&&n.preventDefault()},{passive:!1});if(E)return s;E=!0;const{scrollingElement:i}=document;return e.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:e.width(window)-i.clientWidth||""}),()=>{E=!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-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["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",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],d=[["left","right"],["top","bottom"]],p=d[e.includes(d[0],c)?0:1],f=p[1]===c,v=["width","height"][d.indexOf(p)],b=`margin-${p[0]}`,A=`margin-${c}`;let k=e.dimensions(t)[v];const wt=e.Transition.inProgress(t);await e.Transition.cancel(t),s&&h(t,!0);const xt=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,A].map(U=>[U,t.style[U]])),I=e.dimensions(t),D=e.toFloat(e.css(t,b)),z=e.toFloat(e.css(t,A)),u=I[v]+z;!wt&&!s&&(k+=z);const[P]=e.wrapInner(t,"<div>");e.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...e.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),e.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:I.width,height:I.height,overflow:"hidden",[v]:k});const R=k/u;n=(o*u+n)*(s?1-R:R);const W={[v]:s?u:0};f&&(e.css(t,b,u-k+D),W[b]=s?D:u+D),!f^l==="reveal"&&(e.css(P,b,-u+k),e.Transition.start(P,{[b]:s?0:-u},n,r));try{await e.Transition.start(t,W,n,r)}finally{e.css(t,xt),e.unwrap(P.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 m=[];var Q={mixins:[q,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){return 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(m,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)&&!e.within(n,this.$el)&&e.$(n,document.body)?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(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(e.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(s=>s.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&e.css(this.$el,"zIndex",e.toFloat(e.css(this.$el,"zIndex"))+m.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(m,this)&&m.splice(m.indexOf(this),1),e.css(this.$el,"zIndex",""),m.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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(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(m)===t&&!e.within(s.target,t.$el)&&t.$el.focus()})}function et(t){return e.on(document,e.pointerDown,({target:s})=>{e.last(m)!==t||t.overlay&&!e.within(s,t.$el)||e.within(s,t.panel)||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(m)===t&&t.hide()})}var B={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 c;return{dir:i,show(d,p=0,f){const $=f?"linear":o;return d-=Math.round(d*e.clamp(p,-1,1)),this.translate(p),T(s,"itemin",{percent:p,duration:d,timing:$,dir:i}),T(t,"itemout",{percent:1-p,duration:d,timing:$,dir:i}),new Promise(v=>{c||(c=v),Promise.all([e.Transition.start(s,l[1],d,$),e.Transition.start(t,l[0],d,$)]).then(()=>{this.reset(),c()},e.noop)})},cancel(){return e.Transition.cancel([s,t])},reset(){for(const d in l[0])e.css([s,t],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);e.css(s,p[1]),e.css(t,p[0]),T(s,"itemtranslatein",{percent:d,dir:i}),T(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function T(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}function rt(t){return ot(e.observeResize,t,"resize")}function ot(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var at={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++]||""))||""}}},ht={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 _={passive:!1,capture:!0},L={passive:!0,capture:!0},ct="touchstart mousedown",S="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var dt={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:ct,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&lt(t.target)||e.closest(t.target,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,..._}],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.on(document,M,this.end,L),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],c=this.index!==r,d=n===r;let p;for(const f of[this.index,this.prevIndex])e.includes([r,n],f)||(e.trigger(i[f],"itemhidden",[this]),d&&(p=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||p)&&e.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,!d&&e.trigger(a,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&l),c&&(!d&&e.trigger(a,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,S,this.move,_),e.off(document,M,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 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 lt(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function N(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=N(t,s,`${i}-2`)),n}const g={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var pt={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){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${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=N(this,a,`-item-${i}`)),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=N(this,this.list,"-items")),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){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===g.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===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.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))}}}},mt={mixins:[ht,dt,pt,at],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){return ft(s.offsetWidth/t)},list({selList:t},s){return 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:rt(),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),c=this.slides[l];if(a===c){r();return}if(this.dir=gt(t,h),this.prevIndex=h,this.index=l,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,c,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(c,"itemshow",[this]),d},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 gt(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function ft(t){return .5*t+300}var ut={mixins:[mt],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:B,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={...B,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)}]}}},vt={mixins:[Q,ut],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){return 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===g.LEFT?s="previous":t===g.RIGHT?s="next":t===g.HOME?s=0:t===g.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 c=x("img",{src:i,alt:o,...h});e.on(c,"load",()=>this.setItem(s,c)),e.on(c,"error",()=>this.setError(s))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=x("video",{src:i,poster:r,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});e.on(c,"loadedmetadata",()=>this.setItem(s,c)),e.on(c,"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:c,width:d}=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:d,height:c,...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 H={install:bt,props:{toggle:String},data:{toggle:"a"},computed:{toggles({toggle:t},s){return 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(j),"source");if(e.isElement(t)){const{source:i}=j(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 bt(t,s){t.lightboxPanel||t.component("lightboxPanel",vt),e.assign(s.props,t.component("lightboxPanel").options.props)}function j(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",H),H});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -28,7 +28,7 @@
28
28
  message: "",
29
29
  status: "",
30
30
  timeout: 5e3,
31
- group: null,
31
+ group: "",
32
32
  pos: "top-center",
33
33
  clsContainer: "uk-notification",
34
34
  clsClose: "uk-notification-close",
@@ -1 +1 @@
1
- /*! UIkit 3.16.27 | https://www.getuikit.com | (c) 2014 - 2023 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:null,pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp({pos:s}){return`margin${t.startsWith(s,"top")?"Top":"Bottom"}`},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`;let e=t.$(`.${s}`,this.container);(!e||!t.isVisible(e))&&(e=t.append(this.container,`<div class="${this.clsContainer} ${s}"></div>`)),this.$mount(t.append(e,`<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){t.closest(s.target,'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.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 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}){return`margin${t.startsWith(s,"top")?"Top":"Bottom"}`},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`;let e=t.$(`.${s}`,this.container);(!e||!t.isVisible(e))&&(e=t.append(this.container,`<div class="${this.clsContainer} ${s}"></div>`)),this.$mount(t.append(e,`<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){t.closest(s.target,'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.16.27 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.1-dev.7c0766a6f | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -15,10 +15,7 @@
15
15
  function scroll(options) {
16
16
  return observe(
17
17
  (target, handler) => ({
18
- disconnect: uikitUtil.on(toScrollTargets(target), "scroll", handler, {
19
- passive: true,
20
- capture: true
21
- })
18
+ disconnect: uikitUtil.on(toScrollTargets(target), "scroll", handler, { passive: true })
22
19
  }),
23
20
  options,
24
21
  "scroll"
@@ -97,9 +94,6 @@
97
94
  function isNode(obj) {
98
95
  return nodeType(obj) >= 1;
99
96
  }
100
- function isElement(obj) {
101
- return nodeType(obj) === 1;
102
- }
103
97
  function nodeType(obj) {
104
98
  return !isWindow(obj) && isObject(obj) && obj.nodeType;
105
99
  }
@@ -131,7 +125,8 @@
131
125
  return toNodes(element).some((element2) => element2.matches(selector));
132
126
  }
133
127
  function closest(element, selector) {
134
- return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
128
+ var _a;
129
+ return (_a = toNode(element)) == null ? void 0 : _a.closest(startsWith(selector, ">") ? selector.slice(1) : selector);
135
130
  }
136
131
  function children(element, selector) {
137
132
  element = toNode(element);
@@ -238,20 +233,15 @@
238
233
  return isString(css) ? CSS.escape(css) : "";
239
234
  }
240
235
 
241
- const fragmentRe = /^\s*<(\w+|!)[^>]*>/;
242
236
  const singleTagRe = /^<(\w+)\s*\/?>(?:<\/\1>)?$/;
243
237
  function fragment(html2) {
244
238
  const matches = singleTagRe.exec(html2);
245
239
  if (matches) {
246
240
  return document.createElement(matches[1]);
247
241
  }
248
- const container = document.createElement("div");
249
- if (fragmentRe.test(html2)) {
250
- container.insertAdjacentHTML("beforeend", html2.trim());
251
- } else {
252
- container.textContent = html2;
253
- }
254
- return unwrapSingle(container.childNodes);
242
+ const container = document.createElement("template");
243
+ container.innerHTML = html2.trim();
244
+ return unwrapSingle(container.content.childNodes);
255
245
  }
256
246
  function unwrapSingle(nodes) {
257
247
  return nodes.length > 1 ? nodes : nodes[0];