uikit 3.15.9-dev.ffad54c1a → 3.15.10-dev.6ba1ea187

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 (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +44 -52
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +44 -52
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +4 -4
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +47 -55
  41. package/dist/js/uikit.min.js +2 -2
  42. package/package.json +1 -1
  43. package/src/js/api/state.js +2 -2
  44. package/src/js/mixin/animate.js +1 -4
  45. package/src/js/mixin/internal/animate-slide.js +47 -53
  46. package/tests/filter.html +2 -2
  47. package/tests/lightbox.html +2 -2
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitCountdown=s(e.UIkit.util))})(this,function(e){"use strict";var s={connected(){e.addClass(this.$el,this.$options.id)}};const a=["days","hours","minutes","seconds"];var d={mixins:[s],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},connected(){this.date=Date.parse(this.$props.date),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=setInterval(this.update,1e3)},stop(){clearInterval(this.timer)},update(){const n=r(this.date);(!this.date||n.total<=0)&&(this.stop(),n.days=n.hours=n.minutes=n.seconds=0);for(const i of a){const o=e.$(this.clsWrapper.replace("%unit%",i),this.$el);if(!o)continue;let t=String(Math.trunc(n[i]));t=t.length<2?"0"+t:t,o.textContent!==t&&(t=t.split(""),t.length!==o.children.length&&e.html(o,t.map(()=>"<span></span>").join("")),t.forEach((u,h)=>o.children[h].textContent=u))}}}};function r(n){const i=n-Date.now();return{total:i,seconds:i/1e3%60,minutes:i/1e3/60%60,hours:i/1e3/60/60%24,days:i/1e3/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",d),d});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitCountdown=s(e.UIkit.util))})(this,function(e){"use strict";var s={connected(){e.addClass(this.$el,this.$options.id)}};const a=["days","hours","minutes","seconds"];var d={mixins:[s],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},connected(){this.date=Date.parse(this.$props.date),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=setInterval(this.update,1e3)},stop(){clearInterval(this.timer)},update(){const n=r(this.date);(!this.date||n.total<=0)&&(this.stop(),n.days=n.hours=n.minutes=n.seconds=0);for(const i of a){const o=e.$(this.clsWrapper.replace("%unit%",i),this.$el);if(!o)continue;let t=String(Math.trunc(n[i]));t=t.length<2?"0"+t:t,o.textContent!==t&&(t=t.split(""),t.length!==o.children.length&&e.html(o,t.map(()=>"<span></span>").join("")),t.forEach((u,h)=>o.children[h].textContent=u))}}}};function r(n){const i=n-Date.now();return{total:i,seconds:i/1e3%60,minutes:i/1e3/60%60,hours:i/1e3/60/60%24,days:i/1e3/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",d),d});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -203,14 +203,10 @@
203
203
 
204
204
  // Get current state
205
205
  const currentProps = nodes.map((el) => getProps(el, true));
206
- const targetProps = uikitUtil.css(target, ['height', 'padding']);
206
+ const targetProps = { ...uikitUtil.css(target, ['height', 'padding']), display: 'block' };
207
207
 
208
208
  // Cancel previous animations
209
- uikitUtil.Transition.cancel(target);
210
- nodes.forEach(uikitUtil.Transition.cancel);
211
- reset(target);
212
-
213
- const { promise, observer } = awaitMutation(target);
209
+ await Promise.all(nodes.concat(target).map(uikitUtil.Transition.cancel));
214
210
 
215
211
  // Adding, sorting, removing nodes
216
212
  action();
@@ -219,23 +215,23 @@
219
215
  nodes = nodes.concat(uikitUtil.children(target).filter((el) => !uikitUtil.includes(nodes, el)));
220
216
 
221
217
  // Wait for update to propagate
222
- if (uikitUtil.isEqual(uikitUtil.children(target), nodes)) {
223
- observer.disconnect();
224
- await Promise.resolve();
225
- } else {
226
- await promise;
227
- }
218
+ await awaitMutation();
228
219
 
229
220
  // Force update
230
221
  uikitUtil.fastdom.flush();
231
222
 
232
223
  // Get new state
224
+ const targetStyle = uikitUtil.attr(target, 'style');
233
225
  const targetPropsTo = uikitUtil.css(target, ['height', 'padding']);
234
226
  const [propsTo, propsFrom] = getTransitionProps(target, nodes, currentProps);
227
+ const attrsTo = nodes.map((el) => ({
228
+ class: uikitUtil.attr(el, 'class'),
229
+ style: uikitUtil.attr(el, 'style') }));
230
+
235
231
 
236
232
  // Reset to previous state
237
233
  nodes.forEach((el, i) => propsFrom[i] && uikitUtil.css(el, propsFrom[i]));
238
- uikitUtil.css(target, { display: 'block', ...targetProps });
234
+ uikitUtil.css(target, targetProps);
239
235
 
240
236
  // Start transitions on next frame
241
237
  await awaitFrame();
@@ -244,13 +240,19 @@
244
240
  map((el, i) => uikitUtil.parent(el) === target && uikitUtil.Transition.start(el, propsTo[i], duration, 'ease')).
245
241
  concat(uikitUtil.Transition.start(target, targetPropsTo, duration, 'ease'));
246
242
 
247
- await Promise.all(transitions).then(() => {
248
- nodes.forEach(
249
- (el, i) =>
250
- uikitUtil.parent(el) === target && uikitUtil.css(el, 'display', propsTo[i].opacity === 0 ? 'none' : ''));
251
-
252
- reset(target);
253
- }, uikitUtil.noop);
243
+ try {
244
+ await Promise.all(transitions);
245
+ nodes.forEach((el, i) => {
246
+ uikitUtil.attr(el, attrsTo[i]);
247
+ if (uikitUtil.parent(el) === target) {
248
+ uikitUtil.css(el, 'display', propsTo[i].opacity === 0 ? 'none' : '');
249
+ }
250
+ });
251
+ uikitUtil.attr(target, 'style', targetStyle);
252
+ } catch (e) {
253
+ uikitUtil.attr(nodes, 'style', '');
254
+ resetProps(target, targetProps);
255
+ }
254
256
  }
255
257
 
256
258
  function getProps(el, opacity) {
@@ -304,49 +306,42 @@
304
306
  return [propsTo, propsFrom];
305
307
  }
306
308
 
307
- function reset(el) {
308
- uikitUtil.css(el.children, {
309
- height: '',
310
- left: '',
311
- opacity: '',
312
- pointerEvents: '',
313
- position: '',
314
- top: '',
315
- marginTop: '',
316
- marginLeft: '',
317
- transform: '',
318
- width: '',
319
- zIndex: '' });
320
-
321
- uikitUtil.css(el, { height: '', display: '', padding: '' });
309
+ function resetProps(el, props) {
310
+ for (const prop in props) {
311
+ uikitUtil.css(el, prop, '');
312
+ }
322
313
  }
323
314
 
324
315
  function getPositionWithMargin(el) {
325
316
  const { height, width } = uikitUtil.offset(el);
326
- const { top, left } = uikitUtil.position(el);
327
- const { marginLeft, marginTop } = uikitUtil.css(el, ['marginTop', 'marginLeft']);
328
317
 
329
- return { top, left, height, width, marginLeft, marginTop, transform: '' };
318
+ return {
319
+ height,
320
+ width,
321
+ transform: '',
322
+ ...uikitUtil.position(el),
323
+ ...uikitUtil.css(el, ['marginTop', 'marginLeft']) };
324
+
330
325
  }
331
326
 
332
327
  function awaitFrame() {
333
328
  return new Promise((resolve) => requestAnimationFrame(resolve));
334
329
  }
335
330
 
336
- function awaitMutation(target) {
337
- let observer;
338
- const promise = new Promise(
339
- (resolve) =>
340
- observer = uikitUtil.observeMutation(
341
- target,
342
- (records, observer) => {
331
+ function awaitMutation() {
332
+ const text = document.createTextNode('');
333
+ const promise = new Promise((resolve) =>
334
+ uikitUtil.observeMutation(
335
+ text,
336
+ (_, observer) => {
343
337
  resolve();
344
338
  observer.disconnect();
345
339
  },
346
- { childList: true, attributes: true }));
340
+ { characterData: true }));
347
341
 
348
342
 
349
- return { promise, observer };
343
+ text.data = 1;
344
+ return promise;
350
345
  }
351
346
 
352
347
  var Animate = {
@@ -375,10 +370,7 @@
375
370
  return Promise.resolve();
376
371
  };
377
372
 
378
- return animationFn(action, target, this.duration).then(
379
- () => this.$update(target, 'resize'),
380
- uikitUtil.noop);
381
-
373
+ return animationFn(action, target, this.duration).catch(uikitUtil.noop);
382
374
  } } };
383
375
 
