@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitCountdown=s(t.UIkit.util))})(this,function(t){"use strict";var s={connected(){t.addClass(this.$el,this.$options.id)}};const d=["days","hours","minutes","seconds"];var r={mixins:[s],props:{date:String,clsWrapper:String,role:String,reload:Boolean},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer",reload:!1},connected(){t.attr(this.$el,"role",this.role),this.date=t.toFloat(Date.parse(this.$props.date)),this.started=this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update()},stop(){this.timer&&(clearInterval(this.timer),t.trigger(this.$el,"countdownstop"),this.timer=null)},update(){const o=a(this.date);o.total?this.timer||(this.started=!0,this.timer=setInterval(this.update,1e3),t.trigger(this.$el,"countdownstart")):(this.stop(),this.end||(t.trigger(this.$el,"countdownend"),this.end=!0,this.reload&&this.started&&window.location.reload()));for(const e of d){const i=t.$(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let n=Math.trunc(o[e]).toString().padStart(2,"0");i.textContent!==n&&(n=n.split(""),n.length!==i.children.length&&t.html(i,n.map(()=>"<span></span>").join("")),n.forEach((h,l)=>i.children[l].textContent=h))}}}};function a(o){const e=Math.max(0,o-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",r),r}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitCountdown=s(t.UIkit.util))})(this,function(t){"use strict";var s={connected(){t.addClass(this.$el,this.$options.id)}};const d=["days","hours","minutes","seconds"];var r={mixins:[s],props:{date:String,clsWrapper:String,role:String,reload:Boolean},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer",reload:!1},connected(){t.attr(this.$el,"role",this.role),this.date=t.toFloat(Date.parse(this.$props.date)),this.started=this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update()},stop(){this.timer&&(clearInterval(this.timer),t.trigger(this.$el,"countdownstop"),this.timer=null)},update(){const o=a(this.date);o.total?this.timer||(this.started=!0,this.timer=setInterval(this.update,1e3),t.trigger(this.$el,"countdownstart")):(this.stop(),this.end||(t.trigger(this.$el,"countdownend"),this.end=!0,this.reload&&this.started&&window.location.reload()));for(const e of d){const i=t.$(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let n=Math.trunc(o[e]).toString().padStart(2,"0");i.textContent!==n&&(n=n.split(""),n.length!==i.children.length&&t.html(i,n.map(()=>"<span></span>").join("")),n.forEach((h,l)=>i.children[l].textContent=h))}}}};function a(o){const e=Math.max(0,o-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",r),r}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -93,2 +93,12 @@ (function (global, factory) { | ||
resize({ | ||
handler(mutations) { | ||
for (const { | ||
borderBoxSize: [{ inlineSize, blockSize }] | ||
} of mutations) { | ||
if (inlineSize || blockSize) { | ||
this.$emit("resize"); | ||
return; | ||
} | ||
} | ||
}, | ||
target: ({ $el }) => [$el, ...uikitUtil.children($el)] | ||
@@ -95,0 +105,0 @@ }) |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(n,y){typeof exports=="object"&&typeof module<"u"?module.exports=y(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],y):(n=typeof globalThis<"u"?globalThis:n||self,n.UIkitFilter=y(n.UIkit.util))})(this,function(n){"use strict";function y(e,s=[]){try{return e?n.startsWith(e,"{")?JSON.parse(e):s.length&&!n.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((o,t)=>{const[a,r]=t.split(/:(.*)/);return a&&!n.isUndefined(r)&&(o[a.trim()]=r.trim()),o},{}):{}}catch{return{}}}function O(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,n.fastdom.read(()=>{e._connected&&z(e,e._queued),e._queued=null})),e._queued.add(s.type||s))}function z(e,s){for(const{read:o,write:t,events:a=[]}of e._updates){if(!s.has("update")&&!a.some(c=>s.has(c)))continue;let r;o&&(r=o.call(e,e._data,s),r&&n.isPlainObject(r)&&n.assign(e._data,r)),t&&r!==!1&&n.fastdom.write(()=>{e._connected&&t.call(e,e._data,s)})}}function j(e){return T(n.observeResize,e,"resize")}function P(e){return T(n.observeMutation,e)}function T(e,s,o){return{observe:e,handler(){O(this,o)},...s}}P({options:{childList:!0}}),P({options:{attributes:!0,attributeFilter:["style"]}}),j({target:({$el:e})=>[e,...n.children(e)]});function N(e){const s=[[]],o=e.some((t,a)=>a&&e[a-1].offsetParent!==t.offsetParent);for(const t of e){if(!n.isVisible(t))continue;const a=g(t,o);for(let r=s.length-1;r>=0;r--){const c=s[r];if(!c[0]){c.push(t);break}const f=g(c[0],o);if(a.top>=f.bottom-1&&a.top!==f.top){s.push([t]);break}if(a.bottom-1>f.top||a.top===f.top){let p=c.length-1;for(;p>=0;p--){const i=g(c[p],o);if(a.left>=i.left)break}c.splice(p+1,0,t);break}if(r===0){s.unshift([t]);break}}}return s}function g(e,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:r}=e;return s&&([o,t]=n.offsetPosition(e)),{top:o,left:t,bottom:o+a,right:t+r}}const b="uk-transition-leave",v="uk-transition-enter";function S(e,s,o,t=0){const a=w(s,!0),r={opacity:1},c={opacity:0},f=h=>()=>a===w(s)?h():Promise.reject(),p=f(async()=>{n.addClass(s,b),await Promise.all($(s).map((h,l)=>new Promise(u=>setTimeout(()=>n.Transition.start(h,c,o/2,"ease").then(u),l*t)))),n.removeClass(s,b)}),i=f(async()=>{const h=n.height(s);n.addClass(s,v),e(),n.css(n.children(s),{opacity:0}),n.height(s,h),await F(),n.height(s,"");const l=n.children(s),u=n.height(s);n.css(s,"alignContent","flex-start"),n.height(s,h);const d=$(s);n.css(l,c);const m=d.map(async(K,Q)=>{await F(Q*t),await n.Transition.start(K,r,o/2,"ease")});h!==u&&m.push(n.Transition.start(s,{height:u},o/2+d.length*t,"ease")),await Promise.all(m).then(()=>{n.removeClass(s,v),a===w(s)&&(n.css(s,{height:"",alignContent:""}),n.css(l,{opacity:""}),delete s.dataset.transition)})});return n.hasClass(s,b)?C(s).then(i):n.hasClass(s,v)?C(s).then(p).then(i):p().then(i)}function w(e,s){return s&&(e.dataset.transition=1+w(e)),n.toNumber(e.dataset.transition)||0}function C(e){return Promise.all(n.children(e).filter(n.Transition.inProgress).map(s=>new Promise(o=>n.once(s,"transitionend transitioncanceled",o))))}function $(e){return N(n.children(e)).flat().filter(n.isVisible)}function F(e){return new Promise(s=>setTimeout(s,e))}async function V(e,s,o){await x();let t=n.children(s);const a=t.map(d=>I(d,!0)),r={...n.css(s,["height","padding"]),display:"block"},c=t.concat(s);await Promise.all(c.map(n.Transition.cancel)),n.css(c,"transitionProperty","none"),await e(),t=t.concat(n.children(s).filter(d=>!n.includes(t,d))),await Promise.resolve(),n.css(c,"transitionProperty","");const f=n.attr(s,"style"),p=n.css(s,["height","padding"]),[i,h]=L(s,t,a),l=t.map(d=>({style:n.attr(d,"style")}));t.forEach((d,m)=>h[m]&&n.css(d,h[m])),n.css(s,r),n.trigger(s,"scroll"),await x();const u=t.map((d,m)=>n.parent(d)===s&&n.Transition.start(d,i[m],o,"ease")).concat(n.Transition.start(s,p,o,"ease"));try{await Promise.all(u),t.forEach((d,m)=>{n.attr(d,l[m]),n.parent(d)===s&&n.css(d,"display",i[m].opacity===0?"none":"")}),n.attr(s,"style",f)}catch{n.attr(t,"style",""),B(s,r)}}function I(e,s){const o=n.css(e,"zIndex");return n.isVisible(e)?{display:"",opacity:s?n.css(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?n.index(e):o,..._(e)}:!1}function L(e,s,o){const t=s.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(s[c])===e&&(o[c]||I(s[c]));if(!f)return!1;if(!r)delete f.opacity;else if(!("opacity"in r)){const{opacity:p}=f;p%1?r.opacity=1:delete f.opacity}return f});return[t,a]}function B(e,s){for(const o in s)n.css(e,o,"")}function _(e){const{height:s,width:o}=n.dimensions(e);return{height:s,width:o,transform:"",...n.position(e),...n.css(e,["marginTop","marginLeft"])}}function x(){return new Promise(e=>requestAnimationFrame(e))}var H={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(e,s=this.$el){const o=this.animation;return(o==="fade"?S:o==="delayed-fade"?(...a)=>S(...a,40):o?V:()=>(e(),Promise.resolve()))(e,s,this.duration).catch(n.noop)}}};const M={SPACE:32};var q={mixins:[H],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{children:({target:e},s)=>n.$$(`${e} > *`,s),toggles:({attrItem:e},s)=>n.$$(`[${e}],[data-${e}]`,s)},watch:{toggles(e){this.updateState();const s=n.$$(this.selActive,this.$el);for(const o of e){this.selActive!==!1&&n.toggleClass(o,this.cls,n.includes(s,o));const t=G(o);n.isTag(t,"a")&&n.attr(t,"role","button")}},children(e,s){s&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:e})=>`[${e}],[data-${e}]`,handler(e){e.type==="keydown"&&e.keyCode!==M.SPACE||e.target.closest("a,button")&&(e.preventDefault(),this.apply(e.current))}},methods:{apply(e){const s=this.getState(),o=A(e,this.attrItem,this.getState());W(s,o)||this.setState(o)},getState(){return this.toggles.filter(e=>n.hasClass(e,this.cls)).reduce((e,s)=>A(s,this.attrItem,e),{filter:{"":""},sort:[]})},async setState(e,s=!0){e={filter:{"":""},sort:[],...e},n.trigger(this.$el,"beforeFilter",[this,e]);for(const o of this.toggles)n.toggleClass(o,this.cls,D(o,this.attrItem,e));await Promise.all(n.$$(this.target,this.$el).map(o=>{const t=()=>R(e,o,n.children(o));return s?this.animate(t,o):t()})),n.trigger(this.$el,"afterFilter",[this])},updateState(){n.fastdom.write(()=>this.setState(this.getState(),!1))}}};function E(e,s){return y(n.data(e,s),["filter"])}function W(e,s){return["filter","sort"].every(o=>n.isEqual(e[o],s[o]))}function R(e,s,o){for(const r of o)n.css(r,"display",Object.values(e.filter).every(c=>!c||n.matches(r,c))?"":"none");const[t,a]=e.sort;if(t){const r=J(o,t,a);n.isEqual(r,o)||n.append(s,r)}}function A(e,s,o){const{filter:t,group:a,sort:r,order:c="asc"}=E(e,s);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 D(e,s,{filter:o={"":""},sort:[t,a]}){const{filter:r="",group:c="",sort:f,order:p="asc"}=E(e,s);return n.isUndefined(f)?c in o&&r===o[c]||!r&&c&&!(c in o)&&!o[""]:t===f&&a===p}function J(e,s,o){return[...e].sort((t,a)=>n.data(t,s).localeCompare(n.data(a,s),void 0,{numeric:!0})*(o==="asc"||-1))}function G(e){return n.$("a,button",e)||e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",q),q}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(s,y){typeof exports=="object"&&typeof module<"u"?module.exports=y(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],y):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitFilter=y(s.UIkit.util))})(this,function(s){"use strict";function y(e,n=[]){try{return e?s.startsWith(e,"{")?JSON.parse(e):n.length&&!s.includes(e,":")?{[n[0]]:e}:e.split(";").reduce((o,t)=>{const[a,r]=t.split(/:(.*)/);return a&&!s.isUndefined(r)&&(o[a.trim()]=r.trim()),o},{}):{}}catch{return{}}}function A(e,n="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,s.fastdom.read(()=>{e._connected&&O(e,e._queued),e._queued=null})),e._queued.add(n.type||n))}function O(e,n){for(const{read:o,write:t,events:a=[]}of e._updates){if(!n.has("update")&&!a.some(c=>n.has(c)))continue;let r;o&&(r=o.call(e,e._data,n),r&&s.isPlainObject(r)&&s.assign(e._data,r)),t&&r!==!1&&s.fastdom.write(()=>{e._connected&&t.call(e,e._data,n)})}}function j(e){return S(s.observeResize,e,"resize")}function P(e){return S(s.observeMutation,e)}function S(e,n,o){return{observe:e,handler(){A(this,o)},...n}}P({options:{childList:!0}}),P({options:{attributes:!0,attributeFilter:["style"]}}),j({handler(e){for(const{borderBoxSize:[{inlineSize:n,blockSize:o}]}of e)if(n||o){this.$emit("resize");return}},target:({$el:e})=>[e,...s.children(e)]});function N(e){const n=[[]],o=e.some((t,a)=>a&&e[a-1].offsetParent!==t.offsetParent);for(const t of e){if(!s.isVisible(t))continue;const a=b(t,o);for(let r=n.length-1;r>=0;r--){const c=n[r];if(!c[0]){c.push(t);break}const f=b(c[0],o);if(a.top>=f.bottom-1&&a.top!==f.top){n.push([t]);break}if(a.bottom-1>f.top||a.top===f.top){let h=c.length-1;for(;h>=0;h--){const m=b(c[h],o);if(a.left>=m.left)break}c.splice(h+1,0,t);break}if(r===0){n.unshift([t]);break}}}return n}function b(e,n=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:r}=e;return n&&([o,t]=s.offsetPosition(e)),{top:o,left:t,bottom:o+a,right:t+r}}const g="uk-transition-leave",v="uk-transition-enter";function T(e,n,o,t=0){const a=w(n,!0),r={opacity:1},c={opacity:0},f=p=>()=>a===w(n)?p():Promise.reject(),h=f(async()=>{s.addClass(n,g),await Promise.all(C(n).map((p,l)=>new Promise(u=>setTimeout(()=>s.Transition.start(p,c,o/2,"ease").then(u),l*t)))),s.removeClass(n,g)}),m=f(async()=>{const p=s.height(n);s.addClass(n,v),e(),s.css(s.children(n),{opacity:0}),s.height(n,p),await F(),s.height(n,"");const l=s.children(n),u=s.height(n);s.css(n,"alignContent","flex-start"),s.height(n,p);const d=C(n);s.css(l,c);const i=d.map(async(K,Q)=>{await F(Q*t),await s.Transition.start(K,r,o/2,"ease")});p!==u&&i.push(s.Transition.start(n,{height:u},o/2+d.length*t,"ease")),await Promise.all(i).then(()=>{s.removeClass(n,v),a===w(n)&&(s.css(n,{height:"",alignContent:""}),s.css(l,{opacity:""}),delete n.dataset.transition)})});return s.hasClass(n,g)?$(n).then(m):s.hasClass(n,v)?$(n).then(h).then(m):h().then(m)}function w(e,n){return n&&(e.dataset.transition=1+w(e)),s.toNumber(e.dataset.transition)||0}function $(e){return Promise.all(s.children(e).filter(s.Transition.inProgress).map(n=>new Promise(o=>s.once(n,"transitionend transitioncanceled",o))))}function C(e){return N(s.children(e)).flat().filter(s.isVisible)}function F(e){return new Promise(n=>setTimeout(n,e))}async function V(e,n,o){await x();let t=s.children(n);const a=t.map(d=>I(d,!0)),r={...s.css(n,["height","padding"]),display:"block"},c=t.concat(n);await Promise.all(c.map(s.Transition.cancel)),s.css(c,"transitionProperty","none"),await e(),t=t.concat(s.children(n).filter(d=>!s.includes(t,d))),await Promise.resolve(),s.css(c,"transitionProperty","");const f=s.attr(n,"style"),h=s.css(n,["height","padding"]),[m,p]=B(n,t,a),l=t.map(d=>({style:s.attr(d,"style")}));t.forEach((d,i)=>p[i]&&s.css(d,p[i])),s.css(n,r),s.trigger(n,"scroll"),await x();const u=t.map((d,i)=>s.parent(d)===n&&s.Transition.start(d,m[i],o,"ease")).concat(s.Transition.start(n,h,o,"ease"));try{await Promise.all(u),t.forEach((d,i)=>{s.attr(d,l[i]),s.parent(d)===n&&s.css(d,"display",m[i].opacity===0?"none":"")}),s.attr(n,"style",f)}catch{s.attr(t,"style",""),L(n,r)}}function I(e,n){const o=s.css(e,"zIndex");return s.isVisible(e)?{display:"",opacity:n?s.css(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?s.index(e):o,..._(e)}:!1}function B(e,n,o){const t=n.map((r,c)=>s.parent(r)&&c in o?o[c]?s.isVisible(r)?_(r):{opacity:0}:{opacity:s.isVisible(r)?1:0}:!1),a=t.map((r,c)=>{const f=s.parent(n[c])===e&&(o[c]||I(n[c]));if(!f)return!1;if(!r)delete f.opacity;else if(!("opacity"in r)){const{opacity:h}=f;h%1?r.opacity=1:delete f.opacity}return f});return[t,a]}function L(e,n){for(const o in n)s.css(e,o,"")}function _(e){const{height:n,width:o}=s.dimensions(e);return{height:n,width:o,transform:"",...s.position(e),...s.css(e,["marginTop","marginLeft"])}}function x(){return new Promise(e=>requestAnimationFrame(e))}var H={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(e,n=this.$el){const o=this.animation;return(o==="fade"?T:o==="delayed-fade"?(...a)=>T(...a,40):o?V:()=>(e(),Promise.resolve()))(e,n,this.duration).catch(s.noop)}}};const M={SPACE:32};var q={mixins:[H],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{children:({target:e},n)=>s.$$(`${e} > *`,n),toggles:({attrItem:e},n)=>s.$$(`[${e}],[data-${e}]`,n)},watch:{toggles(e){this.updateState();const n=s.$$(this.selActive,this.$el);for(const o of e){this.selActive!==!1&&s.toggleClass(o,this.cls,s.includes(n,o));const t=G(o);s.isTag(t,"a")&&s.attr(t,"role","button")}},children(e,n){n&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:e})=>`[${e}],[data-${e}]`,handler(e){e.type==="keydown"&&e.keyCode!==M.SPACE||e.target.closest("a,button")&&(e.preventDefault(),this.apply(e.current))}},methods:{apply(e){const n=this.getState(),o=E(e,this.attrItem,this.getState());W(n,o)||this.setState(o)},getState(){return this.toggles.filter(e=>s.hasClass(e,this.cls)).reduce((e,n)=>E(n,this.attrItem,e),{filter:{"":""},sort:[]})},async setState(e,n=!0){e={filter:{"":""},sort:[],...e},s.trigger(this.$el,"beforeFilter",[this,e]);for(const o of this.toggles)s.toggleClass(o,this.cls,D(o,this.attrItem,e));await Promise.all(s.$$(this.target,this.$el).map(o=>{const t=()=>R(e,o,s.children(o));return n?this.animate(t,o):t()})),s.trigger(this.$el,"afterFilter",[this])},updateState(){s.fastdom.write(()=>this.setState(this.getState(),!1))}}};function z(e,n){return y(s.data(e,n),["filter"])}function W(e,n){return["filter","sort"].every(o=>s.isEqual(e[o],n[o]))}function R(e,n,o){for(const r of o)s.css(r,"display",Object.values(e.filter).every(c=>!c||s.matches(r,c))?"":"none");const[t,a]=e.sort;if(t){const r=J(o,t,a);s.isEqual(r,o)||s.append(n,r)}}function E(e,n,o){const{filter:t,group:a,sort:r,order:c="asc"}=z(e,n);return(t||s.isUndefined(r))&&(a?t?(delete o.filter[""],o.filter[a]=t):(delete o.filter[a],(s.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":t||""})):o.filter={"":t||""}),s.isUndefined(r)||(o.sort=[r,c]),o}function D(e,n,{filter:o={"":""},sort:[t,a]}){const{filter:r="",group:c="",sort:f,order:h="asc"}=z(e,n);return s.isUndefined(f)?c in o&&r===o[c]||!r&&c&&!(c in o)&&!o[""]:t===f&&a===h}function J(e,n,o){return[...e].sort((t,a)=>s.data(t,n).localeCompare(s.data(a,n),void 0,{numeric:!0})*(o==="asc"||-1))}function G(e){return s.$("a,button",e)||e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",q),q}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],k):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox_panel=k(t.UIkit.util))})(this,function(t){"use strict";function k(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&J(e,e._queued),e._queued=null})),e._queued.add(s.type||s))}function J(e,s){for(const{read:i,write:n,events:o=[]}of e._updates){if(!s.has("update")&&!o.some(h=>s.has(h)))continue;let r;i&&(r=i.call(e,e._data,s),r&&t.isPlainObject(r)&&t.assign(e._data,r)),n&&r!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function X(e){return D(t.observeResize,e,"resize")}function Y(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){k(this,i)},...s}}function Q(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[o,r]=n.split(/:(.*)/);return o&&!t.isUndefined(r)&&(i[o.trim()]=r.trim()),i},{}):{}}catch{return{}}}Y({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function Z(e,s){if(s=K(s),s.length){const i=t.fragment("<picture>");for(const n of s){const o=t.fragment("<source>");t.attr(o,n),t.append(i,o)}t.append(i,e)}}function K(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=Q(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}let S;function ee(e){const s=t.on(e,"touchstart",n=>{if(n.targetTouches.length!==1||t.matches(n.target,'input[type="range"'))return;let o=t.getEventPos(n).y;const r=t.on(e,"touchmove",h=>{const a=t.getEventPos(h).y;a!==o&&(o=a,t.scrollParents(h.target).some(d=>{if(!e.contains(d))return!1;let{scrollHeight:c,clientHeight:m}=d;return m<c})||h.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",r,{capture:!0})},{passive:!0});if(S)return s;S=!0;const{scrollingElement:i}=document;return t.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:t.width(window)-i.clientWidth||""}),()=>{S=!1,s(),t.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var te={connected(){t.addClass(this.$el,this.$options.id)}},se={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function ie(e){const s=t.scrollParent(e),{scrollTop:i}=s;return()=>{i!==s.scrollTop&&(s.scrollTop=i)}}var ne={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const o=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(i)?i:i===!1||!this.hasAnimation?re:this.hasTransition?oe:ae)(n,o,this),h=o?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,o?"show":"hide",[this]);const a=()=>{var d;if(t.removeClass(n,h),t.trigger(n,o?"shown":"hidden",[this]),o){const c=ie(n);(d=t.$$("[autofocus]",n).find(t.isVisible))==null||d.focus(),c()}};return r?r.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function re(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function oe(e,s,{animation:i,duration:n,velocity:o,transition:r,_toggle:h}){var a;const[d="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],l=m[t.includes(m[0],c)?0:1],f=l[1]===c,v=["width","height"][m.indexOf(l)],x=`margin-${l[0]}`,A=`margin-${c}`;let w=t.dimensions(e)[v];const Ee=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const Pe=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",x,A].map(G=>[G,e.style[G]])),$=t.dimensions(e),N=t.toFloat(t.css(e,x)),U=t.toFloat(t.css(e,A)),b=$[v]+U;!Ee&&!s&&(w+=U);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[v]:w});const q=w/b;n=(o*b+n)*(s?1-q:q);const V={[v]:s?b:0};f&&(t.css(e,x,b-w+N),V[x]=s?N:b+N),!f^d==="reveal"&&(t.css(_,x,-b+w),t.Transition.start(_,{[x]:s?0:-b},n,r));try{await t.Transition.start(e,V,n,r)}finally{t.css(e,Pe),t.unwrap(_.firstChild),s||h(e,!1)}}function ae(e,s,i){const{animation:n,duration:o,_toggle:r}=i;return s?(r(e,!0),t.Animation.in(e,n[0],o,i.origin)):t.Animation.out(e,n[1]||n[0],o,i.origin).then(()=>r(e,!1))}const p=[];var he={mixins:[te,se,ne],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){t.attr(this.panel||this.$el,"role",this.role),this.overlay&&t.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(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(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&le(this),this.overlay&&ee(this.$el),this.bgClose&&ce(this),this.escClose&&fe(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(e,s,{transitionElement:i,_toggle:n}){return new Promise((o,r)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=r,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),o()},de(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function de(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function le(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function ce(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:o})=>{!i&&n===t.pointerUp&&s===o&&e.hide()},!0)})}function fe(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}var E={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return pe(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function pe(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function me(e,s,i,{animation:n,easing:o}){const{percent:r,translate:h,show:a=t.noop}=n,d=a(i),{promise:c,resolve:m}=ge();return{dir:i,show(l,f=0,W){const v=W?"linear":o;return l-=Math.round(l*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:l,timing:v,dir:i}),I(e,"itemout",{percent:1-f,duration:l,timing:v,dir:i}),Promise.all([t.Transition.start(s,d[1],l,v),t.Transition.start(e,d[0],l,v)]).then(()=>{this.reset(),m()},t.noop),c},cancel(){return t.Transition.cancel([s,e])},reset(){for(const l in d[0])t.css([s,e],l,"")},async forward(l,f=this.percent()){return await this.cancel(),this.show(l,f,!0)},translate(l){this.reset();const f=h(l,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:l,dir:i}),I(e,"itemtranslateout",{percent:1-l,dir:i})},percent(){return r(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ge(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var ve={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}},ue={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},B={passive:!0,capture:!0},be="touchstart mousedown",P="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var xe={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:be,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ke(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:P,el:({list:e})=>e,handler:t.noop,...C}],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,P,this.move,C),t.on(document,M,this.end,B),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;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),h=F.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=F.call(this,n,r);this.percent=o/h;const a=i[n],d=i[r],c=this.index!==r,m=n===r;let l;for(const f of[this.index,this.prevIndex])t.includes([r,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,P,this.move,C),t.off(document,M,this.end,B),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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&&(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function F(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ke(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(o=>[t.hyphenate(o),`data-${t.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let we=1;function L(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${we++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var $e={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let o,r=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=L(this,a)),r=a.id),o=this.t("slideX",t.toFloat(i)+1),t.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=L(this,this.list)),r=this.list.id),o=this.t(i);t.attr(n,{"aria-controls":r,"aria-label":t.attr(n,"aria-label")||o})}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){t.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let o=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const r=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,r),t.toggleClass(n,"uk-disabled",!!this.parallax),t.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const e=[];for(let s=0;s<this.length;s++){const i=`${this.attrItem}="${s}"`;e[s]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||t.$(`<li ${i}><a href></a></li>`)}t.isEqual(e,this.navChildren)||t.html(this.nav,e)}}};const ye="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ie="cubic-bezier(0.165, 0.84, 0.44, 1)";var Ce={mixins:[ue,xe,$e,ve],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>Ae(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),c=this.slides[d];if(a===c){r();return}if(this.dir=Te(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),await this._show(a,c,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?ye:Ie:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Te(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function Ae(e){return .5*e+300}var _e={mixins:[Ce],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:E,Transitioner:me},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:X(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...E});function T(e){return`scale3d(${e}, ${e}, 1)`}var z={...E,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},H={i18n:{counter:"%s / %s"},mixins:[he,_e],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:z,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(r=>!t.matches(r,`.uk-${i}`)));for(const[r,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Se(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${r}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),o=this.t("close");n&&o&&(n.dataset.i18n=JSON.stringify({label:o})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{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:()=>document,handler({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=z.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:o={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let r;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${!!this.videoAutoplay}`};if(n==="image"||R(i)){const a=u("img");Z(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...o}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||j(i)){const a=this.videoAutoplay==="inline",d=u("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":a?"automute: true":!!this.videoAutoplay,...o});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,u("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...o}));else if(r=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,u("iframe",{src:`https://www.youtube${r[1]||""}.com/embed/${r[2]}${r[3]?`?${r[3]}`:""}`,width:1920,height:1080,...h,...o}));else if(r=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,u("iframe",{src:`https://player.vimeo.com/video/${r[1]}${r[2]?`?${r[2]}`:""}`,width:d,height:a,...h,...o}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&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 u(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Se(e,s){const i=e.poster||e.thumb&&(e.type==="image"||R(e.thumb))?u("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||j(e.thumb))?u("video",{src:e.thumb,loop:"",playsinline:"","uk-video":`autoplay: ${!!s}; automute: true`}):u("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function R(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function j(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",H),H}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],k):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox_panel=k(t.UIkit.util))})(this,function(t){"use strict";function k(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&J(e,e._queued),e._queued=null})),e._queued.add(s.type||s))}function J(e,s){for(const{read:i,write:n,events:o=[]}of e._updates){if(!s.has("update")&&!o.some(h=>s.has(h)))continue;let r;i&&(r=i.call(e,e._data,s),r&&t.isPlainObject(r)&&t.assign(e._data,r)),n&&r!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function X(e){return D(t.observeResize,e,"resize")}function Y(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){k(this,i)},...s}}function Q(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[o,r]=n.split(/:(.*)/);return o&&!t.isUndefined(r)&&(i[o.trim()]=r.trim()),i},{}):{}}catch{return{}}}Y({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function Z(e,s){if(s=K(s),s.length){const i=t.fragment("<picture>");for(const n of s){const o=t.fragment("<source>");t.attr(o,n),t.append(i,o)}t.append(i,e)}}function K(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=Q(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}let S;function ee(e){const s=t.on(e,"touchstart",n=>{if(n.targetTouches.length!==1||t.matches(n.target,'input[type="range"'))return;let o=t.getEventPos(n).y;const r=t.on(e,"touchmove",h=>{const a=t.getEventPos(h).y;a!==o&&(o=a,t.scrollParents(h.target).some(d=>{if(!e.contains(d))return!1;let{scrollHeight:c,clientHeight:m}=d;return m<c})||h.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",r,{capture:!0})},{passive:!0});if(S)return s;S=!0;const{scrollingElement:i}=document;return t.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:t.width(window)-i.clientWidth||""}),()=>{S=!1,s(),t.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var te={connected(){t.addClass(this.$el,this.$options.id)}},se={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function ie(e){const s=t.scrollParent(e),{scrollTop:i}=s;return()=>{i!==s.scrollTop&&(s.scrollTop=i)}}var ne={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const o=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(i)?i:i===!1||!this.hasAnimation?re:this.hasTransition?oe:ae)(n,o,this),h=o?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,o?"show":"hide",[this]);const a=()=>{var d;if(t.removeClass(n,h),t.trigger(n,o?"shown":"hidden",[this]),o){const c=ie(n);(d=t.$$("[autofocus]",n).find(t.isVisible))==null||d.focus(),c()}};return r?r.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function re(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function oe(e,s,{animation:i,duration:n,velocity:o,transition:r,_toggle:h}){var a;const[d="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],l=m[t.includes(m[0],c)?0:1],f=l[1]===c,v=["width","height"][m.indexOf(l)],x=`margin-${l[0]}`,A=`margin-${c}`;let w=t.dimensions(e)[v];const Ee=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const Pe=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",x,A].map(G=>[G,e.style[G]])),$=t.dimensions(e),N=t.toFloat(t.css(e,x)),U=t.toFloat(t.css(e,A)),b=$[v]+U;!Ee&&!s&&(w+=U);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[v]:w});const q=w/b;n=(o*b+n)*(s?1-q:q);const V={[v]:s?b:0};f&&(t.css(e,x,b-w+N),V[x]=s?N:b+N),!f^d==="reveal"&&(t.css(_,x,-b+w),t.Transition.start(_,{[x]:s?0:-b},n,r));try{await t.Transition.start(e,V,n,r)}finally{t.css(e,Pe),t.unwrap(_.firstChild),s||h(e,!1)}}function ae(e,s,i){const{animation:n,duration:o,_toggle:r}=i;return s?(r(e,!0),t.Animation.in(e,n[0],o,i.origin)):t.Animation.out(e,n[1]||n[0],o,i.origin).then(()=>r(e,!1))}const p=[];var he={mixins:[te,se,ne],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){t.attr(this.panel||this.$el,"role",this.role),this.overlay&&t.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(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(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&le(this),this.overlay&&ee(this.$el),this.bgClose&&ce(this),this.escClose&&fe(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(e,s,{transitionElement:i,_toggle:n}){return new Promise((o,r)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=r,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),o()},de(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function de(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function le(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function ce(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:o})=>{!i&&n===t.pointerUp&&s===o&&e.hide()},!0)})}function fe(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}var E={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return pe(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function pe(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function me(e,s,i,{animation:n,easing:o}){const{percent:r,translate:h,show:a=t.noop}=n,d=a(i),{promise:c,resolve:m}=ge();return{dir:i,show(l,f=0,W){const v=W?"linear":o;return l-=Math.round(l*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:l,timing:v,dir:i}),I(e,"itemout",{percent:1-f,duration:l,timing:v,dir:i}),Promise.all([t.Transition.start(s,d[1],l,v),t.Transition.start(e,d[0],l,v)]).then(()=>{this.reset(),m()},t.noop),c},cancel(){return t.Transition.cancel([s,e])},reset(){for(const l in d[0])t.css([s,e],l,"")},async forward(l,f=this.percent()){return await this.cancel(),this.show(l,f,!0)},translate(l){this.reset();const f=h(l,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:l,dir:i}),I(e,"itemtranslateout",{percent:1-l,dir:i})},percent(){return r(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ge(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var ve={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}},ue={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},B={passive:!0,capture:!0},be="touchstart mousedown",P="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var xe={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:be,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ke(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:P,el:({list:e})=>e,handler:t.noop,...C}],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,P,this.move,C),t.on(document,M,this.end,B),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;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),h=F.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=F.call(this,n,r);this.percent=o/h;const a=i[n],d=i[r],c=this.index!==r,m=n===r;let l;for(const f of[this.index,this.prevIndex])t.includes([r,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,P,this.move,C),t.off(document,M,this.end,B),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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&&(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function F(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ke(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(o=>[t.hyphenate(o),`data-${t.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let we=1;function L(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${we++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var $e={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let o,r=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=L(this,a)),r=a.id),o=this.t("slideX",t.toFloat(i)+1),t.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=L(this,this.list)),r=this.list.id),o=this.t(i);t.attr(n,{"aria-controls":r,"aria-label":t.attr(n,"aria-label")||o})}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){t.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let o=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const r=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,r),t.toggleClass(n,"uk-disabled",!!this.parallax),t.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const e=[];for(let s=0;s<this.length;s++){const i=`${this.attrItem}="${s}"`;e[s]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||t.$(`<li ${i}><a href></a></li>`)}t.isEqual(e,this.navChildren)||t.html(this.nav,e)}}};const ye="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ie="cubic-bezier(0.165, 0.84, 0.44, 1)";var Ce={mixins:[ue,xe,$e,ve],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>Ae(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),c=this.slides[d];if(a===c){r();return}if(this.dir=Te(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),await this._show(a,c,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?ye:Ie:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Te(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function Ae(e){return .5*e+300}var _e={mixins:[Ce],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:E,Transitioner:me},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:X(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...E});function T(e){return`scale3d(${e}, ${e}, 1)`}var z={...E,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},H={i18n:{counter:"%s / %s"},mixins:[he,_e],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:z,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(r=>!t.matches(r,`.uk-${i}`)));for(const[r,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Se(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${r}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),o=this.t("close");n&&o&&(n.dataset.i18n=JSON.stringify({label:o})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{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:()=>document,handler({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=z.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:o={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let r;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${!!this.videoAutoplay}`};if(n==="image"||R(i)){const a=u("img");Z(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...o}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||j(i)){const a=this.videoAutoplay==="inline",d=u("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":a?"automute: true":!!this.videoAutoplay,...o});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,u("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...o}));else if(r=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,u("iframe",{src:`https://www.youtube${r[1]||""}.com/embed/${r[2]}${r[3]?`?${r[3]}`:""}`,width:1920,height:1080,...h,...o}));else if(r=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,u("iframe",{src:`https://player.vimeo.com/video/${r[1]}${r[2]?`?${r[2]}`:""}`,width:d,height:a,...h,...o}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&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 u(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Se(e,s){const i=e.poster||e.thumb&&(e.type==="image"||R(e.thumb))?u("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||j(e.thumb))?u("video",{src:e.thumb,loop:"",playsinline:"","uk-video":`autoplay: ${!!s}; automute: true`}):u("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function R(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function j(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",H),H}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],x):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=x(t.UIkit.util))})(this,function(t){"use strict";function x(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[r,o]=n.split(/:(.*)/);return r&&!t.isUndefined(o)&&(i[r.trim()]=o.trim()),i},{}):{}}catch{return{}}}function X(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&Y(e,e._queued),e._queued=null})),e._queued.add(s.type||s))}function Y(e,s){for(const{read:i,write:n,events:r=[]}of e._updates){if(!s.has("update")&&!r.some(h=>s.has(h)))continue;let o;i&&(o=i.call(e,e._data,s),o&&t.isPlainObject(o)&&t.assign(e._data,o)),n&&o!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function Q(e){return D(t.observeResize,e,"resize")}function Z(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){X(this,i)},...s}}Z({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function K(e,s){if(s=ee(s),s.length){const i=t.fragment("<picture>");for(const n of s){const r=t.fragment("<source>");t.attr(r,n),t.append(i,r)}t.append(i,e)}}function ee(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=x(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}let P;function te(e){const s=t.on(e,"touchstart",n=>{if(n.targetTouches.length!==1||t.matches(n.target,'input[type="range"'))return;let r=t.getEventPos(n).y;const o=t.on(e,"touchmove",h=>{const a=t.getEventPos(h).y;a!==r&&(r=a,t.scrollParents(h.target).some(d=>{if(!e.contains(d))return!1;let{scrollHeight:l,clientHeight:m}=d;return m<l})||h.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",o,{capture:!0})},{passive:!0});if(P)return s;P=!0;const{scrollingElement:i}=document;return t.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:t.width(window)-i.clientWidth||""}),()=>{P=!1,s(),t.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var se={connected(){t.addClass(this.$el,this.$options.id)}},ie={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function ne(e){const s=t.scrollParent(e),{scrollTop:i}=s;return()=>{i!==s.scrollTop&&(s.scrollTop=i)}}var oe={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const r=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const o=(t.isFunction(i)?i:i===!1||!this.hasAnimation?re:this.hasTransition?ae:he)(n,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,r?"show":"hide",[this]);const a=()=>{var d;if(t.removeClass(n,h),t.trigger(n,r?"shown":"hidden",[this]),r){const l=ne(n);(d=t.$$("[autofocus]",n).find(t.isVisible))==null||d.focus(),l()}};return o?o.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function re(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function ae(e,s,{animation:i,duration:n,velocity:r,transition:o,_toggle:h}){var a;const[d="reveal",l="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],c=m[t.includes(m[0],l)?0:1],f=c[1]===l,u=["width","height"][m.indexOf(c)],w=`margin-${c[0]}`,A=`margin-${l}`;let k=t.dimensions(e)[u];const Be=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const Me=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",w,A].map(J=>[J,e.style[J]])),$=t.dimensions(e),N=t.toFloat(t.css(e,w)),U=t.toFloat(t.css(e,A)),b=$[u]+U;!Be&&!s&&(k+=U);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[u]:k});const V=k/b;n=(r*b+n)*(s?1-V:V);const G={[u]:s?b:0};f&&(t.css(e,w,b-k+N),G[w]=s?N:b+N),!f^d==="reveal"&&(t.css(_,w,-b+k),t.Transition.start(_,{[w]:s?0:-b},n,o));try{await t.Transition.start(e,G,n,o)}finally{t.css(e,Me),t.unwrap(_.firstChild),s||h(e,!1)}}function he(e,s,i){const{animation:n,duration:r,_toggle:o}=i;return s?(o(e,!0),t.Animation.in(e,n[0],r,i.origin)):t.Animation.out(e,n[1]||n[0],r,i.origin).then(()=>o(e,!1))}const p=[];var de={mixins:[se,ie,oe],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){t.attr(this.panel||this.$el,"role",this.role),this.overlay&&t.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(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(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&le(this),this.overlay&&te(this.$el),this.bgClose&&fe(this),this.escClose&&pe(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(e,s,{transitionElement:i,_toggle:n}){return new Promise((r,o)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=o,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),r()},ce(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function ce(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function le(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function fe(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:r})=>{!i&&n===t.pointerUp&&s===r&&e.hide()},!0)})}function pe(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}var S={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return me(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function me(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function ge(e,s,i,{animation:n,easing:r}){const{percent:o,translate:h,show:a=t.noop}=n,d=a(i),{promise:l,resolve:m}=ue();return{dir:i,show(c,f=0,q){const u=q?"linear":r;return c-=Math.round(c*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:c,timing:u,dir:i}),I(e,"itemout",{percent:1-f,duration:c,timing:u,dir:i}),Promise.all([t.Transition.start(s,d[1],c,u),t.Transition.start(e,d[0],c,u)]).then(()=>{this.reset(),m()},t.noop),l},cancel(){return t.Transition.cancel([s,e])},reset(){for(const c in d[0])t.css([s,e],c,"")},async forward(c,f=this.percent()){return await this.cancel(),this.show(c,f,!0)},translate(c){this.reset();const f=h(c,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:c,dir:i}),I(e,"itemtranslateout",{percent:1-c,dir:i})},percent(){return o(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ue(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var ve={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:r.replace(/%s/g,()=>s[o++]||""))||""}}},be={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},B={passive:!0,capture:!0},xe="touchstart mousedown",E="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var we={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:xe,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ke(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:E,el:({list:e})=>e,handler:t.noop,...C}],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,E,this.move,C),t.on(document,M,this.end,B),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;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(s),o=this.getIndex(n+this.dir),h=L.call(this,n,o);for(;o!==n&&r>h;)this.drag-=h*this.dir,n=o,r-=h,o=this.getIndex(n+this.dir),h=L.call(this,n,o);this.percent=r/h;const a=i[n],d=i[o],l=this.index!==o,m=n===o;let c;for(const f of[this.index,this.prevIndex])t.includes([o,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(c=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||c)&&t.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=o,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,E,this.move,C),t.off(document,M,this.end,B),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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&&(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function L(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ke(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(r=>[t.hyphenate(r),`data-${t.hyphenate(r)}`]).flat();return{attributes:i,filter:n}});let $e=1;function F(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${$e++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var ye={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let r,o=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=F(this,a)),o=a.id),r=this.t("slideX",t.toFloat(i)+1),t.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=F(this,this.list)),o=this.list.id),r=this.t(i);t.attr(n,{"aria-controls":o,"aria-label":t.attr(n,"aria-label")||r})}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){t.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let r=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~r&&(e.preventDefault(),this.show(r))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const o=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,o),t.toggleClass(n,"uk-disabled",!!this.parallax),t.attr(n,{"aria-selected":o,tabindex:o&&!this.parallax?null:-1}),o&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const e=[];for(let s=0;s<this.length;s++){const i=`${this.attrItem}="${s}"`;e[s]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||t.$(`<li ${i}><a href></a></li>`)}t.isEqual(e,this.navChildren)||t.html(this.nav,e)}}};const Ie="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ce="cubic-bezier(0.165, 0.84, 0.44, 1)";var Te={mixins:[be,we,ye,ve],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>_e(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=s?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),l=this.slides[d];if(a===l){o();return}if(this.dir=Ae(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(l,"itemshow",[this]),await this._show(a,l,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?Ie:Ce:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Ae(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function _e(e){return .5*e+300}var Pe={mixins:[Te],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:S,Transitioner:ge},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:Q(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...S});function T(e){return`scale3d(${e}, ${e}, 1)`}var H={...S,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},Se={i18n:{counter:"%s / %s"},mixins:[de,Pe],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:H,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(o=>!t.matches(o,`.uk-${i}`)));for(const[o,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Ee(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${o}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{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:()=>document,handler({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=H.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:r={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let o;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${!!this.videoAutoplay}`};if(n==="image"||z(i)){const a=v("img");K(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...r}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||R(i)){const a=this.videoAutoplay==="inline",d=v("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":a?"automute: true":!!this.videoAutoplay,...r});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...r}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,v("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...h,...r}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,v("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:d,height:a,...h,...r}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&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 v(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Ee(e,s){const i=e.poster||e.thumb&&(e.type==="image"||z(e.thumb))?v("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||R(e.thumb))?v("video",{src:e.thumb,loop:"",playsinline:"","uk-video":`autoplay: ${!!s}; automute: true`}):v("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function z(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function R(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}const Ne=".uk-disabled *, .uk-disabled, [disabled]";var W={install:De,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:e},s)=>t.$$(e,s)},watch:{toggles(e){this.hide();for(const s of e)t.isTag(s,"a")&&t.attr(s,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:e})=>e,handler(e){e.defaultPrevented||(e.preventDefault(),t.matches(e.current,Ne)||this.show(e.current))}},methods:{show(e){let s=this.toggles.map(j);if(this.nav==="thumbnav"&&Oe.call(this,this.toggles,s),s=t.uniqueBy(s,"source"),t.isElement(e)){const{source:i}=j(e);e=t.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function De(e,s){e.lightboxPanel||e.component("lightboxPanel",Se),t.assign(s.props,e.component("lightboxPanel").options.props)}function Oe(e,s){for(const[i,n]of Object.entries(e)){if(s[i].thumb)continue;const r=t.parents(n).reverse().concat(n).find(h=>this.$el.contains(h)&&(h===n||t.$$(this.toggle,h).length===1));if(!r)continue;const o=t.$("img,video",r);o&&(s[i].thumb=o.currentSrc||o.poster||o.src,s[i].thumbRatio=(o.naturalWidth||o.videoWidth)/(o.naturalHeight||o.videoHeight))}}function j(e){const s={};for(const i of e.getAttributeNames()){const n=i.replace(/^data-/,"");s[n==="href"?"source":n]=e.getAttribute(i)}return s.attrs=x(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",W),W}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],x):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=x(t.UIkit.util))})(this,function(t){"use strict";function x(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[r,o]=n.split(/:(.*)/);return r&&!t.isUndefined(o)&&(i[r.trim()]=o.trim()),i},{}):{}}catch{return{}}}function X(e,s="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&Y(e,e._queued),e._queued=null})),e._queued.add(s.type||s))}function Y(e,s){for(const{read:i,write:n,events:r=[]}of e._updates){if(!s.has("update")&&!r.some(h=>s.has(h)))continue;let o;i&&(o=i.call(e,e._data,s),o&&t.isPlainObject(o)&&t.assign(e._data,o)),n&&o!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function Q(e){return D(t.observeResize,e,"resize")}function Z(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){X(this,i)},...s}}Z({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function K(e,s){if(s=ee(s),s.length){const i=t.fragment("<picture>");for(const n of s){const r=t.fragment("<source>");t.attr(r,n),t.append(i,r)}t.append(i,e)}}function ee(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=x(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}let P;function te(e){const s=t.on(e,"touchstart",n=>{if(n.targetTouches.length!==1||t.matches(n.target,'input[type="range"'))return;let r=t.getEventPos(n).y;const o=t.on(e,"touchmove",h=>{const a=t.getEventPos(h).y;a!==r&&(r=a,t.scrollParents(h.target).some(d=>{if(!e.contains(d))return!1;let{scrollHeight:l,clientHeight:m}=d;return m<l})||h.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",o,{capture:!0})},{passive:!0});if(P)return s;P=!0;const{scrollingElement:i}=document;return t.css(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:t.width(window)-i.clientWidth||""}),()=>{P=!1,s(),t.css(i,{overflowY:"",touchAction:"",paddingRight:""})}}var se={connected(){t.addClass(this.$el,this.$options.id)}},ie={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function ne(e){const s=t.scrollParent(e),{scrollTop:i}=s;return()=>{i!==s.scrollTop&&(s.scrollTop=i)}}var oe={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const r=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const o=(t.isFunction(i)?i:i===!1||!this.hasAnimation?re:this.hasTransition?ae:he)(n,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,r?"show":"hide",[this]);const a=()=>{var d;if(t.removeClass(n,h),t.trigger(n,r?"shown":"hidden",[this]),r){const l=ne(n);(d=t.$$("[autofocus]",n).find(t.isVisible))==null||d.focus(),l()}};return o?o.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function re(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function ae(e,s,{animation:i,duration:n,velocity:r,transition:o,_toggle:h}){var a;const[d="reveal",l="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],c=m[t.includes(m[0],l)?0:1],f=c[1]===l,u=["width","height"][m.indexOf(c)],w=`margin-${c[0]}`,A=`margin-${l}`;let k=t.dimensions(e)[u];const Be=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const Me=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",w,A].map(J=>[J,e.style[J]])),$=t.dimensions(e),N=t.toFloat(t.css(e,w)),U=t.toFloat(t.css(e,A)),b=$[u]+U;!Be&&!s&&(k+=U);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[u]:k});const V=k/b;n=(r*b+n)*(s?1-V:V);const G={[u]:s?b:0};f&&(t.css(e,w,b-k+N),G[w]=s?N:b+N),!f^d==="reveal"&&(t.css(_,w,-b+k),t.Transition.start(_,{[w]:s?0:-b},n,o));try{await t.Transition.start(e,G,n,o)}finally{t.css(e,Me),t.unwrap(_.firstChild),s||h(e,!1)}}function he(e,s,i){const{animation:n,duration:r,_toggle:o}=i;return s?(o(e,!0),t.Animation.in(e,n[0],r,i.origin)):t.Animation.out(e,n[1]||n[0],r,i.origin).then(()=>o(e,!1))}const p=[];var de={mixins:[se,ie,oe],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){t.attr(this.panel||this.$el,"role",this.role),this.overlay&&t.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(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(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&le(this),this.overlay&&te(this.$el),this.bgClose&&fe(this),this.escClose&&pe(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(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,O)},hide(){return this.toggleElement(this.$el,!1,O)}}};function O(e,s,{transitionElement:i,_toggle:n}){return new Promise((r,o)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=o,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),r()},ce(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function ce(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function le(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function fe(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:r})=>{!i&&n===t.pointerUp&&s===r&&e.hide()},!0)})}function pe(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}var S={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return me(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function me(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function ge(e,s,i,{animation:n,easing:r}){const{percent:o,translate:h,show:a=t.noop}=n,d=a(i),{promise:l,resolve:m}=ue();return{dir:i,show(c,f=0,q){const u=q?"linear":r;return c-=Math.round(c*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:c,timing:u,dir:i}),I(e,"itemout",{percent:1-f,duration:c,timing:u,dir:i}),Promise.all([t.Transition.start(s,d[1],c,u),t.Transition.start(e,d[0],c,u)]).then(()=>{this.reset(),m()},t.noop),l},cancel(){return t.Transition.cancel([s,e])},reset(){for(const c in d[0])t.css([s,e],c,"")},async forward(c,f=this.percent()){return await this.cancel(),this.show(c,f,!0)},translate(c){this.reset();const f=h(c,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:c,dir:i}),I(e,"itemtranslateout",{percent:1-c,dir:i})},percent(){return o(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ue(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var ve={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:r.replace(/%s/g,()=>s[o++]||""))||""}}},be={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},B={passive:!0,capture:!0},xe="touchstart mousedown",E="touchmove mousemove",M="touchend touchcancel mouseup click input scroll";var we={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:xe,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ke(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:E,el:({list:e})=>e,handler:t.noop,...C}],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,E,this.move,C),t.on(document,M,this.end,B),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;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(s),o=this.getIndex(n+this.dir),h=L.call(this,n,o);for(;o!==n&&r>h;)this.drag-=h*this.dir,n=o,r-=h,o=this.getIndex(n+this.dir),h=L.call(this,n,o);this.percent=r/h;const a=i[n],d=i[o],l=this.index!==o,m=n===o;let c;for(const f of[this.index,this.prevIndex])t.includes([o,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(c=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||c)&&t.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=o,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,E,this.move,C),t.off(document,M,this.end,B),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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&&(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function L(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ke(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(r=>[t.hyphenate(r),`data-${t.hyphenate(r)}`]).flat();return{attributes:i,filter:n}});let $e=1;function F(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${$e++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var ye={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let r,o=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=F(this,a)),o=a.id),r=this.t("slideX",t.toFloat(i)+1),t.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=F(this,this.list)),o=this.list.id),r=this.t(i);t.attr(n,{"aria-controls":o,"aria-label":t.attr(n,"aria-label")||r})}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){t.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let r=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~r&&(e.preventDefault(),this.show(r))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const o=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,o),t.toggleClass(n,"uk-disabled",!!this.parallax),t.attr(n,{"aria-selected":o,tabindex:o&&!this.parallax?null:-1}),o&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const e=[];for(let s=0;s<this.length;s++){const i=`${this.attrItem}="${s}"`;e[s]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||t.$(`<li ${i}><a href></a></li>`)}t.isEqual(e,this.navChildren)||t.html(this.nav,e)}}};const Ie="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ce="cubic-bezier(0.165, 0.84, 0.44, 1)";var Te={mixins:[be,we,ye,ve],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>_e(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=s?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),l=this.slides[d];if(a===l){o();return}if(this.dir=Ae(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(l,"itemshow",[this]),await this._show(a,l,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?Ie:Ce:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Ae(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function _e(e){return .5*e+300}var Pe={mixins:[Te],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:S,Transitioner:ge},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:Q(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...S});function T(e){return`scale3d(${e}, ${e}, 1)`}var H={...S,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},Se={i18n:{counter:"%s / %s"},mixins:[de,Pe],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:H,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(o=>!t.matches(o,`.uk-${i}`)));for(const[o,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Ee(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${o}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{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:()=>document,handler({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=H.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:r={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let o;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${!!this.videoAutoplay}`};if(n==="image"||z(i)){const a=v("img");K(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...r}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||R(i)){const a=this.videoAutoplay==="inline",d=v("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":a?"automute: true":!!this.videoAutoplay,...r});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...r}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,v("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...h,...r}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,v("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:d,height:a,...h,...r}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&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 v(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Ee(e,s){const i=e.poster||e.thumb&&(e.type==="image"||z(e.thumb))?v("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||R(e.thumb))?v("video",{src:e.thumb,loop:"",playsinline:"","uk-video":`autoplay: ${!!s}; automute: true`}):v("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function z(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function R(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}const Ne=".uk-disabled *, .uk-disabled, [disabled]";var W={install:De,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:e},s)=>t.$$(e,s)},watch:{toggles(e){this.hide();for(const s of e)t.isTag(s,"a")&&t.attr(s,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:e})=>e,handler(e){e.defaultPrevented||(e.preventDefault(),t.matches(e.current,Ne)||this.show(e.current))}},methods:{show(e){let s=this.toggles.map(j);if(this.nav==="thumbnav"&&Oe.call(this,this.toggles,s),s=t.uniqueBy(s,"source"),t.isElement(e)){const{source:i}=j(e);e=t.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function De(e,s){e.lightboxPanel||e.component("lightboxPanel",Se),t.assign(s.props,e.component("lightboxPanel").options.props)}function Oe(e,s){for(const[i,n]of Object.entries(e)){if(s[i].thumb)continue;const r=t.parents(n).reverse().concat(n).find(h=>this.$el.contains(h)&&(h===n||t.$$(this.toggle,h).length===1));if(!r)continue;const o=t.$("img,video",r);o&&(s[i].thumb=o.currentSrc||o.poster||o.src,s[i].thumbRatio=(o.naturalWidth||o.videoWidth)/(o.naturalHeight||o.videoHeight))}}function j(e){const s={};for(const i of e.getAttributeNames()){const n=i.replace(/^data-/,"");s[n==="href"?"source":n]=e.getAttribute(i)}return s.attrs=x(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",W),W}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitParallax=b(c.UIkit.util))})(this,function(c){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,c.fastdom.read(()=>{n._connected&&Y(n,n._queued),n._queued=null})),n._queued.add(e.type||e))}function Y(n,e){for(const{read:t,write:r,events:i=[]}of n._updates){if(!e.has("update")&&!i.some(a=>e.has(a)))continue;let o;t&&(o=t.call(n,n._data,e),o&&c.isPlainObject(o)&&c.assign(n._data,o)),r&&o!==!1&&c.fastdom.write(()=>{n._connected&&r.call(n,n._data,e)})}}function Z(n){return F(c.observeResize,n,"resize")}function k(n){return F((e,t)=>c.observeViewportResize(t),n,"resize")}function U(n){return F((e,t)=>({disconnect:c.on(nn(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function nn(n){return c.toNodes(n).map(e=>{const{ownerDocument:t}=e,r=c.scrollParent(e,!0);return r===t.scrollingElement?t:r})}var en={props:{media:Boolean},data:{media:!1},connected(){const n=tn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function tn(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function rn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:on}=Array;function cn(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function sn(n){return M(n)&&n===n.window}function an(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!sn(n)&&M(n)&&n.nodeType}function P(n){return typeof n=="string"}function fn(n){return n===void 0}function x(n){return n&&d(n)[0]}function d(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function T(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(M(e)){for(const i in e)O(n,i,e[i]);return}if(fn(t))return(r=x(n))==null?void 0:r.getAttribute(e);for(const i of d(n))cn(t)&&(t=t.call(i,O(i,e))),t===null?un(i,e):i.setAttribute(e,t)}function un(n,e){d(n).forEach(t=>t.removeAttribute(e))}const dn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function ln(n){return d(n).some(e=>dn.call(e))}function hn(n){var e;return(e=x(n))==null?void 0:e.parentElement}function gn(n,e){return d(n).filter(t=>W(t,e))}function W(n,e){return d(n).some(t=>t.matches(e))}function mn(n,e){n=x(n);const t=n?on(n.children):[];return e?gn(t,e):t}function A(n,e){return mn(hn(n)).indexOf(n)}function bn(n,e){return d(vn(n,x(e),"querySelectorAll"))}const pn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,$n=/(\([^)]*\)|[^,])+/g,wn=T(n=>{let e=!1;if(!n||!P(n))return{};const t=[];for(let r of n.match($n))r=r.trim().replace(pn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),xn=/(\([^)]*\)|\S)*/,R=T(n=>{n=n.slice(1).trim();const[e]=n.match(xn);return[e,n.slice(e.length+1)]});function vn(n,e=document,t){const r=wn(n);if(!r.isContextSelector)return r.selector?j(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=R(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=R(o),s=s.previousElementSibling,s=W(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),j(s,t,o);n+=`${n?",":""}${yn(s)} ${o}`}}return an(e)||(e=e.ownerDocument),j(e,t,n)}function j(n,e,t){try{return n[e](t)}catch{return null}}function yn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${Sn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function Sn(n){return P(n)?CSS.escape(n):""}const _n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Fn(n){const e=_n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Mn(t.content.childNodes)}function Mn(n){return n.length>1?n:n[0]}function Pn(n,e){return On(n)?d(Fn(n)):bn(n,e)}function On(n){return P(n)&&rn(n.trim(),"<")}function jn(n){return ln(n)?Math.ceil(Math.max(0,...Pn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const v={x:y,y,rotate:y,scale:y,color:C,backgroundColor:C,borderColor:C,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Nn,stroke:In,bgx:q,bgy:q},{keys:D}=Object;var Cn={mixins:[en],props:Q(D(v),"list"),data:Q(D(v),void 0),computed:{props(n,e){const t={};for(const i in n)i in v&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=v[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function y(n,e,t){let r=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return _([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${p(t,a)}${r})`}}function C(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t,r=>En(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function En(n,e){return $(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=p(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Nn(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t),(r,i)=>{r[n]=p(t,i)}}function In(n,e,t){t.length===1&&t.unshift(0);const r=_(t),i=jn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=p(t,a)}):c.noop}function q(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if($(e,"backgroundSize","")==="cover")return zn(n,e,t,r);const a={};for(const s of o)a[s]=H(e,s);return V(o,a,r)}function zn(n,e,t,r){const i=Tn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([Rn])=>Rn),w=Math.min(...u),N=Math.max(...u),K=u.indexOf(w)<u.indexOf(N),X=N-w;s[f]=`${(K?-X:0)-(K?w:N)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",w=l[u]-o[u];s[f]=`max(${H(e,f)},-${w}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function H(n,e){return $(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=p(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const B={},S={};function Tn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!B[e])?(c.once(t,"error load",()=>{S[e]=E(t),c.trigger(n,c.createEvent("load",!1))}),B[e]=!0,E(t)):S[e]=E(t)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function p(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Wn=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Wn);if(i)return i[1]}return e}function $(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function Q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}function An(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var G={mixins:[Cn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},e)=>J(n&&c.query(n,e)||e),start({start:n}){return c.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return c.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[k(),U({target:({target:n})=>n}),Z({target:({$el:n,target:e})=>[n,e,c.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!c.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=An(c.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:t===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&c.css(this.$el,n)},events:["scroll","resize"]}};function J(n){return n?"offsetTop"in n?n:J(c.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",G),G}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitParallax=b(c.UIkit.util))})(this,function(c){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,c.fastdom.read(()=>{n._connected&&Y(n,n._queued),n._queued=null})),n._queued.add(e.type||e))}function Y(n,e){for(const{read:t,write:r,events:i=[]}of n._updates){if(!e.has("update")&&!i.some(a=>e.has(a)))continue;let o;t&&(o=t.call(n,n._data,e),o&&c.isPlainObject(o)&&c.assign(n._data,o)),r&&o!==!1&&c.fastdom.write(()=>{n._connected&&r.call(n,n._data,e)})}}function Z(n){return F(c.observeResize,n,"resize")}function k(n){return F((e,t)=>c.observeViewportResize(t),n,"resize")}function U(n){return F((e,t)=>({disconnect:c.on(nn(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function nn(n){return c.toNodes(n).map(e=>{const{ownerDocument:t}=e,r=c.scrollParent(e,!0);return r===t.scrollingElement?t:r})}var en={props:{media:Boolean},data:{media:!1},connected(){const n=tn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function tn(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function rn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:on}=Array;function cn(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function sn(n){return M(n)&&n===n.window}function an(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!sn(n)&&M(n)&&n.nodeType}function P(n){return typeof n=="string"}function fn(n){return n===void 0}function x(n){return n&&d(n)[0]}function d(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function T(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(M(e)){for(const i in e)O(n,i,e[i]);return}if(fn(t))return(r=x(n))==null?void 0:r.getAttribute(e);for(const i of d(n))cn(t)&&(t=t.call(i,O(i,e))),t===null?un(i,e):i.setAttribute(e,t)}function un(n,e){d(n).forEach(t=>t.removeAttribute(e))}const dn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function ln(n){return d(n).some(e=>dn.call(e))}function hn(n){var e;return(e=x(n))==null?void 0:e.parentElement}function gn(n,e){return d(n).filter(t=>W(t,e))}function W(n,e){return d(n).some(t=>t.matches(e))}function mn(n,e){n=x(n);const t=n?on(n.children):[];return e?gn(t,e):t}function A(n,e){return mn(hn(n)).indexOf(n)}function bn(n,e){return d(vn(n,x(e),"querySelectorAll"))}const pn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,$n=/(\([^)]*\)|[^,])+/g,wn=T(n=>{let e=!1;if(!n||!P(n))return{};const t=[];for(let r of n.match($n))r=r.trim().replace(pn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),xn=/(\([^)]*\)|\S)*/,R=T(n=>{n=n.slice(1).trim();const[e]=n.match(xn);return[e,n.slice(e.length+1)]});function vn(n,e=document,t){const r=wn(n);if(!r.isContextSelector)return r.selector?j(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=R(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=R(o),s=s.previousElementSibling,s=W(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),j(s,t,o);n+=`${n?",":""}${yn(s)} ${o}`}}return an(e)||(e=e.ownerDocument),j(e,t,n)}function j(n,e,t){try{return n[e](t)}catch{return null}}function yn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${Sn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function Sn(n){return P(n)?CSS.escape(n):""}const _n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Fn(n){const e=_n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Mn(t.content.childNodes)}function Mn(n){return n.length>1?n:n[0]}function Pn(n,e){return On(n)?d(Fn(n)):bn(n,e)}function On(n){return P(n)&&rn(n.trim(),"<")}function jn(n){return ln(n)?Math.ceil(Math.max(0,...Pn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const v={x:y,y,rotate:y,scale:y,color:C,backgroundColor:C,borderColor:C,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Nn,stroke:In,bgx:q,bgy:q},{keys:D}=Object;var Cn={mixins:[en],props:Q(D(v),"list"),data:Q(D(v),void 0),computed:{props(n,e){const t={};for(const i in n)i in v&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=v[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function y(n,e,t){let r=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return _([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${p(t,a)}${r})`}}function C(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t,r=>En(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function En(n,e){return $(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=p(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Nn(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t),(r,i)=>{r[n]=p(t,i)}}function In(n,e,t){t.length===1&&t.unshift(0);const r=_(t),i=jn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=p(t,a)}):c.noop}function q(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if($(e,"backgroundSize","")==="cover")return zn(n,e,t,r);const a={};for(const s of o)a[s]=H(e,s);return V(o,a,r)}function zn(n,e,t,r){const i=Tn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([Rn])=>Rn),w=Math.min(...u),N=Math.max(...u),K=u.indexOf(w)<u.indexOf(N),X=N-w;s[f]=`${(K?-X:0)-(K?w:N)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",w=l[u]-o[u];s[f]=`max(${H(e,f)},-${w}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function H(n,e){return $(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=p(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const B={},S={};function Tn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!B[e])?(c.once(t,"error load",()=>{S[e]=E(t),c.trigger(n,c.createEvent("load",!1))}),B[e]=!0,E(t)):S[e]=E(t)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function p(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Wn=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Wn);if(i)return i[1]}return e}function $(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function Q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}function An(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var G={mixins:[Cn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},e)=>J(n&&c.query(n,e)||e),start({start:n}){return c.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return c.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[k(),U({target:({target:n})=>n}),Z({target:({$el:n,target:e})=>[n,e,c.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!c.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=An(c.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:t===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&c.css(this.$el,n)},events:["scroll","resize"]}};function J(n){return n?"offsetTop"in n?n:J(c.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",G),G}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlider_parallax=$(c.UIkit.util))})(this,function(c){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const i in e)O(n,i,e[i]);return}if(en(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const i of d(n))U(t)&&(t=t.call(i,O(i,e))),t===null?rn(i,e):i.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}const on=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function cn(n){return d(n).some(e=>on.call(e))}function sn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function an(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function fn(n,e){n=w(n);const t=n?k(n.children):[];return e?an(t,e):t}function A(n,e){return fn(sn(n)).indexOf(n)}function un(n,e){return d(mn(n,w(e),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,hn=W(n=>{let e=!1;if(!n||!M(n))return{};const t=[];for(let r of n.match(ln))r=r.trim().replace(dn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),gn=/(\([^)]*\)|\S)*/,D=W(n=>{n=n.slice(1).trim();const[e]=n.match(gn);return[e,n.slice(e.length+1)]});function mn(n,e=document,t){const r=hn(n);if(!r.isContextSelector)return r.selector?P(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=D(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=D(o),s=s.previousElementSibling,s=_(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),P(s,t,o);n+=`${n?",":""}${$n(s)} ${o}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function $n(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${bn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const pn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=pn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),wn(t.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,e){return vn(n)?d(xn(n)):un(n,e)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return cn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Mn,stroke:On,bgx:R,bgy:R},{keys:H}=Object;var Fn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return F([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${b(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Cn(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function Cn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=b(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Mn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=b(t,i)}}function On(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=Sn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=b(t,a)}):c.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return Pn(n,e,t,r);const a={};for(const s of o)a[s]=B(e,s);return V(o,a,r)}function Pn(n,e,t,r){const i=jn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([En])=>En),x=Math.min(...u),E=Math.max(...u),K=u.indexOf(x)<u.indexOf(E),X=E-x;s[f]=`${(K?-X:0)-(K?x:E)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",x=l[u]-o[u];s[f]=`max(${B(e,f)},-${x}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function B(n,e){return p(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=b(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const z={},S={};function jn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!z[e])?(c.once(t,"error load",()=>{S[e]=I(t),c.trigger(n,c.createEvent("load",!1))}),z[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function b(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const In=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,In);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[Fn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(J(n,i,e)),a=this.getCss(G(n)?.5:i>0?1:0);c.fastdom.write(()=>{c.css(this.$el,o),c.Transition.start(this.$el,a,t,r).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,r))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Q),Q}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlider_parallax=$(c.UIkit.util))})(this,function(c){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const i in e)O(n,i,e[i]);return}if(en(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const i of d(n))U(t)&&(t=t.call(i,O(i,e))),t===null?rn(i,e):i.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}const on=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function cn(n){return d(n).some(e=>on.call(e))}function sn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function an(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function fn(n,e){n=w(n);const t=n?k(n.children):[];return e?an(t,e):t}function A(n,e){return fn(sn(n)).indexOf(n)}function un(n,e){return d(mn(n,w(e),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,hn=W(n=>{let e=!1;if(!n||!M(n))return{};const t=[];for(let r of n.match(ln))r=r.trim().replace(dn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),gn=/(\([^)]*\)|\S)*/,D=W(n=>{n=n.slice(1).trim();const[e]=n.match(gn);return[e,n.slice(e.length+1)]});function mn(n,e=document,t){const r=hn(n);if(!r.isContextSelector)return r.selector?P(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=D(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=D(o),s=s.previousElementSibling,s=_(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),P(s,t,o);n+=`${n?",":""}${$n(s)} ${o}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function $n(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${bn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const pn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=pn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),wn(t.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,e){return vn(n)?d(xn(n)):un(n,e)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return cn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Mn,stroke:On,bgx:R,bgy:R},{keys:H}=Object;var Fn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return F([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${b(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Cn(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function Cn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=b(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Mn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=b(t,i)}}function On(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=Sn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=b(t,a)}):c.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return Pn(n,e,t,r);const a={};for(const s of o)a[s]=B(e,s);return V(o,a,r)}function Pn(n,e,t,r){const i=jn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([En])=>En),x=Math.min(...u),E=Math.max(...u),K=u.indexOf(x)<u.indexOf(E),X=E-x;s[f]=`${(K?-X:0)-(K?x:E)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",x=l[u]-o[u];s[f]=`max(${B(e,f)},-${x}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function B(n,e){return p(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=b(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const z={},S={};function jn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!z[e])?(c.once(t,"error load",()=>{S[e]=I(t),c.trigger(n,c.createEvent("load",!1))}),z[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function b(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const In=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,In);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[Fn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(J(n,i,e)),a=this.getCss(G(n)?.5:i>0?1:0);c.fastdom.write(()=>{c.css(this.$el,o),c.Transition.start(this.$el,a,t,r).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,r))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Q),Q}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function ut(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(h=>e.has(h)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function z(t){return P(s.observeResize,t,"resize")}function mt(t){return P(s.observeIntersection,t)}function pt(t={}){return mt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))i.unobserve(r)},...t})}function xt(t){return P((e,i)=>({disconnect:s.on(vt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function vt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var wt={connected(){s.addClass(this.$el,this.$options.id)}},It={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},bt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const _={passive:!1,capture:!0},B={passive:!0,capture:!0},$t="touchstart mousedown",O="touchmove mousemove",j="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:$t,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:O,el:({list:t})=>t,handler:s.noop,..._}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,O,this.move,_),s.on(document,j,this.end,B),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),h=U.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=U.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],f=this.index!==r,d=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(this.prevIndex=n,this.index=r,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,O,this.move,_),s.off(document,j,this.end,B),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),_)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function U(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let _t=1;function q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var kt={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=q(this,a)),r=a.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=q(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",!!this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const i=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||s.$(`<li ${i}><a href></a></li>`)}s.isEqual(t,this.navChildren)||s.html(this.nav,t)}}};const At="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ct="cubic-bezier(0.165, 0.84, 0.44, 1)";var Mt={mixins:[bt,yt,kt,It],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{async show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),f=this.slides[c];if(a===f){r();return}if(this.dir=Et(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&s.trigger(a,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(a,f,e),a&&s.trigger(a,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?At:Ct:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function Et(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}function Nt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Tt}=Array;function Pt(t){return typeof t=="function"}function D(t){return t!==null&&typeof t=="object"}function Ot(t){return D(t)&&t===t.window}function Dt(t){return X(t)===9}function G(t){return X(t)>=1}function X(t){return!Ot(t)&&D(t)&&t.nodeType}function F(t){return typeof t=="string"}function Ft(t){return t===void 0}function k(t){return t&&m(t)[0]}function m(t){return G(t)?[t]:Array.from(t||[]).filter(G)}function J(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function R(t,e,i){var n;if(D(e)){for(const o in e)R(t,o,e[o]);return}if(Ft(i))return(n=k(t))==null?void 0:n.getAttribute(e);for(const o of m(t))Pt(i)&&(i=i.call(o,R(o,e))),i===null?Rt(o,e):o.setAttribute(e,i)}function Rt(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Wt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ht(t){return m(t).some(e=>Wt.call(e))}function Lt(t){var e;return(e=k(t))==null?void 0:e.parentElement}function Vt(t,e){return m(t).filter(i=>K(i,e))}function K(t,e){return m(t).some(i=>i.matches(e))}function zt(t,e){t=k(t);const i=t?Tt(t.children):[];return e?Vt(i,e):i}function Y(t,e){return zt(Lt(t)).indexOf(t)}function Bt(t,e){return m(Gt(t,k(e),"querySelectorAll"))}const jt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ut=/(\([^)]*\)|[^,])+/g,qt=J(t=>{let e=!1;if(!t||!F(t))return{};const i=[];for(let n of t.match(Ut))n=n.trim().replace(jt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Qt=/(\([^)]*\)|\S)*/,Z=J(t=>{t=t.slice(1).trim();const[e]=t.match(Qt);return[e,t.slice(e.length+1)]});function Gt(t,e=document,i){const n=qt(t);if(!n.isContextSelector)return n.selector?W(e,i,n.selector):t;t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=Z(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=Z(r),a=a.previousElementSibling,a=K(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Y(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),W(a,i,r);t+=`${t?",":""}${Xt(a)} ${r}`}}return Dt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Xt(t){const e=[];for(;t.parentNode;){const i=R(t,"id");if(i){e.unshift(`#${Jt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Y(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Jt(t){return F(t)?CSS.escape(t):""}const Kt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Yt(t){const e=Kt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Zt(i.content.childNodes)}function Zt(t){return t.length>1?t:t[0]}function te(t,e){return ee(t)?m(Yt(t)):Bt(t,e)}function ee(t){return F(t)&&Nt(t.trim(),"<")}function se(t){return Ht(t)?Math.ceil(Math.max(0,...te("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const tt={x:A,y:A,rotate:A,scale:A,color:H,backgroundColor:H,borderColor:H,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ne,stroke:re,bgx:st,bgy:st},{keys:et}=Object;at(et(tt),"list"),at(et(tt),void 0);function A(t,e,i){let n=M(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var h;return M([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(i,h)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i,n=>ie(e,n)),(n,o)=>{const[r,h,a]=ot(i,o),c=r.map((f,d)=>(f+=a*(h[d]-f),d===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${c})`}}function ie(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const h=$(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function ne(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i),(n,o)=>{n[t]=$(i,o)}}function re(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=se(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,h)=>{r.strokeDashoffset=$(i,h)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,a=>s.toPx(a,o,e));const r=["bgx","bgy"].filter(a=>a in n);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return oe(t,e,i,n);const h={};for(const a of r)h[a]=it(e,a);return nt(r,h,n)}function oe(t,e,i,n){const o=ae(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const l=n[d].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;a[d]=`${(N?-p:0)-(N?g:u)}px`,r[d==="bgy"?"height":"width"]+=p}const c=s.Dimensions.cover(o,r);for(const d of h){const l=d==="bgy"?"height":"width",g=c[l]-r[l];a[d]=`max(${it(e,d)},-${g}px) + ${a[d]}`}const f=nt(h,a,n);return(d,l)=>{f(d,l),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function it(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const h=$(i[r],o);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const rt={},C={};function ae(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[e])return C[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{C[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):C[e]=L(i)}function L(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[h,a]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),a=a?s.toFloat(a)/100:null,r===0?a===null?a=0:a&&i.push([h,0]):r===n-1&&(a===null?a=1:a!==1&&(i.push([h,a]),a=1)),i.push([h,a]),a===null)o++;else if(o){const c=i[r-o-1][1],f=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+f*(o-d+1);o=0}}return i}function ot(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function $(t,e){const[i,n,o]=ot(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const he=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,he);if(o)return o[1]}return e}function y(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function at(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function de(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ce={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[z({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),xt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=de(s.scrolledOver(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(n)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),o=this.slides[e],r=this.slides[n],{triggerShow:h,triggerShown:a,triggerHide:c,triggerHidden:f}=le(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(c(this.slides[l]),f(this.slides[l]));const d=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,o!==r&&c(o),h(r),d&&a(o),this._translate(o===r?1:i,o,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function le(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:h,triggerHidden:a};function o(c){s.hasClass(c,n)&&(h(c),a(c)),s.hasClass(c,e)||(s.trigger(c,"beforeitemshow",[t]),s.trigger(c,"itemshow",[t]))}function r(c){s.hasClass(c,i)&&s.trigger(c,"itemshown",[t])}function h(c){s.hasClass(c,e)||o(c),s.hasClass(c,i)&&r(c),s.hasClass(c,n)||(s.trigger(c,"beforeitemhide",[t]),s.trigger(c,"itemhide",[t]))}function a(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var fe={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1)},events:["resize"]}},ge={observe:pt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ht(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function V(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function ue(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function me(t,e,i,{center:n,easing:o,list:r}){const h=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,a=e?S(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:c,resolve:f}=ue();return{dir:i,show(d,l=0,g){const u=g?"linear":o;return d-=Math.round(d*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),V(this.getItemIn(),"itemin",{percent:l,duration:d,timing:u,dir:i}),t&&V(this.getItemIn(!0),"itemout",{percent:1-l,duration:d,timing:u,dir:i}),s.Transition.start(r,{transform:ht(-a*(s.isRtl?-1:1),"px")},d,u).then(f,s.noop),c},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(d,l=this.percent()){return await this.cancel(),this.show(d,l,!0)},translate(d){if(d===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-a+(l-l*d),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);d=t?s.clamp(d,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),ft=p===u,gt=p===N,we=ft||!gt&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));V(p,`itemtranslate${we?"in":"out"}`,{dir:i,percent:gt?1-d:ft?d:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(d=!1){let l=this.getActives(),g=ct(r,S(e||t,r,n));if(d){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return ct(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-pe(t,e):Math.min(n,dt(e))}function dt(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function pe(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function E(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ct(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=E(o,t),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}var lt={mixins:[wt,Mt,fe,ce,ge],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:me},computed:{finite({finite:t}){return t||xe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=dt(this.list),i=s.findIndex(this.slides,n=>{if(t>=e-.005)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(o+1,this.slides)]).width/2>n/2&&(i.push(o),e=n/2-r/2):e===0&&i.push(Math.min(o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:z({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.parallax||this._translate(1),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center||!this.length)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const f=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(f).width*h,r.add(f)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function xe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ve(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let f=0;for(const d of[-1,1]){let l=a/2,g=0;for(;l<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;l+=s.dimensions(u).width,c.add(u)}f=Math.max(f,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(l-o))}if(Math.trunc(f)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function ve(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",lt),lt}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function ut(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(h=>e.has(h)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function z(t){return P(s.observeResize,t,"resize")}function mt(t){return P(s.observeIntersection,t)}function pt(t={}){return mt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))i.unobserve(r)},...t})}function xt(t){return P((e,i)=>({disconnect:s.on(vt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function vt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var wt={connected(){s.addClass(this.$el,this.$options.id)}},It={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},bt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const _={passive:!1,capture:!0},B={passive:!0,capture:!0},$t="touchstart mousedown",O="touchmove mousemove",j="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:$t,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:O,el:({list:t})=>t,handler:s.noop,..._}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,O,this.move,_),s.on(document,j,this.end,B),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),h=U.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=U.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],f=this.index!==r,d=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(this.prevIndex=n,this.index=r,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,O,this.move,_),s.off(document,j,this.end,B),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),_)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function U(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let _t=1;function q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var kt={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=q(this,a)),r=a.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=q(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",!!this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const i=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||s.$(`<li ${i}><a href></a></li>`)}s.isEqual(t,this.navChildren)||s.html(this.nav,t)}}};const At="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ct="cubic-bezier(0.165, 0.84, 0.44, 1)";var Mt={mixins:[bt,yt,kt,It],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{async show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),f=this.slides[c];if(a===f){r();return}if(this.dir=Et(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&s.trigger(a,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(a,f,e),a&&s.trigger(a,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?At:Ct:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function Et(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}function Nt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Tt}=Array;function Pt(t){return typeof t=="function"}function D(t){return t!==null&&typeof t=="object"}function Ot(t){return D(t)&&t===t.window}function Dt(t){return X(t)===9}function G(t){return X(t)>=1}function X(t){return!Ot(t)&&D(t)&&t.nodeType}function F(t){return typeof t=="string"}function Ft(t){return t===void 0}function k(t){return t&&m(t)[0]}function m(t){return G(t)?[t]:Array.from(t||[]).filter(G)}function J(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function R(t,e,i){var n;if(D(e)){for(const o in e)R(t,o,e[o]);return}if(Ft(i))return(n=k(t))==null?void 0:n.getAttribute(e);for(const o of m(t))Pt(i)&&(i=i.call(o,R(o,e))),i===null?Rt(o,e):o.setAttribute(e,i)}function Rt(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Wt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ht(t){return m(t).some(e=>Wt.call(e))}function Lt(t){var e;return(e=k(t))==null?void 0:e.parentElement}function Vt(t,e){return m(t).filter(i=>K(i,e))}function K(t,e){return m(t).some(i=>i.matches(e))}function zt(t,e){t=k(t);const i=t?Tt(t.children):[];return e?Vt(i,e):i}function Y(t,e){return zt(Lt(t)).indexOf(t)}function Bt(t,e){return m(Gt(t,k(e),"querySelectorAll"))}const jt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ut=/(\([^)]*\)|[^,])+/g,qt=J(t=>{let e=!1;if(!t||!F(t))return{};const i=[];for(let n of t.match(Ut))n=n.trim().replace(jt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Qt=/(\([^)]*\)|\S)*/,Z=J(t=>{t=t.slice(1).trim();const[e]=t.match(Qt);return[e,t.slice(e.length+1)]});function Gt(t,e=document,i){const n=qt(t);if(!n.isContextSelector)return n.selector?W(e,i,n.selector):t;t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=Z(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=Z(r),a=a.previousElementSibling,a=K(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Y(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),W(a,i,r);t+=`${t?",":""}${Xt(a)} ${r}`}}return Dt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Xt(t){const e=[];for(;t.parentNode;){const i=R(t,"id");if(i){e.unshift(`#${Jt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Y(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Jt(t){return F(t)?CSS.escape(t):""}const Kt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Yt(t){const e=Kt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Zt(i.content.childNodes)}function Zt(t){return t.length>1?t:t[0]}function te(t,e){return ee(t)?m(Yt(t)):Bt(t,e)}function ee(t){return F(t)&&Nt(t.trim(),"<")}function se(t){return Ht(t)?Math.ceil(Math.max(0,...te("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const tt={x:A,y:A,rotate:A,scale:A,color:H,backgroundColor:H,borderColor:H,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ne,stroke:re,bgx:st,bgy:st},{keys:et}=Object;at(et(tt),"list"),at(et(tt),void 0);function A(t,e,i){let n=M(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var h;return M([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(i,h)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i,n=>ie(e,n)),(n,o)=>{const[r,h,a]=ot(i,o),c=r.map((f,d)=>(f+=a*(h[d]-f),d===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${c})`}}function ie(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const h=$(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function ne(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i),(n,o)=>{n[t]=$(i,o)}}function re(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=se(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,h)=>{r.strokeDashoffset=$(i,h)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,a=>s.toPx(a,o,e));const r=["bgx","bgy"].filter(a=>a in n);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return oe(t,e,i,n);const h={};for(const a of r)h[a]=it(e,a);return nt(r,h,n)}function oe(t,e,i,n){const o=ae(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const l=n[d].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;a[d]=`${(N?-p:0)-(N?g:u)}px`,r[d==="bgy"?"height":"width"]+=p}const c=s.Dimensions.cover(o,r);for(const d of h){const l=d==="bgy"?"height":"width",g=c[l]-r[l];a[d]=`max(${it(e,d)},-${g}px) + ${a[d]}`}const f=nt(h,a,n);return(d,l)=>{f(d,l),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function it(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const h=$(i[r],o);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const rt={},C={};function ae(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[e])return C[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{C[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):C[e]=L(i)}function L(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[h,a]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),a=a?s.toFloat(a)/100:null,r===0?a===null?a=0:a&&i.push([h,0]):r===n-1&&(a===null?a=1:a!==1&&(i.push([h,a]),a=1)),i.push([h,a]),a===null)o++;else if(o){const c=i[r-o-1][1],f=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+f*(o-d+1);o=0}}return i}function ot(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function $(t,e){const[i,n,o]=ot(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const he=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,he);if(o)return o[1]}return e}function y(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function at(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function de(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ce={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[z({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),xt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=de(s.scrolledOver(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(n)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),o=this.slides[e],r=this.slides[n],{triggerShow:h,triggerShown:a,triggerHide:c,triggerHidden:f}=le(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(c(this.slides[l]),f(this.slides[l]));const d=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,o!==r&&c(o),h(r),d&&a(o),this._translate(o===r?1:i,o,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function le(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:h,triggerHidden:a};function o(c){s.hasClass(c,n)&&(h(c),a(c)),s.hasClass(c,e)||(s.trigger(c,"beforeitemshow",[t]),s.trigger(c,"itemshow",[t]))}function r(c){s.hasClass(c,i)&&s.trigger(c,"itemshown",[t])}function h(c){s.hasClass(c,e)||o(c),s.hasClass(c,i)&&r(c),s.hasClass(c,n)||(s.trigger(c,"beforeitemhide",[t]),s.trigger(c,"itemhide",[t]))}function a(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var fe={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1)},events:["resize"]}},ge={observe:pt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ht(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function V(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function ue(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function me(t,e,i,{center:n,easing:o,list:r}){const h=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,a=e?S(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:c,resolve:f}=ue();return{dir:i,show(d,l=0,g){const u=g?"linear":o;return d-=Math.round(d*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),V(this.getItemIn(),"itemin",{percent:l,duration:d,timing:u,dir:i}),t&&V(this.getItemIn(!0),"itemout",{percent:1-l,duration:d,timing:u,dir:i}),s.Transition.start(r,{transform:ht(-a*(s.isRtl?-1:1),"px")},d,u).then(f,s.noop),c},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(d,l=this.percent()){return await this.cancel(),this.show(d,l,!0)},translate(d){if(d===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-a+(l-l*d),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);d=t?s.clamp(d,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),ft=p===u,gt=p===N,we=ft||!gt&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));V(p,`itemtranslate${we?"in":"out"}`,{dir:i,percent:gt?1-d:ft?d:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(d=!1){let l=this.getActives(),g=ct(r,S(e||t,r,n));if(d){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return ct(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-pe(t,e):Math.min(n,dt(e))}function dt(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function pe(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function E(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ct(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=E(o,t),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}var lt={mixins:[wt,Mt,fe,ce,ge],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:me},computed:{finite({finite:t}){return t||xe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=dt(this.list),i=s.findIndex(this.slides,n=>{if(t>=e-.005)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(o+1,this.slides)]).width/2>n/2&&(i.push(o),e=n/2-r/2):e===0&&i.push(Math.min(o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:z({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.parallax||this._translate(1),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center||!this.length)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const f=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(f).width*h,r.add(f)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function xe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ve(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let f=0;for(const d of[-1,1]){let l=a/2,g=0;for(;l<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;l+=s.dimensions(u).width,c.add(u)}f=Math.max(f,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(l-o))}if(Math.trunc(f)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function ve(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",lt),lt}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlideshow_parallax=$(c.UIkit.util))})(this,function(c){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const i in e)O(n,i,e[i]);return}if(en(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const i of d(n))U(t)&&(t=t.call(i,O(i,e))),t===null?rn(i,e):i.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}const on=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function cn(n){return d(n).some(e=>on.call(e))}function sn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function an(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function fn(n,e){n=w(n);const t=n?k(n.children):[];return e?an(t,e):t}function A(n,e){return fn(sn(n)).indexOf(n)}function un(n,e){return d(mn(n,w(e),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,hn=W(n=>{let e=!1;if(!n||!M(n))return{};const t=[];for(let r of n.match(ln))r=r.trim().replace(dn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),gn=/(\([^)]*\)|\S)*/,D=W(n=>{n=n.slice(1).trim();const[e]=n.match(gn);return[e,n.slice(e.length+1)]});function mn(n,e=document,t){const r=hn(n);if(!r.isContextSelector)return r.selector?P(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=D(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=D(o),s=s.previousElementSibling,s=_(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),P(s,t,o);n+=`${n?",":""}${$n(s)} ${o}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function $n(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${bn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const pn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=pn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),wn(t.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,e){return vn(n)?d(xn(n)):un(n,e)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return cn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Mn,stroke:On,bgx:R,bgy:R},{keys:H}=Object;var Fn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return F([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${b(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Cn(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function Cn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=b(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Mn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=b(t,i)}}function On(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=Sn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=b(t,a)}):c.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return Pn(n,e,t,r);const a={};for(const s of o)a[s]=B(e,s);return V(o,a,r)}function Pn(n,e,t,r){const i=jn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([En])=>En),x=Math.min(...u),E=Math.max(...u),K=u.indexOf(x)<u.indexOf(E),X=E-x;s[f]=`${(K?-X:0)-(K?x:E)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",x=l[u]-o[u];s[f]=`max(${B(e,f)},-${x}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function B(n,e){return p(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=b(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const z={},S={};function jn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!z[e])?(c.once(t,"error load",()=>{S[e]=I(t),c.trigger(n,c.createEvent("load",!1))}),z[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function b(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const In=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,In);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[Fn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(J(n,i,e)),a=this.getCss(G(n)?.5:i>0?1:0);c.fastdom.write(()=>{c.css(this.$el,o),c.Transition.start(this.$el,a,t,r).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,r))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(c,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlideshow_parallax=$(c.UIkit.util))})(this,function(c){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&c.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const i in e)O(n,i,e[i]);return}if(en(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const i of d(n))U(t)&&(t=t.call(i,O(i,e))),t===null?rn(i,e):i.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}const on=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function cn(n){return d(n).some(e=>on.call(e))}function sn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function an(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function fn(n,e){n=w(n);const t=n?k(n.children):[];return e?an(t,e):t}function A(n,e){return fn(sn(n)).indexOf(n)}function un(n,e){return d(mn(n,w(e),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,hn=W(n=>{let e=!1;if(!n||!M(n))return{};const t=[];for(let r of n.match(ln))r=r.trim().replace(dn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),gn=/(\([^)]*\)|\S)*/,D=W(n=>{n=n.slice(1).trim();const[e]=n.match(gn);return[e,n.slice(e.length+1)]});function mn(n,e=document,t){const r=hn(n);if(!r.isContextSelector)return r.selector?P(e,t,r.selector):n;n="";const i=r.selectors.length===1;for(let o of r.selectors){let a,s=e;if(o[0]==="!"&&([a,o]=D(o),s=e.parentElement.closest(a),!o&&i)||s&&o[0]==="-"&&([a,o]=D(o),s=s.previousElementSibling,s=_(s,a)?s:null,!o&&i))return s;if(s){if(i)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${A(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),P(s,t,o);n+=`${n?",":""}${$n(s)} ${o}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function $n(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${bn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const pn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=pn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),wn(t.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,e){return vn(n)?d(xn(n)):un(n,e)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return cn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Mn,stroke:On,bgx:R,bgy:R},{keys:H}=Object;var Fn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!c.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).map(c.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${c.ucfirst(n)}`,i=o=>c.toFloat(c.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var a;return F([o])?c.toPx(o,"width",e,!0)/e[`offset${(a=o.endsWith)!=null&&a.call(o,"vh")?"Height":"Width"}`]:c.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,a)=>{o.transform=`${o.transform||""} ${n}(${b(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Cn(e,r)),(r,i)=>{const[o,a,s]=L(t,i),l=o.map((h,f)=>(h+=s*(a[f]-h),f===3?c.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${l})`}}function Cn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const a=b(t,o);i.filter=`${i.filter||""} ${n}(${a+r})`}}function Mn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=b(t,i)}}function On(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=Sn(e);return t=m(t.reverse(),o=>(o=c.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(c.css(e,"strokeDasharray",i),(o,a)=>{o.strokeDashoffset=b(t,a)}):c.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,s=>c.toPx(s,i,e));const o=["bgx","bgy"].filter(s=>s in r);if(o.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return Pn(n,e,t,r);const a={};for(const s of o)a[s]=B(e,s);return V(o,a,r)}function Pn(n,e,t,r){const i=jn(e);if(!i.width)return c.noop;const o={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),s={};for(const f of a){const u=r[f].map(([En])=>En),x=Math.min(...u),E=Math.max(...u),K=u.indexOf(x)<u.indexOf(E),X=E-x;s[f]=`${(K?-X:0)-(K?x:E)}px`,o[f==="bgy"?"height":"width"]+=X}const l=c.Dimensions.cover(i,o);for(const f of a){const u=f==="bgy"?"height":"width",x=l[u]-o[u];s[f]=`max(${B(e,f)},-${x}px) + ${s[f]}`}const h=V(a,s,r);return(f,u)=>{h(f,u),f.backgroundSize=`${l.width}px ${l.height}px`,f.backgroundRepeat="no-repeat"}}function B(n,e){return p(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,i){for(const o of n){const a=b(t[o],i);r[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${a}px)`}}}const z={},S={};function jn(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!z[e])?(c.once(t,"error load",()=>{S[e]=I(t),c.trigger(n,c.createEvent("load",!1))}),z[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=c.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[a,s]=c.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(a=e(a),s=s?c.toFloat(s)/100:null,o===0?s===null?s=0:s&&t.push([a,0]):o===r-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)i++;else if(i){const l=t[o-i-1][1],h=(s-l)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=l+h*(i-f+1);i=0}}return t}function L(n,e){const t=c.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function b(n,e){const[t,r,i]=L(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const In=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,In);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=c.css(c.css(n,e,t),e);return n.style[e]=r,i}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[Fn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(J(n,i,e)),a=this.getCss(G(n)?.5:i>0?1:0);c.fastdom.write(()=>{c.css(this.$el,o),c.Transition.start(this.$el,a,t,r).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,r))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(i,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],w):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=w(i.UIkit.util))})(this,function(i){"use strict";var w={connected(){i.addClass(this.$el,this.$options.id)}};function ht(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&dt(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function dt(t,e){for(const{read:n,write:s,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function R(t){return E(i.observeResize,t,"resize")}function ct(t){return E(i.observeIntersection,t)}function lt(t={}){return ct({handler:function(e,n){const{targets:s=this.$el,preload:a=5}=t;for(const r of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',r).slice(0,a-1).forEach(h=>i.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(r)},...t})}function ft(t){return E((e,n)=>({disconnect:i.on(ut(e),"scroll",n,{passive:!0})}),t,"scroll")}function E(t,e,n){return{observe:t,handler(){ht(this,n)},...e}}function ut(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}function gt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{from:mt}=Array;function pt(t){return typeof t=="function"}function T(t){return t!==null&&typeof t=="object"}function vt(t){return T(t)&&t===t.window}function xt(t){return W(t)===9}function L(t){return W(t)>=1}function W(t){return!vt(t)&&T(t)&&t.nodeType}function P(t){return typeof t=="string"}function wt(t){return t===void 0}function k(t){return t&&m(t)[0]}function m(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function U(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function H(t,e,n){var s;if(T(e)){for(const a in e)H(t,a,e[a]);return}if(wt(n))return(s=k(t))==null?void 0:s.getAttribute(e);for(const a of m(t))pt(n)&&(n=n.call(a,H(a,e))),n===null?It(a,e):a.setAttribute(e,n)}function It(t,e){m(t).forEach(n=>n.removeAttribute(e))}const bt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function yt(t){return m(t).some(e=>bt.call(e))}function $t(t){var e;return(e=k(t))==null?void 0:e.parentElement}function St(t,e){return m(t).filter(n=>j(n,e))}function j(t,e){return m(t).some(n=>n.matches(e))}function kt(t,e){t=k(t);const n=t?mt(t.children):[];return e?St(n,e):n}function B(t,e){return kt($t(t)).indexOf(t)}function _t(t,e){return m(Et(t,k(e),"querySelectorAll"))}const At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=/(\([^)]*\)|[^,])+/g,zt=U(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(Ct))s=s.trim().replace(At,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),Nt=/(\([^)]*\)|\S)*/,q=U(t=>{t=t.slice(1).trim();const[e]=t.match(Nt);return[e,t.slice(e.length+1)]});function Et(t,e=document,n){const s=zt(t);if(!s.isContextSelector)return s.selector?M(e,n,s.selector):t;t="";const a=s.selectors.length===1;for(let r of s.selectors){let h,o=e;if(r[0]==="!"&&([h,r]=q(r),o=e.parentElement.closest(h),!r&&a)||o&&r[0]==="-"&&([h,r]=q(r),o=o.previousElementSibling,o=j(o,h)?o:null,!r&&a))return o;if(o){if(a)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${B(o)+1}) ${r}`,o=o.parentElement):r[0]===">"&&(r=`:scope ${r}`),M(o,n,r);t+=`${t?",":""}${Tt(o)} ${r}`}}return xt(e)||(e=e.ownerDocument),M(e,n,t)}function M(t,e,n){try{return t[e](n)}catch{return null}}function Tt(t){const e=[];for(;t.parentNode;){const n=H(t,"id");if(n){e.unshift(`#${Pt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${B(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Pt(t){return P(t)?CSS.escape(t):""}const Ht=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Mt(t){const e=Ht.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Ot(n.content.childNodes)}function Ot(t){return t.length>1?t:t[0]}function Dt(t,e){return Ft(t)?m(Mt(t)):_t(t,e)}function Ft(t){return P(t)&>(t.trim(),"<")}function Rt(t){return yt(t)?Math.ceil(Math.max(0,...Dt("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:_,y:_,rotate:_,scale:_,color:O,backgroundColor:O,borderColor:O,blur:p,hue:p,fopacity:p,grayscale:p,invert:p,saturate:p,sepia:p,opacity:Wt,stroke:Ut,bgx:G,bgy:G},{keys:Q}=Object;Z(Q(V),"list"),Z(Q(V),void 0);function _(t,e,n){let s=C(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,a=r=>i.toFloat(i.toFloat(r).toFixed(s==="px"?0:6))):t==="scale"&&(s="",a=r=>{var h;return C([r])?i.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=x(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${I(n,h)}${s})`}}function O(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n,s=>Lt(e,s)),(s,a)=>{const[r,h,o]=Y(n,a),d=r.map((u,l)=>(u+=o*(h[l]-u),l===3?i.toFloat(u):parseInt(u,10))).join(",");s[t]=`rgba(${d})`}}function Lt(t,e){return b(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function p(t,e,n){n.length===1&&n.unshift(0);const s=C(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=x(n),(a,r)=>{const h=I(n,r);a.filter=`${a.filter||""} ${t}(${h+s})`}}function Wt(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n),(s,a)=>{s[t]=I(n,a)}}function Ut(t,e,n){n.length===1&&n.unshift(0);const s=C(n),a=Rt(e);return n=x(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,h)=>{r.strokeDashoffset=I(n,h)}):i.noop}function G(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=x(n,o=>i.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in s);if(r.length===2&&t==="bgx")return i.noop;if(b(e,"backgroundSize","")==="cover")return jt(t,e,n,s);const h={};for(const o of r)h[o]=X(e,o);return J(r,h,s)}function jt(t,e,n,s){const a=Bt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(l=>l in s),o={};for(const l of h){const c=s[l].map(([ue])=>ue),g=Math.min(...c),S=Math.max(...c),v=c.indexOf(g)<c.indexOf(S),ot=S-g;o[l]=`${(v?-ot:0)-(v?g:S)}px`,r[l==="bgy"?"height":"width"]+=ot}const d=i.Dimensions.cover(a,r);for(const l of h){const c=l==="bgy"?"height":"width",g=d[c]-r[c];o[l]=`max(${X(e,l)},-${g}px) + ${o[l]}`}const u=J(h,o,s);return(l,c)=>{u(l,c),l.backgroundSize=`${d.width}px ${d.height}px`,l.backgroundRepeat="no-repeat"}}function X(t,e){return b(t,`background-position-${e.slice(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const h=I(n[r],a);s[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const K={},A={};function Bt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{A[e]=D(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,D(n)):A[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function x(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[h,o]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?i.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],u=(o-d)/(a+1);for(let l=a;l>0;l--)n[r-l][1]=d+u*(a-l+1);a=0}}return n}function Y(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function I(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const qt=/^-?\d+(?:\.\d+)?(\S+)?/;function C(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,qt);if(a)return a[1]}return e}function b(t,e,n){const s=t.style[e],a=i.css(i.css(t,e,n),e);return t.style[e]=s,a}function Z(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Vt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Qt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[R({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ft({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Vt(i.scrolledOver(t,e,n),this.parallaxEasing);return{parallax:this.getIndexAt(s)}},write({parallax:t}){const[e,n]=t,s=this.getValidIndex(e+Math.ceil(n)),a=this.slides[e],r=this.slides[s],{triggerShow:h,triggerShown:o,triggerHide:d,triggerHidden:u}=Gt(this);if(~this.prevIndex)for(const c of new Set([this.index,this.prevIndex]))i.includes([s,e],c)||(d(this.slides[c]),u(this.slides[c]));const l=this.prevIndex!==e||this.index!==s;this.dir=1,this.prevIndex=e,this.index=s,a!==r&&d(a),h(r),l&&o(a),this._translate(a===r?1:n,a,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Gt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:h,triggerHidden:o};function a(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function r(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||a(d),i.hasClass(d,n)&&r(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Xt={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1)},events:["resize"]}},tt={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return y(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function y(t){return Math.abs(new DOMMatrix(i.css(t,"transform")).m41/t.offsetWidth)}function f(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function Jt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:h,show:o=i.noop}=s,d=o(n),{promise:u,resolve:l}=Kt();return{dir:n,show(c,g=0,S){const v=S?"linear":a;return c-=Math.round(c*i.clamp(g,-1,1)),this.translate(g),z(e,"itemin",{percent:g,duration:c,timing:v,dir:n}),z(t,"itemout",{percent:1-g,duration:c,timing:v,dir:n}),Promise.all([i.Transition.start(e,d[1],c,v),i.Transition.start(t,d[0],c,v)]).then(()=>{this.reset(),l()},i.noop),u},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,g=this.percent()){return await this.cancel(),this.show(c,g,!0)},translate(c){this.reset();const g=h(c,n);i.css(e,g[1]),i.css(t,g[0]),z(e,"itemtranslatein",{percent:c,dir:n}),z(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function z(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}function Kt(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var Yt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Zt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},et={passive:!0,capture:!0},te="touchstart mousedown",F="touchmove mousemove",nt="touchend touchcancel mouseup click input scroll";var ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:te,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ne(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el:({list:t})=>t,handler:i.noop,...N}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,i.on(document,F,this.move,N),i.on(document,nt,this.end,et),i.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,a=Math.abs(e),r=this.getIndex(s+this.dir),h=it.call(this,s,r);for(;r!==s&&a>h;)this.drag-=h*this.dir,s=r,a-=h,r=this.getIndex(s+this.dir),h=it.call(this,s,r);this.percent=a/h;const o=n[s],d=n[r],u=this.index!==r,l=s===r;let c;for(const g of[this.index,this.prevIndex])i.includes([r,s],g)||(i.trigger(n[g],"itemhidden",[this]),l&&(c=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||c)&&i.trigger(n[this.index],"itemshown",[this]),u&&(this.prevIndex=s,this.index=r,l||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!l&&d)},end(){if(i.off(document,F,this.move,N),i.off(document,nt,this.end,et),this.dragging)if(setTimeout(i.on(this.list,"click",t=>t.preventDefault(),N)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(i.isRtl?this.dir*(i.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(i.trigger(this.slides[this.prevIndex],"itemhidden",[this]),i.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function it(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ne(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let ie=1;function st(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ie++}`}const $={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var se={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let a,r=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=st(this,o)),r=o.id),a=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=st(this,this.list)),r=this.list.id),a=this.t(n);i.attr(s,{"aria-controls":r,"aria-label":i.attr(s,"aria-label")||a})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){i.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let a=n===$.HOME?0:n===$.END?"last":n===$.LEFT?"previous":n===$.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const r=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,r),i.toggleClass(s,"uk-disabled",!!this.parallax),i.attr(s,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const n=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(s=>s.matches(`[${n}]`))||i.$(`<li ${n}><a href></a></li>`)}i.isEqual(t,this.navChildren)||i.html(this.nav,t)}}};const re="cubic-bezier(0.25, 0.46, 0.45, 0.94)",ae="cubic-bezier(0.165, 0.84, 0.44, 1)";var oe={mixins:[Zt,ee,se,Yt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>de(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{async show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,a=e?0:s.length,r=()=>{s.splice(a,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),u=this.slides[d];if(o===u){r();return}if(this.dir=he(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}o&&i.trigger(o,"itemhide",[this]),i.trigger(u,"itemshow",[this]),await this._show(o,u,e),o&&i.trigger(o,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,s.length&&requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?re:ae:this.easing,...this.transitionOptions}),!n&&!t){this._translate(1);return}const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function he(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function de(t){return .5*t+300}var ce={mixins:[oe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Jt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:R(),events:{itemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},le={observe:lt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},fe={...tt,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:rt(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:rt(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:f(30),zIndex:-1},{transform:f(),zIndex:0}]:[{transform:f(-100),zIndex:0},{transform:f(),zIndex:-1}]},percent(t,e,n){return n<0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(30*t),zIndex:-1},{transform:f(-100*(1-t)),zIndex:0}]:[{transform:f(-t*100),zIndex:0},{transform:f(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:f(100),zIndex:0},{transform:f(),zIndex:-1}]:[{transform:f(-30),zIndex:-1},{transform:f(),zIndex:0}]},percent(t,e,n){return n>0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(t*100),zIndex:0},{transform:f(-30*(1-t)),zIndex:-1}]:[{transform:f(-30*t),zIndex:-1},{transform:f(100*(1-t)),zIndex:0}]}}};function rt(t){return`scale3d(${t}, ${t}, 1)`}var at={mixins:[w,ce,Xt,Qt,le],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:fe},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,width:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",at),at}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(i,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],w):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=w(i.UIkit.util))})(this,function(i){"use strict";var w={connected(){i.addClass(this.$el,this.$options.id)}};function ht(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&dt(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function dt(t,e){for(const{read:n,write:s,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function R(t){return E(i.observeResize,t,"resize")}function ct(t){return E(i.observeIntersection,t)}function lt(t={}){return ct({handler:function(e,n){const{targets:s=this.$el,preload:a=5}=t;for(const r of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',r).slice(0,a-1).forEach(h=>i.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(r)},...t})}function ft(t){return E((e,n)=>({disconnect:i.on(ut(e),"scroll",n,{passive:!0})}),t,"scroll")}function E(t,e,n){return{observe:t,handler(){ht(this,n)},...e}}function ut(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}function gt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{from:mt}=Array;function pt(t){return typeof t=="function"}function T(t){return t!==null&&typeof t=="object"}function vt(t){return T(t)&&t===t.window}function xt(t){return W(t)===9}function L(t){return W(t)>=1}function W(t){return!vt(t)&&T(t)&&t.nodeType}function P(t){return typeof t=="string"}function wt(t){return t===void 0}function k(t){return t&&m(t)[0]}function m(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function U(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function H(t,e,n){var s;if(T(e)){for(const a in e)H(t,a,e[a]);return}if(wt(n))return(s=k(t))==null?void 0:s.getAttribute(e);for(const a of m(t))pt(n)&&(n=n.call(a,H(a,e))),n===null?It(a,e):a.setAttribute(e,n)}function It(t,e){m(t).forEach(n=>n.removeAttribute(e))}const bt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function yt(t){return m(t).some(e=>bt.call(e))}function $t(t){var e;return(e=k(t))==null?void 0:e.parentElement}function St(t,e){return m(t).filter(n=>j(n,e))}function j(t,e){return m(t).some(n=>n.matches(e))}function kt(t,e){t=k(t);const n=t?mt(t.children):[];return e?St(n,e):n}function B(t,e){return kt($t(t)).indexOf(t)}function _t(t,e){return m(Et(t,k(e),"querySelectorAll"))}const At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=/(\([^)]*\)|[^,])+/g,zt=U(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(Ct))s=s.trim().replace(At,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),Nt=/(\([^)]*\)|\S)*/,q=U(t=>{t=t.slice(1).trim();const[e]=t.match(Nt);return[e,t.slice(e.length+1)]});function Et(t,e=document,n){const s=zt(t);if(!s.isContextSelector)return s.selector?M(e,n,s.selector):t;t="";const a=s.selectors.length===1;for(let r of s.selectors){let h,o=e;if(r[0]==="!"&&([h,r]=q(r),o=e.parentElement.closest(h),!r&&a)||o&&r[0]==="-"&&([h,r]=q(r),o=o.previousElementSibling,o=j(o,h)?o:null,!r&&a))return o;if(o){if(a)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${B(o)+1}) ${r}`,o=o.parentElement):r[0]===">"&&(r=`:scope ${r}`),M(o,n,r);t+=`${t?",":""}${Tt(o)} ${r}`}}return xt(e)||(e=e.ownerDocument),M(e,n,t)}function M(t,e,n){try{return t[e](n)}catch{return null}}function Tt(t){const e=[];for(;t.parentNode;){const n=H(t,"id");if(n){e.unshift(`#${Pt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${B(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Pt(t){return P(t)?CSS.escape(t):""}const Ht=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Mt(t){const e=Ht.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Ot(n.content.childNodes)}function Ot(t){return t.length>1?t:t[0]}function Dt(t,e){return Ft(t)?m(Mt(t)):_t(t,e)}function Ft(t){return P(t)&>(t.trim(),"<")}function Rt(t){return yt(t)?Math.ceil(Math.max(0,...Dt("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:_,y:_,rotate:_,scale:_,color:O,backgroundColor:O,borderColor:O,blur:p,hue:p,fopacity:p,grayscale:p,invert:p,saturate:p,sepia:p,opacity:Wt,stroke:Ut,bgx:G,bgy:G},{keys:Q}=Object;Z(Q(V),"list"),Z(Q(V),void 0);function _(t,e,n){let s=C(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,a=r=>i.toFloat(i.toFloat(r).toFixed(s==="px"?0:6))):t==="scale"&&(s="",a=r=>{var h;return C([r])?i.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=x(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${I(n,h)}${s})`}}function O(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n,s=>Lt(e,s)),(s,a)=>{const[r,h,o]=Y(n,a),d=r.map((u,l)=>(u+=o*(h[l]-u),l===3?i.toFloat(u):parseInt(u,10))).join(",");s[t]=`rgba(${d})`}}function Lt(t,e){return b(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function p(t,e,n){n.length===1&&n.unshift(0);const s=C(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=x(n),(a,r)=>{const h=I(n,r);a.filter=`${a.filter||""} ${t}(${h+s})`}}function Wt(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n),(s,a)=>{s[t]=I(n,a)}}function Ut(t,e,n){n.length===1&&n.unshift(0);const s=C(n),a=Rt(e);return n=x(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,h)=>{r.strokeDashoffset=I(n,h)}):i.noop}function G(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=x(n,o=>i.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in s);if(r.length===2&&t==="bgx")return i.noop;if(b(e,"backgroundSize","")==="cover")return jt(t,e,n,s);const h={};for(const o of r)h[o]=X(e,o);return J(r,h,s)}function jt(t,e,n,s){const a=Bt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(l=>l in s),o={};for(const l of h){const c=s[l].map(([ue])=>ue),g=Math.min(...c),S=Math.max(...c),v=c.indexOf(g)<c.indexOf(S),ot=S-g;o[l]=`${(v?-ot:0)-(v?g:S)}px`,r[l==="bgy"?"height":"width"]+=ot}const d=i.Dimensions.cover(a,r);for(const l of h){const c=l==="bgy"?"height":"width",g=d[c]-r[c];o[l]=`max(${X(e,l)},-${g}px) + ${o[l]}`}const u=J(h,o,s);return(l,c)=>{u(l,c),l.backgroundSize=`${d.width}px ${d.height}px`,l.backgroundRepeat="no-repeat"}}function X(t,e){return b(t,`background-position-${e.slice(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const h=I(n[r],a);s[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const K={},A={};function Bt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{A[e]=D(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,D(n)):A[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function x(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[h,o]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?i.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],u=(o-d)/(a+1);for(let l=a;l>0;l--)n[r-l][1]=d+u*(a-l+1);a=0}}return n}function Y(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function I(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const qt=/^-?\d+(?:\.\d+)?(\S+)?/;function C(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,qt);if(a)return a[1]}return e}function b(t,e,n){const s=t.style[e],a=i.css(i.css(t,e,n),e);return t.style[e]=s,a}function Z(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Vt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Qt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[R({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ft({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Vt(i.scrolledOver(t,e,n),this.parallaxEasing);return{parallax:this.getIndexAt(s)}},write({parallax:t}){const[e,n]=t,s=this.getValidIndex(e+Math.ceil(n)),a=this.slides[e],r=this.slides[s],{triggerShow:h,triggerShown:o,triggerHide:d,triggerHidden:u}=Gt(this);if(~this.prevIndex)for(const c of new Set([this.index,this.prevIndex]))i.includes([s,e],c)||(d(this.slides[c]),u(this.slides[c]));const l=this.prevIndex!==e||this.index!==s;this.dir=1,this.prevIndex=e,this.index=s,a!==r&&d(a),h(r),l&&o(a),this._translate(a===r?1:n,a,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Gt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:h,triggerHidden:o};function a(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function r(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||a(d),i.hasClass(d,n)&&r(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Xt={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1)},events:["resize"]}},tt={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return y(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function y(t){return Math.abs(new DOMMatrix(i.css(t,"transform")).m41/t.offsetWidth)}function f(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function Jt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:h,show:o=i.noop}=s,d=o(n),{promise:u,resolve:l}=Kt();return{dir:n,show(c,g=0,S){const v=S?"linear":a;return c-=Math.round(c*i.clamp(g,-1,1)),this.translate(g),z(e,"itemin",{percent:g,duration:c,timing:v,dir:n}),z(t,"itemout",{percent:1-g,duration:c,timing:v,dir:n}),Promise.all([i.Transition.start(e,d[1],c,v),i.Transition.start(t,d[0],c,v)]).then(()=>{this.reset(),l()},i.noop),u},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,g=this.percent()){return await this.cancel(),this.show(c,g,!0)},translate(c){this.reset();const g=h(c,n);i.css(e,g[1]),i.css(t,g[0]),z(e,"itemtranslatein",{percent:c,dir:n}),z(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function z(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}function Kt(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var Yt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Zt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},et={passive:!0,capture:!0},te="touchstart mousedown",F="touchmove mousemove",nt="touchend touchcancel mouseup click input scroll";var ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:te,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ne(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el:({list:t})=>t,handler:i.noop,...N}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,i.on(document,F,this.move,N),i.on(document,nt,this.end,et),i.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,a=Math.abs(e),r=this.getIndex(s+this.dir),h=it.call(this,s,r);for(;r!==s&&a>h;)this.drag-=h*this.dir,s=r,a-=h,r=this.getIndex(s+this.dir),h=it.call(this,s,r);this.percent=a/h;const o=n[s],d=n[r],u=this.index!==r,l=s===r;let c;for(const g of[this.index,this.prevIndex])i.includes([r,s],g)||(i.trigger(n[g],"itemhidden",[this]),l&&(c=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||c)&&i.trigger(n[this.index],"itemshown",[this]),u&&(this.prevIndex=s,this.index=r,l||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!l&&d)},end(){if(i.off(document,F,this.move,N),i.off(document,nt,this.end,et),this.dragging)if(setTimeout(i.on(this.list,"click",t=>t.preventDefault(),N)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(i.isRtl?this.dir*(i.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(i.trigger(this.slides[this.prevIndex],"itemhidden",[this]),i.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function it(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ne(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let ie=1;function st(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ie++}`}const $={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var se={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let a,r=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=st(this,o)),r=o.id),a=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=st(this,this.list)),r=this.list.id),a=this.t(n);i.attr(s,{"aria-controls":r,"aria-label":i.attr(s,"aria-label")||a})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){i.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let a=n===$.HOME?0:n===$.END?"last":n===$.LEFT?"previous":n===$.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const r=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,r),i.toggleClass(s,"uk-disabled",!!this.parallax),i.attr(s,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const n=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(s=>s.matches(`[${n}]`))||i.$(`<li ${n}><a href></a></li>`)}i.isEqual(t,this.navChildren)||i.html(this.nav,t)}}};const re="cubic-bezier(0.25, 0.46, 0.45, 0.94)",ae="cubic-bezier(0.165, 0.84, 0.44, 1)";var oe={mixins:[Zt,ee,se,Yt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>de(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{async show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,a=e?0:s.length,r=()=>{s.splice(a,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),u=this.slides[d];if(o===u){r();return}if(this.dir=he(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}o&&i.trigger(o,"itemhide",[this]),i.trigger(u,"itemshow",[this]),await this._show(o,u,e),o&&i.trigger(o,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,s.length&&requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?re:ae:this.easing,...this.transitionOptions}),!n&&!t){this._translate(1);return}const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function he(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function de(t){return .5*t+300}var ce={mixins:[oe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Jt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:R(),events:{itemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},le={observe:lt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},fe={...tt,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:rt(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:rt(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:f(30),zIndex:-1},{transform:f(),zIndex:0}]:[{transform:f(-100),zIndex:0},{transform:f(),zIndex:-1}]},percent(t,e,n){return n<0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(30*t),zIndex:-1},{transform:f(-100*(1-t)),zIndex:0}]:[{transform:f(-t*100),zIndex:0},{transform:f(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:f(100),zIndex:0},{transform:f(),zIndex:-1}]:[{transform:f(-30),zIndex:-1},{transform:f(),zIndex:0}]},percent(t,e,n){return n>0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(t*100),zIndex:0},{transform:f(-30*(1-t)),zIndex:-1}]:[{transform:f(-30*t),zIndex:-1},{transform:f(100*(1-t)),zIndex:0}]}}};function rt(t){return`scale3d(${t}, ${t}, 1)`}var at={mixins:[w,ce,Xt,Qt,le],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:fe},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,width:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",at),at}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -79,2 +79,12 @@ (function (global, factory) { | ||
resize({ | ||
handler(mutations) { | ||
for (const { | ||
borderBoxSize: [{ inlineSize, blockSize }] | ||
} of mutations) { | ||
if (inlineSize || blockSize) { | ||
this.$emit("resize"); | ||
return; | ||
} | ||
} | ||
}, | ||
target: ({ $el }) => [$el, ...uikitUtil.children($el)] | ||
@@ -81,0 +91,0 @@ }) |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&z(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function z(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function q(o){return T(e.observeResize,o,"resize")}function P(o){return T(e.observeMutation,o)}function T(o,s,n){return{observe:o,handler(){b(this,n)},...s}}P({options:{childList:!0}}),P({options:{attributes:!0,attributeFilter:["style"]}}),q({target:({$el:o})=>[o,...e.children(o)]});function A(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const m=v(r[d],n);if(c.left>=m.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function S(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=p=>()=>c===u(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,w),await Promise.all(x(s).map((p,l)=>new Promise(g=>setTimeout(()=>e.Transition.start(p,r,n/2,"ease").then(g),l*t)))),e.removeClass(s,w)}),m=h(async()=>{const p=e.height(s);e.addClass(s,y),o(),e.css(e.children(s),{opacity:0}),e.height(s,p),await I(),e.height(s,"");const l=e.children(s),g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const f=x(s);e.css(l,r);const i=f.map(async(Q,X)=>{await I(X*t),await e.Transition.start(Q,a,n/2,"ease")});p!==g&&i.push(e.Transition.start(s,{height:g},n/2+f.length*t,"ease")),await Promise.all(i).then(()=>{e.removeClass(s,y),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?C(s).then(m):e.hasClass(s,y)?C(s).then(d).then(m):d().then(m)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function C(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function x(o){return A(e.children(o)).flat().filter(e.isVisible)}function I(o){return new Promise(s=>setTimeout(s,o))}async function H(o,s,n){await _();let t=e.children(s);const c=t.map(f=>E(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[m,p]=L(s,t,c),l=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,i)=>p[i]&&e.css(f,p[i])),e.css(s,a),e.trigger(s,"scroll"),await _();const g=t.map((f,i)=>e.parent(f)===s&&e.Transition.start(f,m[i],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,i)=>{e.attr(f,l[i]),e.parent(f)===s&&e.css(f,"display",m[i].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),M(s,a)}}function E(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...D(o)}:!1}function L(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?D(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||E(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function M(o,s){for(const n in s)e.css(o,n,"")}function D(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function _(){return new Promise(o=>requestAnimationFrame(o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?S:n==="delayed-fade"?(...c)=>S(...c,40):n?H:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},R={connected(){e.addClass(this.$el,this.$options.id)}},F={mixins:[R,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const m=this.getSortable(a),p=G(r.target,d,a,s,n,r===m&&o.moved!==d);p!==!1&&(p&&a===p||(r!==m?(m.remove(a),o.moved=d):delete o.moved,r.insert(a,p),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=O(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move:K(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;B();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let $;function j(o){let s=Date.now();$=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:m,height:p}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(m>t&&m-35<t)r+=c;else return;if(r>0&&r<h-p)return a.scrollTop=r,!0})},15)}function B(){clearInterval($)}function O(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function W(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function G(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return J(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=N([r.top,r.bottom],[h.top,h.bottom]),[m,p,l,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[p]<r[p]?r[p]-h[p]:0;return h[l]<r[l]?f&&m<r[l]+f?!1:s.nextElementSibling:f&&m>r[g]-f?!1:s}function J(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const m=e.dimensions(d);return!N([h.left,h.right],[m.left,m.right])})});return n&&e.remove(s),c}function N(o,s){return o[1]>s[0]&&s[1]>o[0]}function K(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",F),F}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&N(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function N(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function q(o){return S(e.observeResize,o,"resize")}function P(o){return S(e.observeMutation,o)}function S(o,s,n){return{observe:o,handler(){b(this,n)},...s}}P({options:{childList:!0}}),P({options:{attributes:!0,attributeFilter:["style"]}}),q({handler(o){for(const{borderBoxSize:[{inlineSize:s,blockSize:n}]}of o)if(s||n){this.$emit("resize");return}},target:({$el:o})=>[o,...e.children(o)]});function A(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const i=v(r[d],n);if(c.left>=i.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function T(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=p=>()=>c===u(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,w),await Promise.all(x(s).map((p,l)=>new Promise(g=>setTimeout(()=>e.Transition.start(p,r,n/2,"ease").then(g),l*t)))),e.removeClass(s,w)}),i=h(async()=>{const p=e.height(s);e.addClass(s,y),o(),e.css(e.children(s),{opacity:0}),e.height(s,p),await I(),e.height(s,"");const l=e.children(s),g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const f=x(s);e.css(l,r);const m=f.map(async(Q,X)=>{await I(X*t),await e.Transition.start(Q,a,n/2,"ease")});p!==g&&m.push(e.Transition.start(s,{height:g},n/2+f.length*t,"ease")),await Promise.all(m).then(()=>{e.removeClass(s,y),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?C(s).then(i):e.hasClass(s,y)?C(s).then(d).then(i):d().then(i)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function C(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function x(o){return A(e.children(o)).flat().filter(e.isVisible)}function I(o){return new Promise(s=>setTimeout(s,o))}async function H(o,s,n){await _();let t=e.children(s);const c=t.map(f=>E(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[i,p]=L(s,t,c),l=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>p[m]&&e.css(f,p[m])),e.css(s,a),e.trigger(s,"scroll"),await _();const g=t.map((f,m)=>e.parent(f)===s&&e.Transition.start(f,i[m],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,m)=>{e.attr(f,l[m]),e.parent(f)===s&&e.css(f,"display",i[m].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),M(s,a)}}function E(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...D(o)}:!1}function L(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?D(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||E(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function M(o,s){for(const n in s)e.css(o,n,"")}function D(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function _(){return new Promise(o=>requestAnimationFrame(o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?T:n==="delayed-fade"?(...c)=>T(...c,40):n?H:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},B={connected(){e.addClass(this.$el,this.$options.id)}},$={mixins:[B,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const i=this.getSortable(a),p=G(r.target,d,a,s,n,r===i&&o.moved!==d);p!==!1&&(p&&a===p||(r!==i?(i.remove(a),o.moved=d):delete o.moved,r.insert(a,p),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=O(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),R(this.pos),this.move(o)},move:K(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;j();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let z;function R(o){let s=Date.now();z=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:i,height:p}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(i>t&&i-35<t)r+=c;else return;if(r>0&&r<h-p)return a.scrollTop=r,!0})},15)}function j(){clearInterval(z)}function O(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function W(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function G(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return J(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=F([r.top,r.bottom],[h.top,h.bottom]),[i,p,l,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[p]<r[p]?r[p]-h[p]:0;return h[l]<r[l]?f&&i<r[l]+f?!1:s.nextElementSibling:f&&i>r[g]-f?!1:s}function J(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const i=e.dimensions(d);return!F([h.left,h.right],[i.left,i.right])})});return n&&e.remove(s),c}function F(o,s){return o[1]>s[0]&&s[1]>o[0]}function K(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",$),$}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";function p(s,i=[]){try{return s?t.startsWith(s,"{")?JSON.parse(s):i.length&&!t.includes(s,":")?{[i[0]]:s}:s.split(";").reduce((o,e)=>{const[n,r]=e.split(/:(.*)/);return n&&!t.isUndefined(r)&&(o[n.trim()]=r.trim()),o},{}):{}}catch{return{}}}t.memoize((s,i)=>{const o=Object.keys(i),e=o.concat(s).map(n=>[t.hyphenate(n),`data-${t.hyphenate(n)}`]).flat();return{attributes:o,filter:e}});let E=1;function A(s,i=null){return(i==null?void 0:i.id)||`${s.$options.id}-${E++}`}var B={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},I={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const a in r)r[a].reverse();e.reverse(),n.reverse()}const h=T(s),c=t.dimensions(s);t.css(s,{top:-c.height,left:-c.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s=this.$el){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s=this.$el){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function T(s){const i=t.scrollParent(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}var D={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:s})=>!!s[0],hasTransition:({animation:s})=>["slide","reveal"].some(i=>t.startsWith(s[0],i))},methods:{async toggleElement(s,i,o){try{return await Promise.all(t.toNodes(s).map(e=>{const n=t.isBoolean(i)?i:!this.isToggled(e);if(!t.trigger(e,`before${n?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(o)?o:o===!1||!this.hasAnimation?_:this.hasTransition?j:F)(e,n,this),h=n?this.clsEnter:this.clsLeave;t.addClass(e,h),t.trigger(e,n?"show":"hide",[this]);const c=()=>{var a;if(t.removeClass(e,h),t.trigger(e,n?"shown":"hidden",[this]),n){const l=T(e);(a=t.$$("[autofocus]",e).find(t.isVisible))==null||a.focus(),l()}};return r?r.then(c,()=>(t.removeClass(e,h),Promise.reject())):c()})),!0}catch{return!1}},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),o&&t.trigger(s,"toggled",[i,this])}}};function _(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function j(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var c;const[a="reveal",l="top"]=((c=o[0])==null?void 0:c.split("-"))||[],b=[["left","right"],["top","bottom"]],y=b[t.includes(b[0],l)?0:1],k=y[1]===l,v=["width","height"][b.indexOf(y)],f=`margin-${y[0]}`,w=`margin-${l}`;let g=t.dimensions(s)[v];const W=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const z=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",f,w].map(O=>[O,s.style[O]])),m=t.dimensions(s),u=t.toFloat(t.css(s,f)),x=t.toFloat(t.css(s,w)),d=m[v]+x;!W&&!i&&(g+=x);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:m.height,width:m.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:m.width,height:m.height,overflow:"hidden",[v]:g});const S=g/d;e=(n*d+e)*(i?1-S:S);const C={[v]:i?d:0};k&&(t.css(s,f,d-g+u),C[f]=i?u:d+u),!k^a==="reveal"&&(t.css($,f,-d+g),t.Transition.start($,{[f]:i?0:-d},e,r));try{await t.Transition.start(s,C,e,r)}finally{t.css(s,z),t.unwrap($.firstChild),i||h(s,!1)}}function F(s,i,o){const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}const L={ESC:27};var P={mixins:[B,D,I],data:{pos:"top",animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},connected(){N(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:s=0,title:i}=V(this.$options);if(!i)return;const o=t.attr(this.$el,"title"),e=t.on(this.$el,["blur",t.pointerLeave],r=>!t.isTouch(r)&&this.hide());this.reset=()=>{t.attr(this.$el,{title:o,"aria-describedby":null}),e()};const n=A(this);t.attr(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(i,n),s)},async hide(){var s;t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(s=this.reset)==null||s.call(this),t.remove(this.tooltip),this.tooltip=null)},async _show(s,i){this.tooltip=t.append(this.container,`<div id="${i}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${s}</div> </div>`),t.on(this.tooltip,"toggled",(o,e)=>{if(!e)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[r,h]=U(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(r)}-${h}`:`${h}-${t.flipPosition(r)}`;const c=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,a=>a.type===t.pointerDown&&!this.$el.contains(a.target)||a.type==="keydown"&&a.keyCode===L.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",n,{passive:!0})];t.once(this.tooltip,"hide",()=>c.forEach(a=>a()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${t.pointerEnter} ${t.pointerDown}`](s){(!t.isTouch(s)||s.type===t.pointerDown)&&document.readyState!=="loading"&&this.show()}}};function N(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function U(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const a of h){if(n[a[0]]>=r[a[1]]){o=a[1];break}if(n[a[1]]<=r[a[0]]){o=a[0];break}}return e=(t.includes(h[0],o)?h[1]:h[0]).find(a=>n[a]===r[a])||"center",[o,e]}function V(s){const{el:i,id:o,data:e}=s;return["delay","title"].reduce((n,r)=>({[r]:t.data(i,r),...n}),{...p(t.data(i,o),["title"]),...e})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",P),P}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";function p(s,i=[]){try{return s?t.startsWith(s,"{")?JSON.parse(s):i.length&&!t.includes(s,":")?{[i[0]]:s}:s.split(";").reduce((o,e)=>{const[n,r]=e.split(/:(.*)/);return n&&!t.isUndefined(r)&&(o[n.trim()]=r.trim()),o},{}):{}}catch{return{}}}t.memoize((s,i)=>{const o=Object.keys(i),e=o.concat(s).map(n=>[t.hyphenate(n),`data-${t.hyphenate(n)}`]).flat();return{attributes:o,filter:e}});let E=1;function A(s,i=null){return(i==null?void 0:i.id)||`${s.$options.id}-${E++}`}var B={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},I={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const a in r)r[a].reverse();e.reverse(),n.reverse()}const h=T(s),c=t.dimensions(s);t.css(s,{top:-c.height,left:-c.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s=this.$el){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s=this.$el){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function T(s){const i=t.scrollParent(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}var D={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:s})=>!!s[0],hasTransition:({animation:s})=>["slide","reveal"].some(i=>t.startsWith(s[0],i))},methods:{async toggleElement(s,i,o){try{return await Promise.all(t.toNodes(s).map(e=>{const n=t.isBoolean(i)?i:!this.isToggled(e);if(!t.trigger(e,`before${n?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(o)?o:o===!1||!this.hasAnimation?_:this.hasTransition?j:F)(e,n,this),h=n?this.clsEnter:this.clsLeave;t.addClass(e,h),t.trigger(e,n?"show":"hide",[this]);const c=()=>{var a;if(t.removeClass(e,h),t.trigger(e,n?"shown":"hidden",[this]),n){const l=T(e);(a=t.$$("[autofocus]",e).find(t.isVisible))==null||a.focus(),l()}};return r?r.then(c,()=>(t.removeClass(e,h),Promise.reject())):c()})),!0}catch{return!1}},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),o&&t.trigger(s,"toggled",[i,this])}}};function _(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function j(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var c;const[a="reveal",l="top"]=((c=o[0])==null?void 0:c.split("-"))||[],b=[["left","right"],["top","bottom"]],y=b[t.includes(b[0],l)?0:1],k=y[1]===l,v=["width","height"][b.indexOf(y)],f=`margin-${y[0]}`,w=`margin-${l}`;let g=t.dimensions(s)[v];const W=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const z=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",f,w].map(O=>[O,s.style[O]])),m=t.dimensions(s),u=t.toFloat(t.css(s,f)),x=t.toFloat(t.css(s,w)),d=m[v]+x;!W&&!i&&(g+=x);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:m.height,width:m.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:m.width,height:m.height,overflow:"hidden",[v]:g});const S=g/d;e=(n*d+e)*(i?1-S:S);const C={[v]:i?d:0};k&&(t.css(s,f,d-g+u),C[f]=i?u:d+u),!k^a==="reveal"&&(t.css($,f,-d+g),t.Transition.start($,{[f]:i?0:-d},e,r));try{await t.Transition.start(s,C,e,r)}finally{t.css(s,z),t.unwrap($.firstChild),i||h(s,!1)}}function F(s,i,o){const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}const L={ESC:27};var P={mixins:[B,D,I],data:{pos:"top",animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},connected(){N(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:s=0,title:i}=V(this.$options);if(!i)return;const o=t.attr(this.$el,"title"),e=t.on(this.$el,["blur",t.pointerLeave],r=>!t.isTouch(r)&&this.hide());this.reset=()=>{t.attr(this.$el,{title:o,"aria-describedby":null}),e()};const n=A(this);t.attr(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(i,n),s)},async hide(){var s;t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(s=this.reset)==null||s.call(this),t.remove(this.tooltip),this.tooltip=null)},async _show(s,i){this.tooltip=t.append(this.container,`<div id="${i}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${s}</div> </div>`),t.on(this.tooltip,"toggled",(o,e)=>{if(!e)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[r,h]=U(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(r)}-${h}`:`${h}-${t.flipPosition(r)}`;const c=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,a=>a.type===t.pointerDown&&!this.$el.contains(a.target)||a.type==="keydown"&&a.keyCode===L.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",n,{passive:!0})];t.once(this.tooltip,"hide",()=>c.forEach(a=>a()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${t.pointerEnter} ${t.pointerDown}`](s){(!t.isTouch(s)||s.type===t.pointerDown)&&document.readyState!=="loading"&&this.show()}}};function N(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function U(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const a of h){if(n[a[0]]>=r[a[1]]){o=a[1];break}if(n[a[1]]<=r[a[0]]){o=a[0];break}}return e=(t.includes(h[0],o)?h[1]:h[0]).find(a=>n[a]===r[a])||"center",[o,e]}function V(s){const{el:i,id:o,data:e}=s;return["delay","title"].reduce((n,r)=>({[r]:t.data(i,r),...n}),{...p(t.data(i,o),["title"]),...e})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",P),P}); |
@@ -1,2 +0,2 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */ | ||
@@ -3,0 +3,0 @@ (function (global, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! UIkit 3.23.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var s,a,t;let n=0;return((t=((s=this.i18n)==null?void 0:s[e])||((a=this.$options.i18n)==null?void 0:a[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,a.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,a.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),s=async a=>{const t=new FormData;a.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:c}=p;o.on(c.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(c,m.toLowerCase(),this[m]);return this.beforeSend(p)}});this.complete(n),r.length?await s(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await s(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const s=[];for(let a=0;a<e.length;a+=r)s.push(e.slice(a,a+r));return s}function l(e){e.preventDefault(),e.stopPropagation()}async function u(e,r){const s={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return await s.beforeSend(s),g(e,s)}function g(e,r){return new Promise((s,a)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?s(t):a(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>a(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>a(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d}); | ||
/*! UIkit 3.23.3-dev.b9dc78683 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var s,a,t;let n=0;return((t=((s=this.i18n)==null?void 0:s[e])||((a=this.$options.i18n)==null?void 0:a[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,a.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,a.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),s=async a=>{const t=new FormData;a.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:c}=p;o.on(c.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(c,m.toLowerCase(),this[m]);return this.beforeSend(p)}});this.complete(n),r.length?await s(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await s(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const s=[];for(let a=0;a<e.length;a+=r)s.push(e.slice(a,a+r));return s}function l(e){e.preventDefault(),e.stopPropagation()}async function u(e,r){const s={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return await s.beforeSend(s),g(e,s)}function g(e,r){return new Promise((s,a)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?s(t):a(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>a(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>a(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d}); |
@@ -5,3 +5,3 @@ { | ||
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.", | ||
"version": "3.23.2", | ||
"version": "3.23.3-dev.b9dc78683", | ||
"main": "dist/js/uikit.js", | ||
@@ -8,0 +8,0 @@ "style": "dist/css/uikit.css", |
@@ -28,2 +28,12 @@ import { children, isRtl, isVisible, offsetPosition, toggleClass } from 'uikit-util'; | ||
resize({ | ||
handler(mutations) { | ||
for (const { | ||
borderBoxSize: [{ inlineSize, blockSize }], | ||
} of mutations) { | ||
if (inlineSize || blockSize) { | ||
this.$emit('resize'); | ||
return; | ||
} | ||
} | ||
}, | ||
target: ({ $el }) => [$el, ...children($el)], | ||
@@ -30,0 +40,0 @@ }), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
12397695
0.02%92891
0.06%