384
376
  var Component = {
@@ -1 +1 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],u):(n=typeof globalThis<"u"?globalThis:n||self,n.UIkitFilter=u(n.UIkit.util))})(this,function(n){"use strict";function u(s){return L(s,"top","bottom")}function L(s,e,o){const t=[[]];for(const a of s){if(!n.isVisible(a))continue;let r=w(a);for(let c=t.length-1;c>=0;c--){const f=t[c];if(!f[0]){f.push(a);break}let i;if(f[0].offsetParent===a.offsetParent?i=w(f[0]):(r=w(a,!0),i=w(f[0],!0)),r[e]>=i[o]-1&&r[e]!==i[e]){t.push([a]);break}if(r[o]-1>i[e]||r[e]===i[e]){f.push(a);break}if(c===0){t.unshift([a]);break}}}return t}function w(s,e){e===void 0&&(e=!1);let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:r}=s;return e&&([o,t]=n.offsetPosition(s)),{top:o,left:t,bottom:o+a,right:t+r}}const v="uk-transition-leave",g="uk-transition-enter";function T(s,e,o,t){t===void 0&&(t=0);const a=y(e,!0),r={opacity:1},c={opacity:0},f=h=>()=>a===y(e)?h():Promise.reject(),i=f(async()=>{n.addClass(e,v),await Promise.all(b(e).map((h,l)=>new Promise(d=>setTimeout(()=>n.Transition.start(h,c,o/2,"ease").then(d),l*t)))),n.removeClass(e,v)}),m=f(async()=>{const h=n.height(e);n.addClass(e,g),s(),n.css(n.children(e),{opacity:0}),await A();const l=n.children(e),d=n.height(e);n.css(e,"alignContent","flex-start"),n.height(e,h);const p=b(e);n.css(l,c);const q=p.map(async(G,J)=>{await z(J*t),await n.Transition.start(G,r,o/2,"ease")});h!==d&&q.push(n.Transition.start(e,{height:d},o/2+p.length*t,"ease")),await Promise.all(q).then(()=>{n.removeClass(e,g),a===y(e)&&(n.css(e,{height:"",alignContent:""}),n.css(l,{opacity:""}),delete e.dataset.transition)})});return n.hasClass(e,v)?I(e).then(m):n.hasClass(e,g)?I(e).then(i).then(m):i().then(m)}function y(s,e){return e&&(s.dataset.transition=1+y(s)),n.toNumber(s.dataset.transition)||0}function I(s){return Promise.all(n.children(s).filter(n.Transition.inProgress).map(e=>new Promise(o=>n.once(e,"transitionend transitioncanceled",o))))}function b(s){return u(n.children(s)).reduce((e,o)=>e.concat(n.sortBy(o.filter(t=>n.isInView(t)),"offsetLeft")),[])}function A(){return new Promise(s=>requestAnimationFrame(s))}function z(s){return new Promise(e=>setTimeout(e,s))}async function V(s,e,o){await P();let t=n.children(e);const a=t.map(d=>F(d,!0)),r=n.css(e,["height","padding"]);n.Transition.cancel(e),t.forEach(n.Transition.cancel),S(e);const{promise:c,observer:f}=N(e);s(),t=t.concat(n.children(e).filter(d=>!n.includes(t,d))),n.isEqual(n.children(e),t)?(f.disconnect(),await Promise.resolve()):await c,n.fastdom.flush();const i=n.css(e,["height","padding"]),[m,h]=B(e,t,a);t.forEach((d,p)=>h[p]&&n.css(d,h[p])),n.css(e,{display:"block",...r}),await P();const l=t.map((d,p)=>n.parent(d)===e&&n.Transition.start(d,m[p],o,"ease")).concat(n.Transition.start(e,i,o,"ease"));await Promise.all(l).then(()=>{t.forEach((d,p)=>n.parent(d)===e&&n.css(d,"display",m[p].opacity===0?"none":"")),S(e)},n.noop)}function F(s,e){const o=n.css(s,"zIndex");return n.isVisible(s)?{display:"",opacity:e?n.css(s,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?n.index(s):o,...$(s)}:!1}function B(s,e,o){const t=e.map((r,c)=>n.parent(r)&&c in o?o[c]?n.isVisible(r)?$(r):{opacity:0}:{opacity:n.isVisible(r)?1:0}:!1),a=t.map((r,c)=>{const f=n.parent(e[c])===s&&(o[c]||F(e[c]));if(!f)return!1;if(!r)delete f.opacity;else if(!("opacity"in r)){const{opacity:i}=f;i%1?r.opacity=1:delete f.opacity}return f});return[t,a]}function S(s){n.css(s.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),n.css(s,{height:"",display:"",padding:""})}function $(s){const{height:e,width:o}=n.offset(s),{top:t,left:a}=n.position(s),{marginLeft:r,marginTop:c}=n.css(s,["marginTop","marginLeft"]);return{top:t,left:a,height:e,width:o,marginLeft:r,marginTop:c,transform:""}}function P(){return new Promise(s=>requestAnimationFrame(s))}function N(s){let e;return{promise:new Promise(t=>e=n.observeMutation(s,(a,r)=>{t(),r.disconnect()},{childList:!0,attributes:!0})),observer:e}}var O={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(s,e){e===void 0&&(e=this.$el);const o=this.animation;return(o==="fade"?T:o==="delayed-fade"?function(){for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return T(...r,40)}:o?V:()=>(s(),Promise.resolve()))(s,e,this.duration).then(()=>this.$update(e,"resize"),n.noop)}}},E={mixins:[O],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get(s,e){let{attrItem:o}=s;return n.$$("["+o+"],[data-"+o+"]",e)},watch(){if(this.updateState(),this.selActive!==!1){const s=n.$$(this.selActive,this.$el);this.toggles.forEach(e=>n.toggleClass(e,this.cls,n.includes(s,e)))}},immediate:!0},children:{get(s,e){let{target:o}=s;return n.$$(o+" > *",e)},watch(s,e){e&&!D(s,e)&&this.updateState()},immediate:!0}},events:[{name:"click",delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(s){s.preventDefault(),this.apply(s.current)}}],methods:{apply(s){const e=this.getState(),o=x(s,this.attrItem,this.getState());H(e,o)||this.setState(o)},getState(){return this.toggles.filter(s=>n.hasClass(s,this.cls)).reduce((s,e)=>x(e,this.attrItem,s),{filter:{"":""},sort:[]})},async setState(s,e){e===void 0&&(e=!0),s={filter:{"":""},sort:[],...s},n.trigger(this.$el,"beforeFilter",[this,s]),this.toggles.forEach(o=>n.toggleClass(o,this.cls,!!j(o,this.attrItem,s))),await Promise.all(n.$$(this.target,this.$el).map(o=>{const t=()=>{M(s,o,n.children(o)),this.$update(this.$el)};return e?this.animate(t,o):t()})),n.trigger(this.$el,"afterFilter",[this])},updateState(){n.fastdom.write(()=>this.setState(this.getState(),!1))}}};function C(s,e){return n.parseOptions(n.data(s,e),["filter"])}function H(s,e){return["filter","sort"].every(o=>n.isEqual(s[o],e[o]))}function M(s,e,o){const t=W(s);o.forEach(c=>n.css(c,"display",t&&!n.matches(c,t)?"none":""));const[a,r]=s.sort;if(a){const c=R(o,a,r);n.isEqual(c,o)||n.append(e,c)}}function x(s,e,o){const{filter:t,group:a,sort:r,order:c="asc"}=C(s,e);return(t||n.isUndefined(r))&&(a?t?(delete o.filter[""],o.filter[a]=t):(delete o.filter[a],(n.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":t||""})):o.filter={"":t||""}),n.isUndefined(r)||(o.sort=[r,c]),o}function j(s,e,o){let{filter:t={"":""},sort:[a,r]}=o;const{filter:c="",group:f="",sort:i,order:m="asc"}=C(s,e);return n.isUndefined(i)?f in t&&c===t[f]||!c&&f&&!(f in t)&&!t[""]:a===i&&r===m}function D(s,e){return s.length===e.length&&s.every(o=>e.includes(o))}function W(s){let{filter:e}=s,o="";return n.each(e,t=>o+=t||""),o}function R(s,e,o){return[...s].sort((t,a)=>n.data(t,e).localeCompare(n.data(a,e),void 0,{numeric:!0})*(o==="asc"||-1))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",E),E});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],u):(n=typeof globalThis<"u"?globalThis:n||self,n.UIkitFilter=u(n.UIkit.util))})(this,function(n){"use strict";function u(s){return q(s,"top","bottom")}function q(s,e,t){const o=[[]];for(const r of s){if(!n.isVisible(r))continue;let a=y(r);for(let c=o.length-1;c>=0;c--){const f=o[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[t]-1&&a[e]!==h[e]){o.push([r]);break}if(a[t]-1>h[e]||a[e]===h[e]){f.push(r);break}if(c===0){o.unshift([r]);break}}}return o}function y(s,e){e===void 0&&(e=!1);let{offsetTop:t,offsetLeft:o,offsetHeight:r,offsetWidth:a}=s;return e&&([t,o]=n.offsetPosition(s)),{top:t,left:o,bottom:t+r,right:o+a}}const v="uk-transition-leave",T="uk-transition-enter";function g(s,e,t,o){o===void 0&&(o=0);const r=w(e,!0),a={opacity:1},c={opacity:0},f=m=>()=>r===w(e)?m():Promise.reject(),h=f(async()=>{n.addClass(e,v),await Promise.all(F(e).map((m,l)=>new Promise(d=>setTimeout(()=>n.Transition.start(m,c,t/2,"ease").then(d),l*o)))),n.removeClass(e,v)}),p=f(async()=>{const m=n.height(e);n.addClass(e,T),s(),n.css(n.children(e),{opacity:0}),await A();const l=n.children(e),d=n.height(e);n.css(e,"alignContent","flex-start"),n.height(e,m);const i=F(e);n.css(l,c);const E=i.map(async(G,J)=>{await L(J*o),await n.Transition.start(G,a,t/2,"ease")});m!==d&&E.push(n.Transition.start(e,{height:d},t/2+i.length*o,"ease")),await Promise.all(E).then(()=>{n.removeClass(e,T),r===w(e)&&(n.css(e,{height:"",alignContent:""}),n.css(l,{opacity:""}),delete e.dataset.transition)})});return n.hasClass(e,v)?I(e).then(p):n.hasClass(e,T)?I(e).then(h).then(p):h().then(p)}function w(s,e){return e&&(s.dataset.transition=1+w(s)),n.toNumber(s.dataset.transition)||0}function I(s){return Promise.all(n.children(s).filter(n.Transition.inProgress).map(e=>new Promise(t=>n.once(e,"transitionend transitioncanceled",t))))}function F(s){return u(n.children(s)).reduce((e,t)=>e.concat(n.sortBy(t.filter(o=>n.isInView(o)),"offsetLeft")),[])}function A(){return new Promise(s=>requestAnimationFrame(s))}function L(s){return new Promise(e=>setTimeout(e,s))}async function N(s,e,t){await b();let o=n.children(e);const r=o.map(d=>S(d,!0)),a={...n.css(e,["height","padding"]),display:"block"};await Promise.all(o.concat(e).map(n.Transition.cancel)),s(),o=o.concat(n.children(e).filter(d=>!n.includes(o,d))),await O(),n.fastdom.flush();const c=n.attr(e,"style"),f=n.css(e,["height","padding"]),[h,p]=V(e,o,r),m=o.map(d=>({class:n.attr(d,"class"),style:n.attr(d,"style")}));o.forEach((d,i)=>p[i]&&n.css(d,p[i])),n.css(e,a),await b();const l=o.map((d,i)=>n.parent(d)===e&&n.Transition.start(d,h[i],t,"ease")).concat(n.Transition.start(e,f,t,"ease"));try{await Promise.all(l),o.forEach((d,i)=>{n.attr(d,m[i]),n.parent(d)===e&&n.css(d,"display",h[i].opacity===0?"none":"")}),n.attr(e,"style",c)}catch{n.attr(o,"style",""),B(e,a)}}function S(s,e){const t=n.css(s,"zIndex");return n.isVisible(s)?{display:"",opacity:e?n.css(s,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:t==="auto"?n.index(s):t,...P(s)}:!1}function V(s,e,t){const o=e.map((a,c)=>n.parent(a)&&c in t?t[c]?n.isVisible(a)?P(a):{opacity:0}:{opacity:n.isVisible(a)?1:0}:!1),r=o.map((a,c)=>{const f=n.parent(e[c])===s&&(t[c]||S(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[o,r]}function B(s,e){for(const t in e)n.css(s,t,"")}function P(s){const{height:e,width:t}=n.offset(s);return{height:e,width:t,transform:"",...n.position(s),...n.css(s,["marginTop","marginLeft"])}}function b(){return new Promise(s=>requestAnimationFrame(s))}function O(){const s=document.createTextNode(""),e=new Promise(t=>n.observeMutation(s,(o,r)=>{t(),r.disconnect()},{characterData:!0}));return s.data=1,e}var z={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(s,e){e===void 0&&(e=this.$el);const t=this.animation;return(t==="fade"?g:t==="delayed-fade"?function(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return g(...a,40)}:t?N:()=>(s(),Promise.resolve()))(s,e,this.duration).catch(n.noop)}}},$={mixins:[z],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get(s,e){let{attrItem:t}=s;return n.$$("["+t+"],[data-"+t+"]",e)},watch(){if(this.updateState(),this.selActive!==!1){const s=n.$$(this.selActive,this.$el);this.toggles.forEach(e=>n.toggleClass(e,this.cls,n.includes(s,e)))}},immediate:!0},children:{get(s,e){let{target:t}=s;return n.$$(t+" > *",e)},watch(s,e){e&&!j(s,e)&&this.updateState()},immediate:!0}},events:[{name:"click",delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(s){s.preventDefault(),this.apply(s.current)}}],methods:{apply(s){const e=this.getState(),t=C(s,this.attrItem,this.getState());D(e,t)||this.setState(t)},getState(){return this.toggles.filter(s=>n.hasClass(s,this.cls)).reduce((s,e)=>C(e,this.attrItem,s),{filter:{"":""},sort:[]})},async setState(s,e){e===void 0&&(e=!0),s={filter:{"":""},sort:[],...s},n.trigger(this.$el,"beforeFilter",[this,s]),this.toggles.forEach(t=>n.toggleClass(t,this.cls,!!M(t,this.attrItem,s))),await Promise.all(n.$$(this.target,this.$el).map(t=>{const o=()=>{H(s,t,n.children(t)),this.$update(this.$el)};return e?this.animate(o,t):o()})),n.trigger(this.$el,"afterFilter",[this])},updateState(){n.fastdom.write(()=>this.setState(this.getState(),!1))}}};function x(s,e){return n.parseOptions(n.data(s,e),["filter"])}function D(s,e){return["filter","sort"].every(t=>n.isEqual(s[t],e[t]))}function H(s,e,t){const o=W(s);t.forEach(c=>n.css(c,"display",o&&!n.matches(c,o)?"none":""));const[r,a]=s.sort;if(r){const c=R(t,r,a);n.isEqual(c,t)||n.append(e,c)}}function C(s,e,t){const{filter:o,group:r,sort:a,order:c="asc"}=x(s,e);return(o||n.isUndefined(a))&&(r?o?(delete t.filter[""],t.filter[r]=o):(delete t.filter[r],(n.isEmpty(t.filter)||""in t.filter)&&(t.filter={"":o||""})):t.filter={"":o||""}),n.isUndefined(a)||(t.sort=[a,c]),t}function M(s,e,t){let{filter:o={"":""},sort:[r,a]}=t;const{filter:c="",group:f="",sort:h,order:p="asc"}=x(s,e);return n.isUndefined(h)?f in o&&c===o[f]||!c&&f&&!(f in o)&&!o[""]:r===h&&a===p}function j(s,e){return s.length===e.length&&s.every(t=>e.includes(t))}function W(s){let{filter:e}=s,t="";return n.each(e,o=>t+=o||""),t}function R(s,e,t){return[...s].sort((o,r)=>n.data(o,e).localeCompare(n.data(r,e),void 0,{numeric:!0})*(t==="asc"||-1))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",$),$});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],u):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox_panel=u(t.UIkit.util))})(this,function(t){"use strict";var u={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return q(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function q(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e,s){return e===void 0&&(e=0),s===void 0&&(s="%"),e+=e?s:"","translate3d("+e+", 0, 0)"}function $(e){return"scale3d("+e+", "+e+", 1)"}var B={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:$(1-.2)},{opacity:1,transform:$(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:$(1-.2*e)},{opacity:e,transform:$(1-.2+.2*e)}]}}},z={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:s}=e;return s===!0&&this.$container||s&&t.$(s)}}},V={connected(){t.addClass(this.$el,this.$options.id)}},O={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(e){let{animation:s}=e;return!!s[0]},hasTransition(e){let{animation:s}=e;return["slide","reveal"].some(n=>t.startsWith(s[0],n))}},methods:{toggleElement(e,s,n){return new Promise(o=>Promise.all(t.toNodes(e).map(a=>{const r=t.isBoolean(s)?s:!this.isToggled(a);if(!t.trigger(a,"before"+(r?"show":"hide"),[this]))return Promise.reject();const i=(t.isFunction(n)?n:n===!1||!this.hasAnimation?X:this.hasTransition?G:J)(a,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(a,h),t.trigger(a,r?"show":"hide",[this]);const d=()=>{t.removeClass(a,h),t.trigger(a,r?"shown":"hidden",[this])};return i?i.then(d,()=>(t.removeClass(a,h),Promise.reject())):d()})).then(o,t.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=t.toNodes(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=Boolean(s);let n;this.cls?(n=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),n&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(n=s===e.hidden,n&&(e.hidden=!s)),t.$$("[autofocus]",e).some(o=>t.isVisible(o)?o.focus()||!0:o.blur()),n&&t.trigger(e,"toggled",[s,this])}}};function X(e,s,n){let{_toggle:o}=n;return t.Animation.cancel(e),t.Transition.cancel(e),o(e,s)}async function G(e,s,n){var o;let{animation:a,duration:r,velocity:i,transition:h,_toggle:d}=n;const[c="reveal",g="top"]=((o=a[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],m=l[t.includes(l[0],g)?0:1],T=m[1]===g,A=["width","height"][l.indexOf(m)],v="margin-"+m[0],_="margin-"+g;let x=t.dimensions(e)[A];const me=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&d(e,!0);const ge=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",v,_].map(Y=>[Y,e.style[Y]])),I=t.dimensions(e),N=t.toFloat(t.css(e,v)),F=t.toFloat(t.css(e,_)),p=I[A]+F;!me&&!s&&(x+=F);const[P]=t.wrapInner(e,"<div>");t.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",_])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[_]:0,width:I.width,height:I.height,overflow:"hidden",[A]:x});const H=x/p;r=(i*p+r)*(s?1-H:H);const L={[A]:s?p:0};T&&(t.css(e,v,p-x+N),L[v]=s?N:p+N),!T^c==="reveal"&&(t.css(P,v,-p+x),t.Transition.start(P,{[v]:s?0:-p},r,h));try{await t.Transition.start(e,L,r,h)}finally{t.css(e,ge),t.unwrap(P.firstChild),s||d(e,!1)}}function J(e,s,n){t.Animation.cancel(e);const{animation:o,duration:a,_toggle:r}=n;return s?(r(e,!0),t.Animation.in(e,o[0],a,n.origin)):t.Animation.out(e,o[1]||o[0],a,n.origin).then(()=>r(e,!1))}const f=[];var K={mixins:[V,z,O],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,s){let{selPanel:n}=e;return t.$(n,s)},transitionElement(){return this.panel},bgClose(e){let{bgClose:s}=e;return s&&this.panel}},beforeDisconnect(){t.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"click",delegate(){return'a[href*="#"]'},handler(e){let{current:s,defaultPrevented:n}=e;const{hash:o}=s;!n&&o&&ee(s)&&!t.within(o,this.$el)&&t.$(o,document.body)&&this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(s=>s.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){t.once(this.$el,"hide",t.on(document,"focusin",e=>{t.last(f)===this&&!t.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(t.once(this.$el,"hidden",Z(this.$el),{self:!0}),t.once(this.$el,"hidden",k(),{self:!0})),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+f.length),t.addClass(document.documentElement,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,e=>{let{target:s}=e;t.last(f)!==this||this.overlay&&!t.within(s,this.$el)||t.within(s,this.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",n=>{let{defaultPrevented:o,type:a,target:r}=n;!o&&a===t.pointerUp&&s===r&&this.hide()},!0)}),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",e=>{e.keyCode===27&&t.last(f)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(f,this)&&f.splice(f.indexOf(this),1),t.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,j)},hide(){return this.toggleElement(this.$el,!1,j)}}};function j(e,s,n){let{transitionElement:o,_toggle:a}=n;return new Promise((r,i)=>t.once(e,"show hide",()=>{e._reject==null||e._reject(),e._reject=i,a(e,s);const h=t.once(o,"transitionstart",()=>{t.once(o,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{h(),r()},Q(t.css(o,"transitionDuration")))})).then(()=>delete e._reject)}function Q(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function Z(e){if(CSS.supports("overscroll-behavior","contain")){const o=U(e,a=>/auto|scroll/.test(t.css(a,"overflow")));return t.css(o,"overscrollBehavior","contain"),()=>t.css(o,"overscrollBehavior","")}let s;const n=[t.on(e,"touchstart",o=>{let{targetTouches:a}=o;a.length===1&&(s=a[0].clientY)},{passive:!0}),t.on(e,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[a]=t.scrollParents(o.target,/auto|scroll/);t.within(a,e)||(a=e);const r=o.targetTouches[0].clientY-s,{scrollTop:i,scrollHeight:h,clientHeight:d}=a;(d>=h||i===0&&r>0||h-i<=d&&r<0)&&o.cancelable&&o.preventDefault()},{passive:!1})];return()=>n.forEach(o=>o())}let S;function k(){if(S)return t.noop;S=!0;const{scrollingElement:e}=document;return t.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:t.width(window)-e.clientWidth}),()=>{S=!1,t.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function U(e,s){const n=[];return t.apply(e,o=>{s(o)&&n.push(o)}),n}function ee(e){return["origin","pathname","search"].every(s=>e[s]===location[s])}function te(e,s,n,o){let{animation:a,easing:r}=o;const{percent:i,translate:h,show:d=t.noop}=a,c=d(n),g=new t.Deferred;return{dir:n,show(l,m,T){m===void 0&&(m=0);const b=T?"linear":r;return l-=Math.round(l*t.clamp(m,-1,1)),this.translate(m),C(s,"itemin",{percent:m,duration:l,timing:b,dir:n}),C(e,"itemout",{percent:1-m,duration:l,timing:b,dir:n}),Promise.all([t.Transition.start(s,c[1],l,b),t.Transition.start(e,c[0],l,b)]).then(()=>{this.reset(),g.resolve()},t.noop),g.promise},cancel(){t.Transition.cancel([s,e])},reset(){for(const l in c[0])t.css([s,e],l,"")},forward(l,m){return m===void 0&&(m=this.percent()),t.Transition.cancel([s,e]),this.show(l,m,!0)},translate(l){this.reset();const m=h(l,n);t.css(s,m[1]),t.css(e,m[0]),C(s,"itemtranslatein",{percent:l,dir:n}),C(e,"itemtranslateout",{percent:1-l,dir:n})},percent(){return i(e||s,s,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function C(e,s,n){t.trigger(e,t.createEvent(s,!1,!1,n))}var se={connected(){var e;this.registerObserver(t.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},ne={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.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.draggable||!t.$(":focus",this.$el))&&(!this.pauseOnHover||!t.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const E={passive:!1,capture:!0},M={passive:!0,capture:!0},oe="touchstart mousedown",D="touchmove mousemove",W="touchend touchcancel mouseup click input scroll";var re={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=n=>{const o=t.getEventPos(n).x*(t.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,s(n)}}},events:[{name:oe,passive:!0,delegate(){return this.selSlides},handler(e){!this.draggable||!t.isTouch(e)&&ae(e.target)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:D,el(){return this.list},handler:t.noop,...E}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,D,this.move,E),t.on(document,W,this.end,M),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,a=Math.abs(s),r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;for(;r!==o&&a>i;)this.drag-=i*this.dir,o=r,a-=i,r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;this.percent=a/i;const h=n[o],d=n[r],c=this.index!==r,g=o===r;let l;[this.index,this.prevIndex].filter(m=>!t.includes([r,o],m)).forEach(m=>{t.trigger(n[m],"itemhidden",[this]),g&&(l=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=o,this.index=r,!g&&t.trigger(h,"beforeitemhide",[this]),t.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!g&&d),c&&(!g&&t.trigger(h,"itemhide",[this]),t.trigger(d,"itemshow",[this]))},end(){if(t.off(document,D,this.move,E),t.off(document,W,this.end,M),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ae(e){return t.css(e,"userSelect")!=="none"&&t.toNodes(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var ie={data:{selNav:!1},computed:{nav(e,s){let{selNav:n}=e;return t.$(n,s)},selNavItem(e){let{attrItem:s}=e;return"["+s+"],[data-"+s+"]"},navItems(e,s){return t.$$(this.selNavItem,s)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((e,s)=>"<li "+this.attrItem+'="'+s+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const n=t.data(s,this.attrItem);t.toggleClass(s,this.clsActive,t.toNumber(n)===e),t.toggleClass(s,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},he={mixins:[ne,re,ie,se],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},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(){t.removeClass(this.slides,this.clsActive)},computed:{duration(e,s){let{velocity:n}=e;return ce(s.offsetWidth/n)},list(e,s){let{selList:n}=e;return t.$(n,s)},maxIndex(){return this.length-1},selSlides(e){let{selList:s,selSlides:n}=e;return s+" "+(n||"> *")},slides:{get(){return t.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,s){if(s===void 0&&(s=!1),this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,a=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),i=t.hasClass(this.slides,this.clsActive)&&this.slides[r],h=this.getIndex(e,this.index),d=this.slides[h];if(i===d){a();return}if(this.dir=de(e,r),this.prevIndex=r,this.index=h,i&&!t.trigger(i,"beforeitemhide",[this])||!t.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,s).then(()=>(i&&t.trigger(i,"itemhidden",[this]),t.trigger(d,"itemshown",[this]),new Promise(g=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,g()})})));return i&&t.trigger(i,"itemhide",[this]),t.trigger(d,"itemshow",[this]),c},getIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.index),t.clamp(t.getIndex(e,this.slides,s,this.finite),0,this.maxIndex)},getValidIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.prevIndex),this.getIndex(e,s)},_show(e,s,n){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:n?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}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()},_translate(e,s,n){s===void 0&&(s=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(s!==n?s:!1,n);return o.translate(e),o},_getTransitioner(e,s,n,o){return e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,n*(t.isRtl?-1:1),o)}}};function de(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function ce(e){return .5*e+300}var le={mixins:[he],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:te},computed:{animation(e){let{animation:s,Animations:n}=e;return{...n[s]||n.slide,name:s}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:s}=e;t.addClass(s,this.clsActive)},itemshown(e){let{target:s}=e;t.addClass(s,this.clsActivated)},itemhidden(e){let{target:s}=e;t.removeClass(s,this.clsActive,this.clsActivated)}}},R={mixins:[z,K,O,le],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:B,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=t.$(this.template),s=t.$(this.selList,e);this.items.forEach(()=>t.append(s,"<li>")),this.$mount(t.append(this.container,e))},computed:{caption(e,s){let{selCaption:n}=e;return t.$(n,s)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){t.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:n,type:o,alt:a="",poster:r,attrs:i={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!n)return;let h;const d={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:c,height:g}=await t.getImage(n,i.srcset,i.size);this.setItem(s,w("img",{src:n,width:c,height:g,alt:a,...i}))}catch{this.setError(s)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=w("video",{src:n,poster:r,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});t.on(c,"loadedmetadata",()=>{t.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(s,c)}),t.on(c,"error",()=>this.setError(s))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(s,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,w("iframe",{src:"https://www.youtube"+(h[1]||"")+".com/embed/"+h[2]+(h[3]?"?"+h[3]:""),width:1920,height:1080,...d,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:g}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(s,w("iframe",{src:"https://player.vimeo.com/video/"+h[1]+(h[2]?"?"+h[2]:""),width:g,height:c,...d,...i}))}catch{this.setError(s)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e){return e===void 0&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function w(e,s){const n=t.fragment("<"+e+">");return t.attr(n,s),n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",R),R});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],u):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox_panel=u(t.UIkit.util))})(this,function(t){"use strict";var u={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return q(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function q(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e,s){return e===void 0&&(e=0),s===void 0&&(s="%"),e+=e?s:"","translate3d("+e+", 0, 0)"}function $(e){return"scale3d("+e+", "+e+", 1)"}var B={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:$(1-.2)},{opacity:1,transform:$(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:$(1-.2*e)},{opacity:e,transform:$(1-.2+.2*e)}]}}},z={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:s}=e;return s===!0&&this.$container||s&&t.$(s)}}},V={connected(){t.addClass(this.$el,this.$options.id)}},O={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(e){let{animation:s}=e;return!!s[0]},hasTransition(e){let{animation:s}=e;return["slide","reveal"].some(n=>t.startsWith(s[0],n))}},methods:{toggleElement(e,s,n){return new Promise(o=>Promise.all(t.toNodes(e).map(a=>{const r=t.isBoolean(s)?s:!this.isToggled(a);if(!t.trigger(a,"before"+(r?"show":"hide"),[this]))return Promise.reject();const i=(t.isFunction(n)?n:n===!1||!this.hasAnimation?X:this.hasTransition?G:J)(a,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(a,h),t.trigger(a,r?"show":"hide",[this]);const d=()=>{t.removeClass(a,h),t.trigger(a,r?"shown":"hidden",[this])};return i?i.then(d,()=>(t.removeClass(a,h),Promise.reject())):d()})).then(o,t.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=t.toNodes(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=Boolean(s);let n;this.cls?(n=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),n&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(n=s===e.hidden,n&&(e.hidden=!s)),t.$$("[autofocus]",e).some(o=>t.isVisible(o)?o.focus()||!0:o.blur()),n&&t.trigger(e,"toggled",[s,this])}}};function X(e,s,n){let{_toggle:o}=n;return t.Animation.cancel(e),t.Transition.cancel(e),o(e,s)}async function G(e,s,n){var o;let{animation:a,duration:r,velocity:i,transition:h,_toggle:d}=n;const[c="reveal",g="top"]=((o=a[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],m=l[t.includes(l[0],g)?0:1],T=m[1]===g,A=["width","height"][l.indexOf(m)],v="margin-"+m[0],_="margin-"+g;let x=t.dimensions(e)[A];const me=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&d(e,!0);const ge=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",v,_].map(Y=>[Y,e.style[Y]])),I=t.dimensions(e),N=t.toFloat(t.css(e,v)),F=t.toFloat(t.css(e,_)),p=I[A]+F;!me&&!s&&(x+=F);const[P]=t.wrapInner(e,"<div>");t.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",_])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[_]:0,width:I.width,height:I.height,overflow:"hidden",[A]:x});const H=x/p;r=(i*p+r)*(s?1-H:H);const L={[A]:s?p:0};T&&(t.css(e,v,p-x+N),L[v]=s?N:p+N),!T^c==="reveal"&&(t.css(P,v,-p+x),t.Transition.start(P,{[v]:s?0:-p},r,h));try{await t.Transition.start(e,L,r,h)}finally{t.css(e,ge),t.unwrap(P.firstChild),s||d(e,!1)}}function J(e,s,n){t.Animation.cancel(e);const{animation:o,duration:a,_toggle:r}=n;return s?(r(e,!0),t.Animation.in(e,o[0],a,n.origin)):t.Animation.out(e,o[1]||o[0],a,n.origin).then(()=>r(e,!1))}const f=[];var K={mixins:[V,z,O],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,s){let{selPanel:n}=e;return t.$(n,s)},transitionElement(){return this.panel},bgClose(e){let{bgClose:s}=e;return s&&this.panel}},beforeDisconnect(){t.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"click",delegate(){return'a[href*="#"]'},handler(e){let{current:s,defaultPrevented:n}=e;const{hash:o}=s;!n&&o&&ee(s)&&!t.within(o,this.$el)&&t.$(o,document.body)&&this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(s=>s.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){t.once(this.$el,"hide",t.on(document,"focusin",e=>{t.last(f)===this&&!t.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(t.once(this.$el,"hidden",Z(this.$el),{self:!0}),t.once(this.$el,"hidden",k(),{self:!0})),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+f.length),t.addClass(document.documentElement,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,e=>{let{target:s}=e;t.last(f)!==this||this.overlay&&!t.within(s,this.$el)||t.within(s,this.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",n=>{let{defaultPrevented:o,type:a,target:r}=n;!o&&a===t.pointerUp&&s===r&&this.hide()},!0)}),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",e=>{e.keyCode===27&&t.last(f)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(f,this)&&f.splice(f.indexOf(this),1),t.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,j)},hide(){return this.toggleElement(this.$el,!1,j)}}};function j(e,s,n){let{transitionElement:o,_toggle:a}=n;return new Promise((r,i)=>t.once(e,"show hide",()=>{e._reject==null||e._reject(),e._reject=i,a(e,s);const h=t.once(o,"transitionstart",()=>{t.once(o,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{h(),r()},Q(t.css(o,"transitionDuration")))})).then(()=>delete e._reject)}function Q(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function Z(e){if(CSS.supports("overscroll-behavior","contain")){const o=U(e,a=>/auto|scroll/.test(t.css(a,"overflow")));return t.css(o,"overscrollBehavior","contain"),()=>t.css(o,"overscrollBehavior","")}let s;const n=[t.on(e,"touchstart",o=>{let{targetTouches:a}=o;a.length===1&&(s=a[0].clientY)},{passive:!0}),t.on(e,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[a]=t.scrollParents(o.target,/auto|scroll/);t.within(a,e)||(a=e);const r=o.targetTouches[0].clientY-s,{scrollTop:i,scrollHeight:h,clientHeight:d}=a;(d>=h||i===0&&r>0||h-i<=d&&r<0)&&o.cancelable&&o.preventDefault()},{passive:!1})];return()=>n.forEach(o=>o())}let S;function k(){if(S)return t.noop;S=!0;const{scrollingElement:e}=document;return t.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:t.width(window)-e.clientWidth}),()=>{S=!1,t.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function U(e,s){const n=[];return t.apply(e,o=>{s(o)&&n.push(o)}),n}function ee(e){return["origin","pathname","search"].every(s=>e[s]===location[s])}function te(e,s,n,o){let{animation:a,easing:r}=o;const{percent:i,translate:h,show:d=t.noop}=a,c=d(n),g=new t.Deferred;return{dir:n,show(l,m,T){m===void 0&&(m=0);const b=T?"linear":r;return l-=Math.round(l*t.clamp(m,-1,1)),this.translate(m),C(s,"itemin",{percent:m,duration:l,timing:b,dir:n}),C(e,"itemout",{percent:1-m,duration:l,timing:b,dir:n}),Promise.all([t.Transition.start(s,c[1],l,b),t.Transition.start(e,c[0],l,b)]).then(()=>{this.reset(),g.resolve()},t.noop),g.promise},cancel(){t.Transition.cancel([s,e])},reset(){for(const l in c[0])t.css([s,e],l,"")},forward(l,m){return m===void 0&&(m=this.percent()),t.Transition.cancel([s,e]),this.show(l,m,!0)},translate(l){this.reset();const m=h(l,n);t.css(s,m[1]),t.css(e,m[0]),C(s,"itemtranslatein",{percent:l,dir:n}),C(e,"itemtranslateout",{percent:1-l,dir:n})},percent(){return i(e||s,s,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function C(e,s,n){t.trigger(e,t.createEvent(s,!1,!1,n))}var se={connected(){var e;this.registerObserver(t.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},ne={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.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.draggable||!t.$(":focus",this.$el))&&(!this.pauseOnHover||!t.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const E={passive:!1,capture:!0},M={passive:!0,capture:!0},oe="touchstart mousedown",D="touchmove mousemove",W="touchend touchcancel mouseup click input scroll";var re={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=n=>{const o=t.getEventPos(n).x*(t.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,s(n)}}},events:[{name:oe,passive:!0,delegate(){return this.selSlides},handler(e){!this.draggable||!t.isTouch(e)&&ae(e.target)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:D,el(){return this.list},handler:t.noop,...E}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,D,this.move,E),t.on(document,W,this.end,M),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,a=Math.abs(s),r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;for(;r!==o&&a>i;)this.drag-=i*this.dir,o=r,a-=i,r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;this.percent=a/i;const h=n[o],d=n[r],c=this.index!==r,g=o===r;let l;[this.index,this.prevIndex].filter(m=>!t.includes([r,o],m)).forEach(m=>{t.trigger(n[m],"itemhidden",[this]),g&&(l=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=o,this.index=r,!g&&t.trigger(h,"beforeitemhide",[this]),t.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!g&&d),c&&(!g&&t.trigger(h,"itemhide",[this]),t.trigger(d,"itemshow",[this]))},end(){if(t.off(document,D,this.move,E),t.off(document,W,this.end,M),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ae(e){return t.css(e,"userSelect")!=="none"&&t.toNodes(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var ie={data:{selNav:!1},computed:{nav(e,s){let{selNav:n}=e;return t.$(n,s)},selNavItem(e){let{attrItem:s}=e;return"["+s+"],[data-"+s+"]"},navItems(e,s){return t.$$(this.selNavItem,s)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((e,s)=>"<li "+this.attrItem+'="'+s+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const n=t.data(s,this.attrItem);t.toggleClass(s,this.clsActive,t.toNumber(n)===e),t.toggleClass(s,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},he={mixins:[ne,re,ie,se],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},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(){t.removeClass(this.slides,this.clsActive)},computed:{duration(e,s){let{velocity:n}=e;return ce(s.offsetWidth/n)},list(e,s){let{selList:n}=e;return t.$(n,s)},maxIndex(){return this.length-1},selSlides(e){let{selList:s,selSlides:n}=e;return s+" "+(n||"> *")},slides:{get(){return t.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,s){if(s===void 0&&(s=!1),this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,a=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),i=t.hasClass(this.slides,this.clsActive)&&this.slides[r],h=this.getIndex(e,this.index),d=this.slides[h];if(i===d){a();return}if(this.dir=de(e,r),this.prevIndex=r,this.index=h,i&&!t.trigger(i,"beforeitemhide",[this])||!t.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,s).then(()=>(i&&t.trigger(i,"itemhidden",[this]),t.trigger(d,"itemshown",[this]),new Promise(g=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,g()})})));return i&&t.trigger(i,"itemhide",[this]),t.trigger(d,"itemshow",[this]),c},getIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.index),t.clamp(t.getIndex(e,this.slides,s,this.finite),0,this.maxIndex)},getValidIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.prevIndex),this.getIndex(e,s)},_show(e,s,n){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:n?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}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()},_translate(e,s,n){s===void 0&&(s=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(s!==n?s:!1,n);return o.translate(e),o},_getTransitioner(e,s,n,o){return e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,n*(t.isRtl?-1:1),o)}}};function de(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function ce(e){return .5*e+300}var le={mixins:[he],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:te},computed:{animation(e){let{animation:s,Animations:n}=e;return{...n[s]||n.slide,name:s}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:s}=e;t.addClass(s,this.clsActive)},itemshown(e){let{target:s}=e;t.addClass(s,this.clsActivated)},itemhidden(e){let{target:s}=e;t.removeClass(s,this.clsActive,this.clsActivated)}}},R={mixins:[z,K,O,le],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:B,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=t.$(this.template),s=t.$(this.selList,e);this.items.forEach(()=>t.append(s,"<li>")),this.$mount(t.append(this.container,e))},computed:{caption(e,s){let{selCaption:n}=e;return t.$(n,s)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){t.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:n,type:o,alt:a="",poster:r,attrs:i={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!n)return;let h;const d={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:c,height:g}=await t.getImage(n,i.srcset,i.size);this.setItem(s,w("img",{src:n,width:c,height:g,alt:a,...i}))}catch{this.setError(s)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=w("video",{src:n,poster:r,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});t.on(c,"loadedmetadata",()=>{t.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(s,c)}),t.on(c,"error",()=>this.setError(s))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(s,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,w("iframe",{src:"https://www.youtube"+(h[1]||"")+".com/embed/"+h[2]+(h[3]?"?"+h[3]:""),width:1920,height:1080,...d,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:g}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(s,w("iframe",{src:"https://player.vimeo.com/video/"+h[1]+(h[2]?"?"+h[2]:""),width:g,height:c,...d,...i}))}catch{this.setError(s)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e){return e===void 0&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function w(e,s){const n=t.fragment("<"+e+">");return t.attr(n,s),n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",R),R});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],u):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=u(t.UIkit.util))})(this,function(t){"use strict";var u={slide:{show(e){return[{transform:I(e*-100)},{transform:I()}]},percent(e){return V(e)},translate(e,s){return[{transform:I(s*-100*e)},{transform:I(s*100*(1-e))}]}}};function V(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function I(e,s){return e===void 0&&(e=0),s===void 0&&(s="%"),e+=e?s:"","translate3d("+e+", 0, 0)"}function $(e){return"scale3d("+e+", "+e+", 1)"}var B={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:$(1-.2)},{opacity:1,transform:$(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:$(1-.2*e)},{opacity:e,transform:$(1-.2+.2*e)}]}}},O={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:s}=e;return s===!0&&this.$container||s&&t.$(s)}}},X={connected(){t.addClass(this.$el,this.$options.id)}},z={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(e){let{animation:s}=e;return!!s[0]},hasTransition(e){let{animation:s}=e;return["slide","reveal"].some(n=>t.startsWith(s[0],n))}},methods:{toggleElement(e,s,n){return new Promise(o=>Promise.all(t.toNodes(e).map(a=>{const r=t.isBoolean(s)?s:!this.isToggled(a);if(!t.trigger(a,"before"+(r?"show":"hide"),[this]))return Promise.reject();const i=(t.isFunction(n)?n:n===!1||!this.hasAnimation?G:this.hasTransition?J:K)(a,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(a,h),t.trigger(a,r?"show":"hide",[this]);const d=()=>{t.removeClass(a,h),t.trigger(a,r?"shown":"hidden",[this])};return i?i.then(d,()=>(t.removeClass(a,h),Promise.reject())):d()})).then(o,t.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=t.toNodes(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=Boolean(s);let n;this.cls?(n=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),n&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(n=s===e.hidden,n&&(e.hidden=!s)),t.$$("[autofocus]",e).some(o=>t.isVisible(o)?o.focus()||!0:o.blur()),n&&t.trigger(e,"toggled",[s,this])}}};function G(e,s,n){let{_toggle:o}=n;return t.Animation.cancel(e),t.Transition.cancel(e),o(e,s)}async function J(e,s,n){var o;let{animation:a,duration:r,velocity:i,transition:h,_toggle:d}=n;const[c="reveal",m="top"]=((o=a[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],g=l[t.includes(l[0],m)?0:1],T=g[1]===m,A=["width","height"][l.indexOf(g)],v="margin-"+g[0],P="margin-"+m;let x=t.dimensions(e)[A];const fe=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&d(e,!0);const ue=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",v,P].map(Y=>[Y,e.style[Y]])),y=t.dimensions(e),N=t.toFloat(t.css(e,v)),F=t.toFloat(t.css(e,P)),f=y[A]+F;!fe&&!s&&(x+=F);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:y.height,width:y.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:y.width,height:y.height,overflow:"hidden",[A]:x});const H=x/f;r=(i*f+r)*(s?1-H:H);const q={[A]:s?f:0};T&&(t.css(e,v,f-x+N),q[v]=s?N:f+N),!T^c==="reveal"&&(t.css(_,v,-f+x),t.Transition.start(_,{[v]:s?0:-f},r,h));try{await t.Transition.start(e,q,r,h)}finally{t.css(e,ue),t.unwrap(_.firstChild),s||d(e,!1)}}function K(e,s,n){t.Animation.cancel(e);const{animation:o,duration:a,_toggle:r}=n;return s?(r(e,!0),t.Animation.in(e,o[0],a,n.origin)):t.Animation.out(e,o[1]||o[0],a,n.origin).then(()=>r(e,!1))}const p=[];var Q={mixins:[X,O,z],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,s){let{selPanel:n}=e;return t.$(n,s)},transitionElement(){return this.panel},bgClose(e){let{bgClose:s}=e;return s&&this.panel}},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"click",delegate(){return'a[href*="#"]'},handler(e){let{current:s,defaultPrevented:n}=e;const{hash:o}=s;!n&&o&&te(s)&&!t.within(o,this.$el)&&t.$(o,document.body)&&this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(s=>s.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){t.once(this.$el,"hide",t.on(document,"focusin",e=>{t.last(p)===this&&!t.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(t.once(this.$el,"hidden",k(this.$el),{self:!0}),t.once(this.$el,"hidden",U(),{self:!0})),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length),t.addClass(document.documentElement,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,e=>{let{target:s}=e;t.last(p)!==this||this.overlay&&!t.within(s,this.$el)||t.within(s,this.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",n=>{let{defaultPrevented:o,type:a,target:r}=n;!o&&a===t.pointerUp&&s===r&&this.hide()},!0)}),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",e=>{e.keyCode===27&&t.last(p)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(p,this)&&p.splice(p.indexOf(this),1),t.css(this.$el,"zIndex",""),p.some(e=>e.clsPage===this.clsPage)||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,j)},hide(){return this.toggleElement(this.$el,!1,j)}}};function j(e,s,n){let{transitionElement:o,_toggle:a}=n;return new Promise((r,i)=>t.once(e,"show hide",()=>{e._reject==null||e._reject(),e._reject=i,a(e,s);const h=t.once(o,"transitionstart",()=>{t.once(o,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{h(),r()},Z(t.css(o,"transitionDuration")))})).then(()=>delete e._reject)}function Z(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function k(e){if(CSS.supports("overscroll-behavior","contain")){const o=ee(e,a=>/auto|scroll/.test(t.css(a,"overflow")));return t.css(o,"overscrollBehavior","contain"),()=>t.css(o,"overscrollBehavior","")}let s;const n=[t.on(e,"touchstart",o=>{let{targetTouches:a}=o;a.length===1&&(s=a[0].clientY)},{passive:!0}),t.on(e,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[a]=t.scrollParents(o.target,/auto|scroll/);t.within(a,e)||(a=e);const r=o.targetTouches[0].clientY-s,{scrollTop:i,scrollHeight:h,clientHeight:d}=a;(d>=h||i===0&&r>0||h-i<=d&&r<0)&&o.cancelable&&o.preventDefault()},{passive:!1})];return()=>n.forEach(o=>o())}let S;function U(){if(S)return t.noop;S=!0;const{scrollingElement:e}=document;return t.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:t.width(window)-e.clientWidth}),()=>{S=!1,t.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function ee(e,s){const n=[];return t.apply(e,o=>{s(o)&&n.push(o)}),n}function te(e){return["origin","pathname","search"].every(s=>e[s]===location[s])}function se(e,s,n,o){let{animation:a,easing:r}=o;const{percent:i,translate:h,show:d=t.noop}=a,c=d(n),m=new t.Deferred;return{dir:n,show(l,g,T){g===void 0&&(g=0);const w=T?"linear":r;return l-=Math.round(l*t.clamp(g,-1,1)),this.translate(g),C(s,"itemin",{percent:g,duration:l,timing:w,dir:n}),C(e,"itemout",{percent:1-g,duration:l,timing:w,dir:n}),Promise.all([t.Transition.start(s,c[1],l,w),t.Transition.start(e,c[0],l,w)]).then(()=>{this.reset(),m.resolve()},t.noop),m.promise},cancel(){t.Transition.cancel([s,e])},reset(){for(const l in c[0])t.css([s,e],l,"")},forward(l,g){return g===void 0&&(g=this.percent()),t.Transition.cancel([s,e]),this.show(l,g,!0)},translate(l){this.reset();const g=h(l,n);t.css(s,g[1]),t.css(e,g[0]),C(s,"itemtranslatein",{percent:l,dir:n}),C(e,"itemtranslateout",{percent:1-l,dir:n})},percent(){return i(e||s,s,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function C(e,s,n){t.trigger(e,t.createEvent(s,!1,!1,n))}var ne={connected(){var e;this.registerObserver(t.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},oe={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.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.draggable||!t.$(":focus",this.$el))&&(!this.pauseOnHover||!t.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const E={passive:!1,capture:!0},M={passive:!0,capture:!0},re="touchstart mousedown",D="touchmove mousemove",W="touchend touchcancel mouseup click input scroll";var ae={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=n=>{const o=t.getEventPos(n).x*(t.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,s(n)}}},events:[{name:re,passive:!0,delegate(){return this.selSlides},handler(e){!this.draggable||!t.isTouch(e)&&ie(e.target)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:D,el(){return this.list},handler:t.noop,...E}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,D,this.move,E),t.on(document,W,this.end,M),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,a=Math.abs(s),r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;for(;r!==o&&a>i;)this.drag-=i*this.dir,o=r,a-=i,r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;this.percent=a/i;const h=n[o],d=n[r],c=this.index!==r,m=o===r;let l;[this.index,this.prevIndex].filter(g=>!t.includes([r,o],g)).forEach(g=>{t.trigger(n[g],"itemhidden",[this]),m&&(l=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=o,this.index=r,!m&&t.trigger(h,"beforeitemhide",[this]),t.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!m&&d),c&&(!m&&t.trigger(h,"itemhide",[this]),t.trigger(d,"itemshow",[this]))},end(){if(t.off(document,D,this.move,E),t.off(document,W,this.end,M),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ie(e){return t.css(e,"userSelect")!=="none"&&t.toNodes(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var he={data:{selNav:!1},computed:{nav(e,s){let{selNav:n}=e;return t.$(n,s)},selNavItem(e){let{attrItem:s}=e;return"["+s+"],[data-"+s+"]"},navItems(e,s){return t.$$(this.selNavItem,s)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((e,s)=>"<li "+this.attrItem+'="'+s+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const n=t.data(s,this.attrItem);t.toggleClass(s,this.clsActive,t.toNumber(n)===e),t.toggleClass(s,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},de={mixins:[oe,ae,he,ne],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},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(){t.removeClass(this.slides,this.clsActive)},computed:{duration(e,s){let{velocity:n}=e;return le(s.offsetWidth/n)},list(e,s){let{selList:n}=e;return t.$(n,s)},maxIndex(){return this.length-1},selSlides(e){let{selList:s,selSlides:n}=e;return s+" "+(n||"> *")},slides:{get(){return t.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,s){if(s===void 0&&(s=!1),this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,a=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),i=t.hasClass(this.slides,this.clsActive)&&this.slides[r],h=this.getIndex(e,this.index),d=this.slides[h];if(i===d){a();return}if(this.dir=ce(e,r),this.prevIndex=r,this.index=h,i&&!t.trigger(i,"beforeitemhide",[this])||!t.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,s).then(()=>(i&&t.trigger(i,"itemhidden",[this]),t.trigger(d,"itemshown",[this]),new Promise(m=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&t.trigger(i,"itemhide",[this]),t.trigger(d,"itemshow",[this]),c},getIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.index),t.clamp(t.getIndex(e,this.slides,s,this.finite),0,this.maxIndex)},getValidIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.prevIndex),this.getIndex(e,s)},_show(e,s,n){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:n?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}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()},_translate(e,s,n){s===void 0&&(s=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(s!==n?s:!1,n);return o.translate(e),o},_getTransitioner(e,s,n,o){return e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,n*(t.isRtl?-1:1),o)}}};function ce(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function le(e){return .5*e+300}var ge={mixins:[de],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:se},computed:{animation(e){let{animation:s,Animations:n}=e;return{...n[s]||n.slide,name:s}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:s}=e;t.addClass(s,this.clsActive)},itemshown(e){let{target:s}=e;t.addClass(s,this.clsActivated)},itemhidden(e){let{target:s}=e;t.removeClass(s,this.clsActive,this.clsActivated)}}},me={mixins:[O,Q,z,ge],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:B,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=t.$(this.template),s=t.$(this.selList,e);this.items.forEach(()=>t.append(s,"<li>")),this.$mount(t.append(this.container,e))},computed:{caption(e,s){let{selCaption:n}=e;return t.$(n,s)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){t.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:n,type:o,alt:a="",poster:r,attrs:i={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!n)return;let h;const d={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:c,height:m}=await t.getImage(n,i.srcset,i.size);this.setItem(s,b("img",{src:n,width:c,height:m,alt:a,...i}))}catch{this.setError(s)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=b("video",{src:n,poster:r,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});t.on(c,"loadedmetadata",()=>{t.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(s,c)}),t.on(c,"error",()=>this.setError(s))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(s,b("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,b("iframe",{src:"https://www.youtube"+(h[1]||"")+".com/embed/"+h[2]+(h[3]?"?"+h[3]:""),width:1920,height:1080,...d,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(s,b("iframe",{src:"https://player.vimeo.com/video/"+h[1]+(h[2]?"?"+h[2]:""),width:m,height:c,...d,...i}))}catch{this.setError(s)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e){return e===void 0&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function b(e,s){const n=t.fragment("<"+e+">");return t.attr(n,s),n}var L={install:pe,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get(e,s){let{toggle:n}=e;return t.$$(n,s)},watch(){this.hide()}}},disconnected(){this.hide()},events:[{name:"click",delegate(){return this.toggle+":not(.uk-disabled)"},handler(e){e.preventDefault(),this.show(e.current)}}],methods:{show(e){const s=t.uniqueBy(this.toggles.map(R),"source");if(t.isElement(e)){const{source:n}=R(e);e=t.findIndex(s,o=>{let{source:a}=o;return n===a})}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.on(this.panel.$el,"hidden",()=>this.panel=!1),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function pe(e,s){e.lightboxPanel||e.component("lightboxPanel",me),t.assign(s.props,e.component("lightboxPanel").options.props)}function R(e){const s={};for(const n of["href","caption","type","poster","alt","attrs"])s[n==="href"?"source":n]=t.data(e,n);return s.attrs=t.parseOptions(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",L),L});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],u):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=u(t.UIkit.util))})(this,function(t){"use strict";var u={slide:{show(e){return[{transform:I(e*-100)},{transform:I()}]},percent(e){return V(e)},translate(e,s){return[{transform:I(s*-100*e)},{transform:I(s*100*(1-e))}]}}};function V(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function I(e,s){return e===void 0&&(e=0),s===void 0&&(s="%"),e+=e?s:"","translate3d("+e+", 0, 0)"}function $(e){return"scale3d("+e+", "+e+", 1)"}var B={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:$(1-.2)},{opacity:1,transform:$(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:$(1-.2*e)},{opacity:e,transform:$(1-.2+.2*e)}]}}},O={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:s}=e;return s===!0&&this.$container||s&&t.$(s)}}},X={connected(){t.addClass(this.$el,this.$options.id)}},z={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(e){let{animation:s}=e;return!!s[0]},hasTransition(e){let{animation:s}=e;return["slide","reveal"].some(n=>t.startsWith(s[0],n))}},methods:{toggleElement(e,s,n){return new Promise(o=>Promise.all(t.toNodes(e).map(a=>{const r=t.isBoolean(s)?s:!this.isToggled(a);if(!t.trigger(a,"before"+(r?"show":"hide"),[this]))return Promise.reject();const i=(t.isFunction(n)?n:n===!1||!this.hasAnimation?G:this.hasTransition?J:K)(a,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(a,h),t.trigger(a,r?"show":"hide",[this]);const d=()=>{t.removeClass(a,h),t.trigger(a,r?"shown":"hidden",[this])};return i?i.then(d,()=>(t.removeClass(a,h),Promise.reject())):d()})).then(o,t.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=t.toNodes(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=Boolean(s);let n;this.cls?(n=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),n&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(n=s===e.hidden,n&&(e.hidden=!s)),t.$$("[autofocus]",e).some(o=>t.isVisible(o)?o.focus()||!0:o.blur()),n&&t.trigger(e,"toggled",[s,this])}}};function G(e,s,n){let{_toggle:o}=n;return t.Animation.cancel(e),t.Transition.cancel(e),o(e,s)}async function J(e,s,n){var o;let{animation:a,duration:r,velocity:i,transition:h,_toggle:d}=n;const[c="reveal",m="top"]=((o=a[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],g=l[t.includes(l[0],m)?0:1],T=g[1]===m,A=["width","height"][l.indexOf(g)],v="margin-"+g[0],P="margin-"+m;let x=t.dimensions(e)[A];const fe=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&d(e,!0);const ue=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",v,P].map(Y=>[Y,e.style[Y]])),y=t.dimensions(e),N=t.toFloat(t.css(e,v)),F=t.toFloat(t.css(e,P)),f=y[A]+F;!fe&&!s&&(x+=F);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:y.height,width:y.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:y.width,height:y.height,overflow:"hidden",[A]:x});const H=x/f;r=(i*f+r)*(s?1-H:H);const q={[A]:s?f:0};T&&(t.css(e,v,f-x+N),q[v]=s?N:f+N),!T^c==="reveal"&&(t.css(_,v,-f+x),t.Transition.start(_,{[v]:s?0:-f},r,h));try{await t.Transition.start(e,q,r,h)}finally{t.css(e,ue),t.unwrap(_.firstChild),s||d(e,!1)}}function K(e,s,n){t.Animation.cancel(e);const{animation:o,duration:a,_toggle:r}=n;return s?(r(e,!0),t.Animation.in(e,o[0],a,n.origin)):t.Animation.out(e,o[1]||o[0],a,n.origin).then(()=>r(e,!1))}const p=[];var Q={mixins:[X,O,z],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,s){let{selPanel:n}=e;return t.$(n,s)},transitionElement(){return this.panel},bgClose(e){let{bgClose:s}=e;return s&&this.panel}},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"click",delegate(){return'a[href*="#"]'},handler(e){let{current:s,defaultPrevented:n}=e;const{hash:o}=s;!n&&o&&te(s)&&!t.within(o,this.$el)&&t.$(o,document.body)&&this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(s=>s.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){t.once(this.$el,"hide",t.on(document,"focusin",e=>{t.last(p)===this&&!t.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(t.once(this.$el,"hidden",k(this.$el),{self:!0}),t.once(this.$el,"hidden",U(),{self:!0})),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length),t.addClass(document.documentElement,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,e=>{let{target:s}=e;t.last(p)!==this||this.overlay&&!t.within(s,this.$el)||t.within(s,this.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",n=>{let{defaultPrevented:o,type:a,target:r}=n;!o&&a===t.pointerUp&&s===r&&this.hide()},!0)}),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",e=>{e.keyCode===27&&t.last(p)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(p,this)&&p.splice(p.indexOf(this),1),t.css(this.$el,"zIndex",""),p.some(e=>e.clsPage===this.clsPage)||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,j)},hide(){return this.toggleElement(this.$el,!1,j)}}};function j(e,s,n){let{transitionElement:o,_toggle:a}=n;return new Promise((r,i)=>t.once(e,"show hide",()=>{e._reject==null||e._reject(),e._reject=i,a(e,s);const h=t.once(o,"transitionstart",()=>{t.once(o,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{h(),r()},Z(t.css(o,"transitionDuration")))})).then(()=>delete e._reject)}function Z(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function k(e){if(CSS.supports("overscroll-behavior","contain")){const o=ee(e,a=>/auto|scroll/.test(t.css(a,"overflow")));return t.css(o,"overscrollBehavior","contain"),()=>t.css(o,"overscrollBehavior","")}let s;const n=[t.on(e,"touchstart",o=>{let{targetTouches:a}=o;a.length===1&&(s=a[0].clientY)},{passive:!0}),t.on(e,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[a]=t.scrollParents(o.target,/auto|scroll/);t.within(a,e)||(a=e);const r=o.targetTouches[0].clientY-s,{scrollTop:i,scrollHeight:h,clientHeight:d}=a;(d>=h||i===0&&r>0||h-i<=d&&r<0)&&o.cancelable&&o.preventDefault()},{passive:!1})];return()=>n.forEach(o=>o())}let S;function U(){if(S)return t.noop;S=!0;const{scrollingElement:e}=document;return t.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:t.width(window)-e.clientWidth}),()=>{S=!1,t.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function ee(e,s){const n=[];return t.apply(e,o=>{s(o)&&n.push(o)}),n}function te(e){return["origin","pathname","search"].every(s=>e[s]===location[s])}function se(e,s,n,o){let{animation:a,easing:r}=o;const{percent:i,translate:h,show:d=t.noop}=a,c=d(n),m=new t.Deferred;return{dir:n,show(l,g,T){g===void 0&&(g=0);const w=T?"linear":r;return l-=Math.round(l*t.clamp(g,-1,1)),this.translate(g),C(s,"itemin",{percent:g,duration:l,timing:w,dir:n}),C(e,"itemout",{percent:1-g,duration:l,timing:w,dir:n}),Promise.all([t.Transition.start(s,c[1],l,w),t.Transition.start(e,c[0],l,w)]).then(()=>{this.reset(),m.resolve()},t.noop),m.promise},cancel(){t.Transition.cancel([s,e])},reset(){for(const l in c[0])t.css([s,e],l,"")},forward(l,g){return g===void 0&&(g=this.percent()),t.Transition.cancel([s,e]),this.show(l,g,!0)},translate(l){this.reset();const g=h(l,n);t.css(s,g[1]),t.css(e,g[0]),C(s,"itemtranslatein",{percent:l,dir:n}),C(e,"itemtranslateout",{percent:1-l,dir:n})},percent(){return i(e||s,s,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function C(e,s,n){t.trigger(e,t.createEvent(s,!1,!1,n))}var ne={connected(){var e;this.registerObserver(t.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},oe={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.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.draggable||!t.$(":focus",this.$el))&&(!this.pauseOnHover||!t.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const E={passive:!1,capture:!0},M={passive:!0,capture:!0},re="touchstart mousedown",D="touchmove mousemove",W="touchend touchcancel mouseup click input scroll";var ae={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=n=>{const o=t.getEventPos(n).x*(t.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,s(n)}}},events:[{name:re,passive:!0,delegate(){return this.selSlides},handler(e){!this.draggable||!t.isTouch(e)&&ie(e.target)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:D,el(){return this.list},handler:t.noop,...E}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,D,this.move,E),t.on(document,W,this.end,M),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,a=Math.abs(s),r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;for(;r!==o&&a>i;)this.drag-=i*this.dir,o=r,a-=i,r=this.getIndex(o+this.dir,o),i=this._getDistance(o,r)||n[o].offsetWidth;this.percent=a/i;const h=n[o],d=n[r],c=this.index!==r,m=o===r;let l;[this.index,this.prevIndex].filter(g=>!t.includes([r,o],g)).forEach(g=>{t.trigger(n[g],"itemhidden",[this]),m&&(l=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=o,this.index=r,!m&&t.trigger(h,"beforeitemhide",[this]),t.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!m&&d),c&&(!m&&t.trigger(h,"itemhide",[this]),t.trigger(d,"itemshow",[this]))},end(){if(t.off(document,D,this.move,E),t.off(document,W,this.end,M),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ie(e){return t.css(e,"userSelect")!=="none"&&t.toNodes(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var he={data:{selNav:!1},computed:{nav(e,s){let{selNav:n}=e;return t.$(n,s)},selNavItem(e){let{attrItem:s}=e;return"["+s+"],[data-"+s+"]"},navItems(e,s){return t.$$(this.selNavItem,s)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((e,s)=>"<li "+this.attrItem+'="'+s+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const n=t.data(s,this.attrItem);t.toggleClass(s,this.clsActive,t.toNumber(n)===e),t.toggleClass(s,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},de={mixins:[oe,ae,he,ne],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},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(){t.removeClass(this.slides,this.clsActive)},computed:{duration(e,s){let{velocity:n}=e;return le(s.offsetWidth/n)},list(e,s){let{selList:n}=e;return t.$(n,s)},maxIndex(){return this.length-1},selSlides(e){let{selList:s,selSlides:n}=e;return s+" "+(n||"> *")},slides:{get(){return t.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,s){if(s===void 0&&(s=!1),this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,a=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),i=t.hasClass(this.slides,this.clsActive)&&this.slides[r],h=this.getIndex(e,this.index),d=this.slides[h];if(i===d){a();return}if(this.dir=ce(e,r),this.prevIndex=r,this.index=h,i&&!t.trigger(i,"beforeitemhide",[this])||!t.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,s).then(()=>(i&&t.trigger(i,"itemhidden",[this]),t.trigger(d,"itemshown",[this]),new Promise(m=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&t.trigger(i,"itemhide",[this]),t.trigger(d,"itemshow",[this]),c},getIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.index),t.clamp(t.getIndex(e,this.slides,s,this.finite),0,this.maxIndex)},getValidIndex(e,s){return e===void 0&&(e=this.index),s===void 0&&(s=this.prevIndex),this.getIndex(e,s)},_show(e,s,n){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:n?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}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()},_translate(e,s,n){s===void 0&&(s=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(s!==n?s:!1,n);return o.translate(e),o},_getTransitioner(e,s,n,o){return e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,n*(t.isRtl?-1:1),o)}}};function ce(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function le(e){return .5*e+300}var ge={mixins:[de],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:se},computed:{animation(e){let{animation:s,Animations:n}=e;return{...n[s]||n.slide,name:s}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:s}=e;t.addClass(s,this.clsActive)},itemshown(e){let{target:s}=e;t.addClass(s,this.clsActivated)},itemhidden(e){let{target:s}=e;t.removeClass(s,this.clsActive,this.clsActivated)}}},me={mixins:[O,Q,z,ge],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:B,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=t.$(this.template),s=t.$(this.selList,e);this.items.forEach(()=>t.append(s,"<li>")),this.$mount(t.append(this.container,e))},computed:{caption(e,s){let{selCaption:n}=e;return t.$(n,s)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){t.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:n,type:o,alt:a="",poster:r,attrs:i={}}=s;if(this.setItem(s,"<span uk-spinner></span>"),!n)return;let h;const d={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:c,height:m}=await t.getImage(n,i.srcset,i.size);this.setItem(s,b("img",{src:n,width:c,height:m,alt:a,...i}))}catch{this.setError(s)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=b("video",{src:n,poster:r,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});t.on(c,"loadedmetadata",()=>{t.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(s,c)}),t.on(c,"error",()=>this.setError(s))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(s,b("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,b("iframe",{src:"https://www.youtube"+(h[1]||"")+".com/embed/"+h[2]+(h[3]?"?"+h[3]:""),width:1920,height:1080,...d,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(s,b("iframe",{src:"https://player.vimeo.com/video/"+h[1]+(h[2]?"?"+h[2]:""),width:m,height:c,...d,...i}))}catch{this.setError(s)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e){return e===void 0&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function b(e,s){const n=t.fragment("<"+e+">");return t.attr(n,s),n}var L={install:pe,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get(e,s){let{toggle:n}=e;return t.$$(n,s)},watch(){this.hide()}}},disconnected(){this.hide()},events:[{name:"click",delegate(){return this.toggle+":not(.uk-disabled)"},handler(e){e.preventDefault(),this.show(e.current)}}],methods:{show(e){const s=t.uniqueBy(this.toggles.map(R),"source");if(t.isElement(e)){const{source:n}=R(e);e=t.findIndex(s,o=>{let{source:a}=o;return n===a})}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.on(this.panel.$el,"hidden",()=>this.panel=!1),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function pe(e,s){e.lightboxPanel||e.component("lightboxPanel",me),t.assign(s.props,e.component("lightboxPanel").options.props)}function R(e){const s={};for(const n of["href","caption","type","poster","alt","attrs"])s[n==="href"?"source":n]=t.data(e,n);return s.attrs=t.parseOptions(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",L),L});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 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(e){let{container:s}=e;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(e){let{pos:s}=e;return"margin"+(t.startsWith(s,"top")?"Top":"Bottom")},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const e=t.$("."+this.clsContainer+"-"+this.pos,this.container)||t.append(this.container,'<div class="'+this.clsContainer+" "+this.clsContainer+"-"+this.pos+'" style="display: block"></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 e=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:e}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(e){t.closest(e.target,'a[href="#"],a[href=""]')&&e.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(e){const s=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),e||await t.Transition.start(this.$el,this.startProps),s(this.$el)}}};function c(e){e.notification.closeAll=function(s,i){t.apply(document.body,n=>{const a=e.getComponent(n,"notification");a&&(!s||s===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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(e){let{container:s}=e;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(e){let{pos:s}=e;return"margin"+(t.startsWith(s,"top")?"Top":"Bottom")},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const e=t.$("."+this.clsContainer+"-"+this.pos,this.container)||t.append(this.container,'<div class="'+this.clsContainer+" "+this.clsContainer+"-"+this.pos+'" style="display: block"></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 e=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:e}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(e){t.closest(e.target,'a[href="#"],a[href=""]')&&e.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(e){const s=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),e||await t.Transition.start(this.$el,this.startProps),s(this.$el)}}};function c(e){e.notification.closeAll=function(s,i){t.apply(document.body,n=>{const a=e.getComponent(n,"notification");a&&(!s||s===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 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.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(r,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],m):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitParallax=m(r.UIkit.util))})(this,function(r){"use strict";var m={connected(){var e;this.registerObserver(r.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},T={connected(){B(this._uid,()=>this.$emit("scroll"))},disconnected(){_(this._uid)}};const y=new Map;let b;function B(e,n){b=b||r.on(window,"scroll",()=>y.forEach(t=>t()),{passive:!0,capture:!0}),y.set(e,n)}function _(e){y.delete(e),b&&!y.size&&(b(),b=null)}var q={props:{media:Boolean},data:{media:!1},connected(){const e=H(this.media,this.$el);if(this.matchMedia=!0,e){this.mediaObj=window.matchMedia(e);const n=()=>{this.matchMedia=this.mediaObj.matches,r.trigger(this.$el,r.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=r.on(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var e;(e=this.offMediaObj)==null||e.call(this)}};function H(e,n){if(r.isString(e)){if(r.startsWith(e,"@"))e=r.toFloat(r.css(n,"--uk-breakpoint-"+e.substr(1)));else if(isNaN(e))return e}return e&&r.isNumeric(e)?"(min-width: "+e+"px)":""}r.memoize(async e=>e?r.startsWith(e,"data:")?decodeURIComponent(e.split(",")[1]):(await fetch(e)).text():Promise.reject());function V(e){return Math.ceil(Math.max(0,...r.$$("[stroke]",e).map(n=>{try{return n.getTotalLength()}catch{return 0}})))}const p={x:M,y:M,rotate:M,scale:M,color:P,backgroundColor:P,borderColor:P,blur:l,hue:l,fopacity:l,grayscale:l,invert:l,saturate:l,sepia:l,opacity:J,stroke:K,bgx:I,bgy:I},{keys:j}=Object;var A={mixins:[q],props:L(j(p),"list"),data:L(j(p),void 0),computed:{props(e,n){const t={};for(const s in e)s in p&&!r.isUndefined(e[s])&&(t[s]=e[s].slice());const o={};for(const s in t)o[s]=p[s](s,n,t[s],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const e in this.getCss(0))r.css(this.$el,e,"")},getCss(e){const n={transform:"",filter:""};for(const t in this.props)this.props[t](n,e);return n}}};function M(e,n,t){let o=$(t)||{x:"px",y:"px",rotate:"deg"}[e]||"",s;return e==="x"||e==="y"?(e="translate"+r.ucfirst(e),s=a=>r.toFloat(r.toFloat(a).toFixed(o==="px"?0:6))):e==="scale"&&(o="",s=a=>$([a])?r.toPx(a,"width",n,!0)/n.offsetWidth:a),t.length===1&&t.unshift(e==="scale"?1:0),t=g(t,s),(a,c)=>{a.transform+=" "+e+"("+x(t,c)+o+")"}}function P(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t,o=>G(n,o)),(o,s)=>{const[a,c,i]=E(t,s),d=a.map((u,f)=>(u+=i*(c[f]-u),f===3?r.toFloat(u):parseInt(u,10))).join(",");o[e]="rgba("+d+")"}}function G(e,n){return w(e,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(r.toFloat)}function l(e,n,t){t.length===1&&t.unshift(0);const o=$(t)||{blur:"px",hue:"deg"}[e]||"%";return e={fopacity:"opacity",hue:"hue-rotate"}[e]||e,t=g(t),(s,a)=>{const c=x(t,a);s.filter+=" "+e+"("+(c+o)+")"}}function J(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t),(o,s)=>{o[e]=x(t,s)}}function K(e,n,t){t.length===1&&t.unshift(0);const o=$(t),s=V(n);return t=g(t.reverse(),a=>(a=r.toFloat(a),o==="%"?a*s/100:a)),t.some(a=>{let[c]=a;return c})?(r.css(n,"strokeDasharray",s),(a,c)=>{a.strokeDashoffset=x(t,c)}):r.noop}function I(e,n,t,o){t.length===1&&t.unshift(0);const s=e==="bgy"?"height":"width";o[e]=g(t,i=>r.toPx(i,s,n));const a=["bgx","bgy"].filter(i=>i in o);if(a.length===2&&e==="bgx")return r.noop;if(w(n,"backgroundSize","")==="cover")return Q(e,n,t,o);const c={};for(const i of a)c[i]=z(n,i);return C(a,c,o)}function Q(e,n,t,o){const s=X(n);if(!s.width)return r.noop;const a={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),i={};for(const f of c){const h=o[f].map(k=>{let[U]=k;return U}),v=Math.min(...h),S=Math.max(...h),D=h.indexOf(v)<h.indexOf(S),R=S-v;i[f]=(D?-R:0)-(D?v:S)+"px",a[f==="bgy"?"height":"width"]+=R}const d=r.Dimensions.cover(s,a);for(const f of c){const h=f==="bgy"?"height":"width",v=d[h]-a[h];i[f]="max("+z(n,f)+",-"+v+"px) + "+i[f]}const u=C(c,i,o);return(f,h)=>{u(f,h),f.backgroundSize=d.width+"px "+d.height+"px",f.backgroundRepeat="no-repeat"}}function z(e,n){return w(e,"background-position-"+n.substr(-1),"")}function C(e,n,t){return function(o,s){for(const a of e){const c=x(t[a],s);o["background-position-"+a.substr(-1)]="calc("+n[a]+" + "+c+"px)"}}}const F={};function X(e){const n=r.css(e,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[n])return F[n];const t=new Image;return n&&(t.src=n,!t.naturalWidth)?(t.onload=()=>{F[n]=O(t),r.trigger(e,r.createEvent("load",!1))},O(t)):F[n]=O(t)}function O(e){return{width:e.naturalWidth,height:e.naturalHeight}}function g(e,n){n===void 0&&(n=r.toFloat);const t=[],{length:o}=e;let s=0;for(let a=0;a<o;a++){let[c,i]=r.isString(e[a])?e[a].trim().split(" "):[e[a]];if(c=n(c),i=i?r.toFloat(i)/100:null,a===0?i===null?i=0:i&&t.push([c,0]):a===o-1&&(i===null?i=1:i!==1&&(t.push([c,i]),i=1)),t.push([c,i]),i===null)s++;else if(s){const d=t[a-s-1][1],u=(i-d)/(s+1);for(let f=s;f>0;f--)t[a-f][1]=d+u*(s-f+1);s=0}}return t}function E(e,n){const t=r.findIndex(e.slice(1),o=>{let[,s]=o;return n<=s})+1;return[e[t-1][0],e[t][0],(n-e[t-1][1])/(e[t][1]-e[t-1][1])]}function x(e,n){const[t,o,s]=E(e,n);return r.isNumber(t)?t+Math.abs(t-o)*s*(t<o?1:-1):+o}const Y=/^-?\d+(\S+)/;function $(e,n){for(const t of e){const o=t.match==null?void 0:t.match(Y);if(o)return o[1]}return n}function w(e,n,t){const o=e.style[n],s=r.css(r.css(e,n,t),n);return e.style[n]=o,s}function L(e,n){return e.reduce((t,o)=>(t[o]=n,t),{})}var N={mixins:[A,m,T],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target(e,n){let{target:t}=e;return W(t&&r.query(t,n)||n)},start(e){let{start:n}=e;return r.toPx(n,"height",this.target,!0)},end(e){let{end:n,viewport:t}=e;return r.toPx(n||(t=(1-t)*100)&&t+"vh+"+t+"%","height",this.target,!0)}},update:{read(e,n){let{percent:t}=e;if(n.has("scroll")||(t=!1),!this.matchMedia)return;const o=t;return t=Z(r.scrolledOver(this.target,this.start,this.end),this.easing),{percent:t,style:o===t?!1:this.getCss(t)}},write(e){let{style:n}=e;if(!this.matchMedia){this.reset();return}n&&r.css(this.$el,n)},events:["scroll","resize"]}};function Z(e,n){return n>=0?Math.pow(e,n+1):1-Math.pow(1-e,1-n)}function W(e){return e?"offsetTop"in e?e:W(r.parent(e)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",N),N});
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(r,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],m):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitParallax=m(r.UIkit.util))})(this,function(r){"use strict";var m={connected(){var e;this.registerObserver(r.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},T={connected(){B(this._uid,()=>this.$emit("scroll"))},disconnected(){_(this._uid)}};const y=new Map;let b;function B(e,n){b=b||r.on(window,"scroll",()=>y.forEach(t=>t()),{passive:!0,capture:!0}),y.set(e,n)}function _(e){y.delete(e),b&&!y.size&&(b(),b=null)}var q={props:{media:Boolean},data:{media:!1},connected(){const e=H(this.media,this.$el);if(this.matchMedia=!0,e){this.mediaObj=window.matchMedia(e);const n=()=>{this.matchMedia=this.mediaObj.matches,r.trigger(this.$el,r.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=r.on(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var e;(e=this.offMediaObj)==null||e.call(this)}};function H(e,n){if(r.isString(e)){if(r.startsWith(e,"@"))e=r.toFloat(r.css(n,"--uk-breakpoint-"+e.substr(1)));else if(isNaN(e))return e}return e&&r.isNumeric(e)?"(min-width: "+e+"px)":""}r.memoize(async e=>e?r.startsWith(e,"data:")?decodeURIComponent(e.split(",")[1]):(await fetch(e)).text():Promise.reject());function V(e){return Math.ceil(Math.max(0,...r.$$("[stroke]",e).map(n=>{try{return n.getTotalLength()}catch{return 0}})))}const p={x:M,y:M,rotate:M,scale:M,color:P,backgroundColor:P,borderColor:P,blur:l,hue:l,fopacity:l,grayscale:l,invert:l,saturate:l,sepia:l,opacity:J,stroke:K,bgx:I,bgy:I},{keys:j}=Object;var A={mixins:[q],props:L(j(p),"list"),data:L(j(p),void 0),computed:{props(e,n){const t={};for(const s in e)s in p&&!r.isUndefined(e[s])&&(t[s]=e[s].slice());const o={};for(const s in t)o[s]=p[s](s,n,t[s],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const e in this.getCss(0))r.css(this.$el,e,"")},getCss(e){const n={transform:"",filter:""};for(const t in this.props)this.props[t](n,e);return n}}};function M(e,n,t){let o=$(t)||{x:"px",y:"px",rotate:"deg"}[e]||"",s;return e==="x"||e==="y"?(e="translate"+r.ucfirst(e),s=a=>r.toFloat(r.toFloat(a).toFixed(o==="px"?0:6))):e==="scale"&&(o="",s=a=>$([a])?r.toPx(a,"width",n,!0)/n.offsetWidth:a),t.length===1&&t.unshift(e==="scale"?1:0),t=g(t,s),(a,c)=>{a.transform+=" "+e+"("+x(t,c)+o+")"}}function P(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t,o=>G(n,o)),(o,s)=>{const[a,c,i]=E(t,s),d=a.map((u,f)=>(u+=i*(c[f]-u),f===3?r.toFloat(u):parseInt(u,10))).join(",");o[e]="rgba("+d+")"}}function G(e,n){return w(e,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(r.toFloat)}function l(e,n,t){t.length===1&&t.unshift(0);const o=$(t)||{blur:"px",hue:"deg"}[e]||"%";return e={fopacity:"opacity",hue:"hue-rotate"}[e]||e,t=g(t),(s,a)=>{const c=x(t,a);s.filter+=" "+e+"("+(c+o)+")"}}function J(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t),(o,s)=>{o[e]=x(t,s)}}function K(e,n,t){t.length===1&&t.unshift(0);const o=$(t),s=V(n);return t=g(t.reverse(),a=>(a=r.toFloat(a),o==="%"?a*s/100:a)),t.some(a=>{let[c]=a;return c})?(r.css(n,"strokeDasharray",s),(a,c)=>{a.strokeDashoffset=x(t,c)}):r.noop}function I(e,n,t,o){t.length===1&&t.unshift(0);const s=e==="bgy"?"height":"width";o[e]=g(t,i=>r.toPx(i,s,n));const a=["bgx","bgy"].filter(i=>i in o);if(a.length===2&&e==="bgx")return r.noop;if(w(n,"backgroundSize","")==="cover")return Q(e,n,t,o);const c={};for(const i of a)c[i]=z(n,i);return C(a,c,o)}function Q(e,n,t,o){const s=X(n);if(!s.width)return r.noop;const a={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),i={};for(const f of c){const h=o[f].map(k=>{let[U]=k;return U}),v=Math.min(...h),S=Math.max(...h),D=h.indexOf(v)<h.indexOf(S),R=S-v;i[f]=(D?-R:0)-(D?v:S)+"px",a[f==="bgy"?"height":"width"]+=R}const d=r.Dimensions.cover(s,a);for(const f of c){const h=f==="bgy"?"height":"width",v=d[h]-a[h];i[f]="max("+z(n,f)+",-"+v+"px) + "+i[f]}const u=C(c,i,o);return(f,h)=>{u(f,h),f.backgroundSize=d.width+"px "+d.height+"px",f.backgroundRepeat="no-repeat"}}function z(e,n){return w(e,"background-position-"+n.substr(-1),"")}function C(e,n,t){return function(o,s){for(const a of e){const c=x(t[a],s);o["background-position-"+a.substr(-1)]="calc("+n[a]+" + "+c+"px)"}}}const F={};function X(e){const n=r.css(e,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[n])return F[n];const t=new Image;return n&&(t.src=n,!t.naturalWidth)?(t.onload=()=>{F[n]=O(t),r.trigger(e,r.createEvent("load",!1))},O(t)):F[n]=O(t)}function O(e){return{width:e.naturalWidth,height:e.naturalHeight}}function g(e,n){n===void 0&&(n=r.toFloat);const t=[],{length:o}=e;let s=0;for(let a=0;a<o;a++){let[c,i]=r.isString(e[a])?e[a].trim().split(" "):[e[a]];if(c=n(c),i=i?r.toFloat(i)/100:null,a===0?i===null?i=0:i&&t.push([c,0]):a===o-1&&(i===null?i=1:i!==1&&(t.push([c,i]),i=1)),t.push([c,i]),i===null)s++;else if(s){const d=t[a-s-1][1],u=(i-d)/(s+1);for(let f=s;f>0;f--)t[a-f][1]=d+u*(s-f+1);s=0}}return t}function E(e,n){const t=r.findIndex(e.slice(1),o=>{let[,s]=o;return n<=s})+1;return[e[t-1][0],e[t][0],(n-e[t-1][1])/(e[t][1]-e[t-1][1])]}function x(e,n){const[t,o,s]=E(e,n);return r.isNumber(t)?t+Math.abs(t-o)*s*(t<o?1:-1):+o}const Y=/^-?\d+(\S+)/;function $(e,n){for(const t of e){const o=t.match==null?void 0:t.match(Y);if(o)return o[1]}return n}function w(e,n,t){const o=e.style[n],s=r.css(r.css(e,n,t),n);return e.style[n]=o,s}function L(e,n){return e.reduce((t,o)=>(t[o]=n,t),{})}var N={mixins:[A,m,T],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target(e,n){let{target:t}=e;return W(t&&r.query(t,n)||n)},start(e){let{start:n}=e;return r.toPx(n,"height",this.target,!0)},end(e){let{end:n,viewport:t}=e;return r.toPx(n||(t=(1-t)*100)&&t+"vh+"+t+"%","height",this.target,!0)}},update:{read(e,n){let{percent:t}=e;if(n.has("scroll")||(t=!1),!this.matchMedia)return;const o=t;return t=Z(r.scrolledOver(this.target,this.start,this.end),this.easing),{percent:t,style:o===t?!1:this.getCss(t)}},write(e){let{style:n}=e;if(!this.matchMedia){this.reset();return}n&&r.css(this.$el,n)},events:["scroll","resize"]}};function Z(e,n){return n>=0?Math.pow(e,n+1):1-Math.pow(1-e,1-n)}function W(e){return e?"offsetTop"in e?e:W(r.parent(e)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",N),N});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.9-dev.ffad54c1a | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.10-dev.6ba1ea187 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :