uikit 3.20.3-dev.1cfb4e2ef → 3.20.4-dev.c54f44b4f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/util.js +14 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.esm.js +1 -0
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.esm.js +1 -0
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.esm.js +1 -0
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.esm.js +1 -0
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.esm.js +1 -0
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.esm.js +1 -0
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.esm.js +1 -0
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.esm.js +1 -0
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.esm.js +1 -0
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.esm.js +1 -0
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.esm.js +1 -0
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.esm.js +1 -0
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.esm.js +1 -0
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +2 -2
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +2 -2
- package/dist/js/uikit.min.js +1 -1
- package/package.json +7 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.20.3-dev.1cfb4e2ef | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitParallax=b(s.UIkit.util))})(this,function(s){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,s.fastdom.read(()=>{n._connected&&X(n,n._queued),delete n._queued})),n._queued.add(e.type||e))}function X(n,e){for(const{read:t,write:o,events:i=[]}of n._updates){if(!e.has("update")&&!i.some(a=>e.has(a)))continue;let r;t&&(r=t.call(n,n._data,e),r&&s.isPlainObject(r)&&s.assign(n._data,r)),o&&r!==!1&&s.fastdom.write(()=>{n._connected&&o.call(n,n._data,e)})}}function Y(n){return F(s.observeResize,n,"resize")}function Z(n){return F((e,t)=>s.observeViewportResize(t),n,"resize")}function k(n){return F((e,t)=>({disconnect:s.on(U(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function U(n){return s.toNodes(n).map(e=>{const{ownerDocument:t}=e,o=s.scrollParent(e,!0);return o===t.scrollingElement?t:o})}var nn={props:{media:Boolean},data:{media:!1},connected(){const n=en(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function en(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function tn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Rn,from:rn}=Array;function on(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function sn(n){return M(n)&&n===n.window}function cn(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!sn(n)&&M(n)&&n.nodeType}function O(n){return typeof n=="string"}function an(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function A(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function P(n,e,t){var o;if(M(e)){for(const i in e)P(n,i,e[i]);return}if(an(t))return(o=w(n))==null?void 0:o.getAttribute(e);for(const i of l(n))on(t)&&(t=t.call(i,P(i,e))),t===null?fn(i,e):i.setAttribute(e,t)}function fn(n,e){l(n).forEach(t=>t.removeAttribute(e))}const un=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function dn(n){return l(n).some(e=>un.call(e))}function hn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function ln(n,e){return l(n).some(t=>t.matches(e))}function gn(n,e){return n=w(n),n?rn(n.children):[]}function T(n,e){return gn(hn(n)).indexOf(n)}function mn(n,e){return l(wn(n,w(e),"querySelectorAll"))}const bn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,$n=/.*?[^\\](?![^(]*\))(?:,|$)/g,pn=/\s*,$/,xn=A(n=>{var e;n=n.replace(bn,"$1 *");let t=!1;const o=[];for(let i of(e=n.match($n))!=null?e:[])i=i.replace(pn,"").trim(),t||(t=["!","+","~","-",">"].includes(i[0])),o.push(i);return{selector:o.join(","),selectors:o,isContextSelector:t}}),W=A(n=>{n=n.substr(1).trim();const e=n.indexOf(" ");return~e?[n.substring(0,e),n.substring(e+1)]:[n,""]});function wn(n,e=document,t){if(!O(n))return n;const o=xn(n);if(!o.isContextSelector)return C(e,t,o.selector);n="";const i=o.selectors.length===1;for(let r of o.selectors){let a,c=e;if(r[0]==="!"&&([a,r]=W(r),c=e.parentElement.closest(a),!r&&i)||c&&r[0]==="-"&&([a,r]=W(r),c=c.previousElementSibling,c=ln(c,a)?c:null,!r&&i))return c;if(c){if(i)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${T(c)+1}) ${r}`,c=c.parentElement):r[0]===">"&&(r=`:scope ${r}`),C(c,t,r);n+=`,${vn(c)} ${r}`}}return cn(e)||(e=e.ownerDocument),C(e,t,n)}function C(n,e,t){try{return n[e](t)}catch{return null}}function vn(n){const e=[];for(;n.parentNode;){const t=P(n,"id");if(t){e.unshift(`#${yn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${T(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function yn(n){return O(n)?CSS.escape(n):""}const Sn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _n(n){const e=Sn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Fn(t.content.childNodes)}function Fn(n){return n.length>1?n:n[0]}function Mn(n,e){return On(n)?l(_n(n)):mn(n,e)}function On(n){return O(n)&&tn(n.trim(),"<")}function Pn(n){return dn(n)?Math.ceil(Math.max(0,...Mn("[stroke]",n).map(e=>e.getTotalLength()))):0}const v={x:y,y,rotate:y,scale:y,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:En,stroke:Nn,bgx:D,bgy:D},{keys:R}=Object;var Cn={mixins:[nn],props:L(R(v),"list"),data:L(R(v),void 0),computed:{props(n,e){const t={};for(const i in n)i in v&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const o={};for(const i in t)o[i]=v[i](i,e,t[i],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function y(n,e,t){let o=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=r=>s.toFloat(s.toFloat(r).toFixed(o==="px"?0:6))):n==="scale"&&(o="",i=r=>{var a;return _([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(r,a)=>{r.transform=`${r.transform||""} ${n}(${$(t,a)}${o})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,o=>jn(e,o)),(o,i)=>{const[r,a,c]=B(t,i),d=r.map((h,f)=>(h+=c*(a[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");o[n]=`rgba(${d})`}}function jn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const o=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,r)=>{const a=$(t,r);i.filter=`${i.filter||""} ${n}(${a+o})`}}function En(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(o,i)=>{o[n]=$(t,i)}}function Nn(n,e,t){t.length===1&&t.unshift(0);const o=_(t),i=Pn(e);return t=m(t.reverse(),r=>(r=s.toFloat(r),o==="%"?r*i/100:r)),t.some(([r])=>r)?(s.css(e,"strokeDasharray",i),(r,a)=>{r.strokeDashoffset=$(t,a)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";o[n]=m(t,c=>s.toPx(c,i,e));const r=["bgx","bgy"].filter(c=>c in o);if(r.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return In(n,e,t,o);const a={};for(const c of r)a[c]=q(e,c);return H(r,a,o)}function In(n,e,t,o){const i=zn(e);if(!i.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const u=o[f].map(([Wn])=>Wn),x=Math.min(...u),N=Math.max(...u),J=u.indexOf(x)<u.indexOf(N),K=N-x;c[f]=`${(J?-K:0)-(J?x:N)}px`,r[f==="bgy"?"height":"width"]+=K}const d=s.Dimensions.cover(i,r);for(const f of a){const u=f==="bgy"?"height":"width",x=d[u]-r[u];c[f]=`max(${q(e,f)},-${x}px) + ${c[f]}`}const h=H(a,c,o);return(f,u)=>{h(f,u),f.backgroundSize=`${d.width}px ${d.height}px`,f.backgroundRepeat="no-repeat"}}function q(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,i){for(const r of n){const a=$(t[r],i);o[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const V={},S={};function zn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!V[e])?(s.once(t,"error load",()=>{S[e]=E(t),s.trigger(n,s.createEvent("load",!1))}),V[e]=!0,E(t)):S[e]=E(t)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:o}=n;let i=0;for(let r=0;r<o;r++){let[a,c]=s.isString(n[r])?n[r].trim().split(/ (?![^(]*\))/):[n[r]];if(a=e(a),c=c?s.toFloat(c)/100:null,r===0?c===null?c=0:c&&t.push([a,0]):r===o-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)i++;else if(i){const d=t[r-i-1][1],h=(c-d)/(i+1);for(let f=i;f>0;f--)t[r-f][1]=d+h*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function $(n,e){const[t,o,i]=B(n,e);return t+Math.abs(t-o)*i*(t<o?1:-1)}const An=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const o of n){const i=(t=o.match)==null?void 0:t.call(o,An);if(i)return i[1]}return e}function p(n,e,t){const o=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=o,i}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}function Tn(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var Q={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)=>G(n&&s.query(n,e)||e),start({start:n}){return s.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return s.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[Z(),k({target:({target:n})=>n}),Y({target:({$el:n,target:e})=>[n,e,s.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!s.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=Tn(s.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&&s.css(this.$el,n)},events:["scroll","resize"]}};function G(n){return n?"offsetTop"in n?n:G(s.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",Q),Q});
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitParallax=b(s.UIkit.util))})(this,function(s){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,s.fastdom.read(()=>{n._connected&&X(n,n._queued),delete n._queued})),n._queued.add(e.type||e))}function X(n,e){for(const{read:t,write:o,events:i=[]}of n._updates){if(!e.has("update")&&!i.some(a=>e.has(a)))continue;let r;t&&(r=t.call(n,n._data,e),r&&s.isPlainObject(r)&&s.assign(n._data,r)),o&&r!==!1&&s.fastdom.write(()=>{n._connected&&o.call(n,n._data,e)})}}function Y(n){return F(s.observeResize,n,"resize")}function Z(n){return F((e,t)=>s.observeViewportResize(t),n,"resize")}function k(n){return F((e,t)=>({disconnect:s.on(U(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function U(n){return s.toNodes(n).map(e=>{const{ownerDocument:t}=e,o=s.scrollParent(e,!0);return o===t.scrollingElement?t:o})}var nn={props:{media:Boolean},data:{media:!1},connected(){const n=en(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function en(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function tn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Rn,from:rn}=Array;function on(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function sn(n){return M(n)&&n===n.window}function cn(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!sn(n)&&M(n)&&n.nodeType}function O(n){return typeof n=="string"}function an(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function A(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function P(n,e,t){var o;if(M(e)){for(const i in e)P(n,i,e[i]);return}if(an(t))return(o=w(n))==null?void 0:o.getAttribute(e);for(const i of l(n))on(t)&&(t=t.call(i,P(i,e))),t===null?fn(i,e):i.setAttribute(e,t)}function fn(n,e){l(n).forEach(t=>t.removeAttribute(e))}const un=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function dn(n){return l(n).some(e=>un.call(e))}function hn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function ln(n,e){return l(n).some(t=>t.matches(e))}function gn(n,e){return n=w(n),n?rn(n.children):[]}function T(n,e){return gn(hn(n)).indexOf(n)}function mn(n,e){return l(wn(n,w(e),"querySelectorAll"))}const bn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,$n=/.*?[^\\](?![^(]*\))(?:,|$)/g,pn=/\s*,$/,xn=A(n=>{var e;n=n.replace(bn,"$1 *");let t=!1;const o=[];for(let i of(e=n.match($n))!=null?e:[])i=i.replace(pn,"").trim(),t||(t=["!","+","~","-",">"].includes(i[0])),o.push(i);return{selector:o.join(","),selectors:o,isContextSelector:t}}),W=A(n=>{n=n.substr(1).trim();const e=n.indexOf(" ");return~e?[n.substring(0,e),n.substring(e+1)]:[n,""]});function wn(n,e=document,t){if(!O(n))return n;const o=xn(n);if(!o.isContextSelector)return C(e,t,o.selector);n="";const i=o.selectors.length===1;for(let r of o.selectors){let a,c=e;if(r[0]==="!"&&([a,r]=W(r),c=e.parentElement.closest(a),!r&&i)||c&&r[0]==="-"&&([a,r]=W(r),c=c.previousElementSibling,c=ln(c,a)?c:null,!r&&i))return c;if(c){if(i)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${T(c)+1}) ${r}`,c=c.parentElement):r[0]===">"&&(r=`:scope ${r}`),C(c,t,r);n+=`,${vn(c)} ${r}`}}return cn(e)||(e=e.ownerDocument),C(e,t,n)}function C(n,e,t){try{return n[e](t)}catch{return null}}function vn(n){const e=[];for(;n.parentNode;){const t=P(n,"id");if(t){e.unshift(`#${yn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${T(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function yn(n){return O(n)?CSS.escape(n):""}const Sn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _n(n){const e=Sn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Fn(t.content.childNodes)}function Fn(n){return n.length>1?n:n[0]}function Mn(n,e){return On(n)?l(_n(n)):mn(n,e)}function On(n){return O(n)&&tn(n.trim(),"<")}function Pn(n){return dn(n)?Math.ceil(Math.max(0,...Mn("[stroke]",n).map(e=>e.getTotalLength()))):0}const v={x:y,y,rotate:y,scale:y,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:En,stroke:Nn,bgx:D,bgy:D},{keys:R}=Object;var Cn={mixins:[nn],props:L(R(v),"list"),data:L(R(v),void 0),computed:{props(n,e){const t={};for(const i in n)i in v&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const o={};for(const i in t)o[i]=v[i](i,e,t[i],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function y(n,e,t){let o=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=r=>s.toFloat(s.toFloat(r).toFixed(o==="px"?0:6))):n==="scale"&&(o="",i=r=>{var a;return _([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(r,a)=>{r.transform=`${r.transform||""} ${n}(${$(t,a)}${o})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,o=>jn(e,o)),(o,i)=>{const[r,a,c]=B(t,i),d=r.map((h,f)=>(h+=c*(a[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");o[n]=`rgba(${d})`}}function jn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const o=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,r)=>{const a=$(t,r);i.filter=`${i.filter||""} ${n}(${a+o})`}}function En(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(o,i)=>{o[n]=$(t,i)}}function Nn(n,e,t){t.length===1&&t.unshift(0);const o=_(t),i=Pn(e);return t=m(t.reverse(),r=>(r=s.toFloat(r),o==="%"?r*i/100:r)),t.some(([r])=>r)?(s.css(e,"strokeDasharray",i),(r,a)=>{r.strokeDashoffset=$(t,a)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";o[n]=m(t,c=>s.toPx(c,i,e));const r=["bgx","bgy"].filter(c=>c in o);if(r.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return In(n,e,t,o);const a={};for(const c of r)a[c]=q(e,c);return H(r,a,o)}function In(n,e,t,o){const i=zn(e);if(!i.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const u=o[f].map(([Wn])=>Wn),x=Math.min(...u),N=Math.max(...u),J=u.indexOf(x)<u.indexOf(N),K=N-x;c[f]=`${(J?-K:0)-(J?x:N)}px`,r[f==="bgy"?"height":"width"]+=K}const d=s.Dimensions.cover(i,r);for(const f of a){const u=f==="bgy"?"height":"width",x=d[u]-r[u];c[f]=`max(${q(e,f)},-${x}px) + ${c[f]}`}const h=H(a,c,o);return(f,u)=>{h(f,u),f.backgroundSize=`${d.width}px ${d.height}px`,f.backgroundRepeat="no-repeat"}}function q(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,i){for(const r of n){const a=$(t[r],i);o[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const V={},S={};function zn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!V[e])?(s.once(t,"error load",()=>{S[e]=E(t),s.trigger(n,s.createEvent("load",!1))}),V[e]=!0,E(t)):S[e]=E(t)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:o}=n;let i=0;for(let r=0;r<o;r++){let[a,c]=s.isString(n[r])?n[r].trim().split(/ (?![^(]*\))/):[n[r]];if(a=e(a),c=c?s.toFloat(c)/100:null,r===0?c===null?c=0:c&&t.push([a,0]):r===o-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)i++;else if(i){const d=t[r-i-1][1],h=(c-d)/(i+1);for(let f=i;f>0;f--)t[r-f][1]=d+h*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function $(n,e){const[t,o,i]=B(n,e);return t+Math.abs(t-o)*i*(t<o?1:-1)}const An=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const o of n){const i=(t=o.match)==null?void 0:t.call(o,An);if(i)return i[1]}return e}function p(n,e,t){const o=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=o,i}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}function Tn(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var Q={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)=>G(n&&s.query(n,e)||e),start({start:n}){return s.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return s.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[Z(),k({target:({target:n})=>n}),Y({target:({$el:n,target:e})=>[n,e,s.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!s.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=Tn(s.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&&s.css(this.$el,n)},events:["scroll","resize"]}};function G(n){return n?"offsetTop"in n?n:G(s.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",Q),Q});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{on as it,trigger as _,createEvent as T,isString as D,startsWith as rt,toFloat as f,css as d,isNumeric as ot,isUndefined as st,clamp as ct,propName as ut,ucfirst as at,noop as y,Dimensions as ft,once as lt,findIndex as ht,toPx as H,fastdom as p,Transition as R,endsWith as dt}from"uikit-util";var gt={props:{media:Boolean},data:{media:!1},connected(){const t=mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const n=()=>{this.matchMedia=this.mediaObj.matches,_(this.$el,T("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=it(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function mt(t,n){if(D(t)){if(rt(t,"@"))t=f(d(n,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&ot(t)?`(min-width: ${t}px)`:""}function $t(t,n){var e;return(e=t==null?void 0:t.startsWith)==null?void 0:e.call(t,n)}const{isArray:Xt,from:bt}=Array;function xt(t){return typeof t=="function"}function P(t){return t!==null&&typeof t=="object"}function wt(t){return P(t)&&t===t.window}function yt(t){return B(t)===9}function U(t){return B(t)>=1}function B(t){return!wt(t)&&P(t)&&t.nodeType}function j(t){return typeof t=="string"}function pt(t){return t===void 0}function k(t){return t&&g(t)[0]}function g(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function V(t){const n=Object.create(null);return(e,...i)=>n[e]||(n[e]=t(e,...i))}function F(t,n,e){var i;if(P(n)){for(const r in n)F(t,r,n[r]);return}if(pt(e))return(i=k(t))==null?void 0:i.getAttribute(n);for(const r of g(t))xt(e)&&(e=e.call(r,F(r,n))),e===null?kt(r,n):r.setAttribute(n,e)}function kt(t,n){g(t).forEach(e=>e.removeAttribute(n))}const vt=typeof window<"u",St=vt?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ct(t){return g(t).some(n=>St.call(n))}function Mt(t){var n;return(n=k(t))==null?void 0:n.parentElement}function Ot(t,n){return g(t).some(e=>e.matches(n))}function Pt(t,n){return t=k(t),t?bt(t.children):[]}function z(t,n){return Pt(Mt(t)).indexOf(t)}function jt(t,n){return g(Et(t,k(n),"querySelectorAll"))}const Ft=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Wt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Nt=/\s*,$/,At=V(t=>{var n;t=t.replace(Ft,"$1 *");let e=!1;const i=[];for(let r of(n=t.match(Wt))!=null?n:[])r=r.replace(Nt,"").trim(),e||(e=["!","+","~","-",">"].includes(r[0])),i.push(r);return{selector:i.join(","),selectors:i,isContextSelector:e}}),L=V(t=>{t=t.substr(1).trim();const n=t.indexOf(" ");return~n?[t.substring(0,n),t.substring(n+1)]:[t,""]});function Et(t,n=document,e){if(!j(t))return t;const i=At(t);if(!i.isContextSelector)return W(n,e,i.selector);t="";const r=i.selectors.length===1;for(let o of i.selectors){let c,s=n;if(o[0]==="!"&&([c,o]=L(o),s=n.parentElement.closest(c),!o&&r)||s&&o[0]==="-"&&([c,o]=L(o),s=s.previousElementSibling,s=Ot(s,c)?s:null,!o&&r))return s;if(s){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${z(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),W(s,e,o);t+=`,${It(s)} ${o}`}}return yt(n)||(n=n.ownerDocument),W(n,e,t)}function W(t,n,e){try{return t[n](e)}catch{return null}}function It(t){const n=[];for(;t.parentNode;){const e=F(t,"id");if(e){n.unshift(`#${_t(e)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${z(t)+1})`),n.unshift(i),t=t.parentNode}}return n.join(" > ")}function _t(t){return j(t)?CSS.escape(t):""}const Tt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const n=Tt.exec(t);if(n)return document.createElement(n[1]);const e=document.createElement("template");return e.innerHTML=t.trim(),Ht(e.content.childNodes)}function Ht(t){return t.length>1?t:t[0]}function Rt(t,n){return Ut(t)?g(Dt(t)):jt(t,n)}function Ut(t){return j(t)&&$t(t.trim(),"<")}function Bt(t){return Ct(t)?Math.ceil(Math.max(0,...Rt("[stroke]",t).map(n=>n.getTotalLength()))):0}const v={x:S,y:S,rotate:S,scale:S,color:N,backgroundColor:N,borderColor:N,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Lt,stroke:Qt,bgx:q,bgy:q},{keys:Q}=Object;var Vt={mixins:[gt],props:Y(Q(v),"list"),data:Y(Q(v),void 0),computed:{props(t,n){const e={};for(const r in t)r in v&&!st(t[r])&&(e[r]=t[r].slice());const i={};for(const r in e)i[r]=v[r](r,n,e[r],e);return i}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))d(this.$el,t,"")},getCss(t){const n={};for(const e in this.props)this.props[e](n,ct(t));return n.willChange=Object.keys(n).map(ut).join(","),n}}};function S(t,n,e){let i=M(e)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${at(t)}`,r=o=>f(f(o).toFixed(i==="px"?0:6))):t==="scale"&&(i="",r=o=>{var c;return M([o])?H(o,"width",n,!0)/n[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:f(o)}),e.length===1&&e.unshift(t==="scale"?1:0),e=$(e,r),(o,c)=>{o.transform=`${o.transform||""} ${t}(${x(e,c)}${i})`}}function N(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e,i=>zt(n,i)),(i,r)=>{const[o,c,s]=X(e,r),l=o.map((h,u)=>(h+=s*(c[u]-h),u===3?f(h):parseInt(h,10))).join(",");i[t]=`rgba(${l})`}}function zt(t,n){return w(t,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(f)}function m(t,n,e){e.length===1&&e.unshift(0);const i=M(e)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,e=$(e),(r,o)=>{const c=x(e,o);r.filter=`${r.filter||""} ${t}(${c+i})`}}function Lt(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e),(i,r)=>{i[t]=x(e,r)}}function Qt(t,n,e){e.length===1&&e.unshift(0);const i=M(e),r=Bt(n);return e=$(e.reverse(),o=>(o=f(o),i==="%"?o*r/100:o)),e.some(([o])=>o)?(d(n,"strokeDasharray",r),(o,c)=>{o.strokeDashoffset=x(e,c)}):y}function q(t,n,e,i){e.length===1&&e.unshift(0);const r=t==="bgy"?"height":"width";i[t]=$(e,s=>H(s,r,n));const o=["bgx","bgy"].filter(s=>s in i);if(o.length===2&&t==="bgx")return y;if(w(n,"backgroundSize","")==="cover")return qt(t,n,e,i);const c={};for(const s of o)c[s]=G(n,s);return J(o,c,i)}function qt(t,n,e,i){const r=Gt(n);if(!r.width)return y;const o={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(u=>u in i),s={};for(const u of c){const a=i[u].map(([et])=>et),b=Math.min(...a),O=Math.max(...a),E=a.indexOf(b)<a.indexOf(O),I=O-b;s[u]=`${(E?-I:0)-(E?b:O)}px`,o[u==="bgy"?"height":"width"]+=I}const l=ft.cover(r,o);for(const u of c){const a=u==="bgy"?"height":"width",b=l[a]-o[a];s[u]=`max(${G(n,u)},-${b}px) + ${s[u]}`}const h=J(c,s,i);return(u,a)=>{h(u,a),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function G(t,n){return w(t,`background-position-${n.substr(-1)}`,"")}function J(t,n,e){return function(i,r){for(const o of t){const c=x(e[o],r);i[`background-position-${o.substr(-1)}`]=`calc(${n[o]} + ${c}px)`}}}const K={},C={};function Gt(t){const n=d(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[n])return C[n];const e=new Image;return n&&(e.src=n,!e.naturalWidth&&!K[n])?(lt(e,"error load",()=>{C[n]=A(e),_(t,T("load",!1))}),K[n]=!0,A(e)):C[n]=A(e)}function A(t){return{width:t.naturalWidth,height:t.naturalHeight}}function $(t,n=f){const e=[],{length:i}=t;let r=0;for(let o=0;o<i;o++){let[c,s]=D(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(c=n(c),s=s?f(s)/100:null,o===0?s===null?s=0:s&&e.push([c,0]):o===i-1&&(s===null?s=1:s!==1&&(e.push([c,s]),s=1)),e.push([c,s]),s===null)r++;else if(r){const l=e[o-r-1][1],h=(s-l)/(r+1);for(let u=r;u>0;u--)e[o-u][1]=l+h*(r-u+1);r=0}}return e}function X(t,n){const e=ht(t.slice(1),([,i])=>n<=i)+1;return[t[e-1][0],t[e][0],(n-t[e-1][1])/(t[e][1]-t[e-1][1])]}function x(t,n){const[e,i,r]=X(t,n);return e+Math.abs(e-i)*r*(e<i?1:-1)}const Jt=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,n){var e;for(const i of t){const r=(e=i.match)==null?void 0:e.call(i,Jt);if(r)return r[1]}return n}function w(t,n,e){const i=t.style[n],r=d(d(t,n,e),n);return t.style[n]=i,r}function Y(t,n){return t.reduce((e,i)=>(e[i]=n,e),{})}var Z={mixins:[Vt],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,duration:e,timing:i,dir:r}}){p.read(()=>{if(!this.matchMedia)return;const o=this.getCss(nt(t,r,n)),c=this.getCss(tt(t)?.5:r>0?1:0);p.write(()=>{d(this.$el,o),R.start(this.$el,c,e,i).catch(y)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){R.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,dir:e}}){p.read(()=>{if(!this.matchMedia){this.reset();return}const i=this.getCss(nt(t,e,n));p.write(()=>d(this.$el,i))})}}]};function tt(t){return dt(t,"in")}function nt(t,n,e){return e/=2,tt(t)^n<0?e:1-e}typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Z);export{Z as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,t){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Y(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:En,from:Z}=Array;function k(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function U(n){return C(n)&&n===n.window}function nn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!U(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function tn(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function O(n,t,e){var r;if(C(t)){for(const o in t)O(n,o,t[o]);return}if(tn(e))return(r=w(n))==null?void 0:r.getAttribute(t);for(const o of l(n))k(e)&&(e=e.call(o,O(o,t))),e===null?en(o,t):o.setAttribute(t,e)}function en(n,t){l(n).forEach(e=>e.removeAttribute(t))}const rn=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function on(n){return l(n).some(t=>rn.call(t))}function sn(n){var t;return(t=w(n))==null?void 0:t.parentElement}function cn(n,t){return l(n).some(e=>e.matches(t))}function an(n,t){return n=w(n),n?Z(n.children):[]}function _(n,t){return an(sn(n)).indexOf(n)}function fn(n,t){return l(gn(n,w(t),"querySelectorAll"))}const un=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,dn=/.*?[^\\](?![^(]*\))(?:,|$)/g,hn=/\s*,$/,ln=W(n=>{var t;n=n.replace(un,"$1 *");let e=!1;const r=[];for(let o of(t=n.match(dn))!=null?t:[])o=o.replace(hn,"").trim(),e||(e=["!","+","~","-",">"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:e}}),A=W(n=>{n=n.substr(1).trim();const t=n.indexOf(" ");return~t?[n.substring(0,t),n.substring(t+1)]:[n,""]});function gn(n,t=document,e){if(!M(n))return n;const r=ln(n);if(!r.isContextSelector)return P(t,e,r.selector);n="";const o=r.selectors.length===1;for(let i of r.selectors){let a,c=t;if(i[0]==="!"&&([a,i]=A(i),c=t.parentElement.closest(a),!i&&o)||c&&i[0]==="-"&&([a,i]=A(i),c=c.previousElementSibling,c=cn(c,a)?c:null,!i&&o))return c;if(c){if(o)return i[0]==="~"||i[0]==="+"?(i=`:scope > :nth-child(${_(c)+1}) ${i}`,c=c.parentElement):i[0]===">"&&(i=`:scope ${i}`),P(c,e,i);n+=`,${mn(c)} ${i}`}}return nn(t)||(t=t.ownerDocument),P(t,e,n)}function P(n,t,e){try{return n[t](e)}catch{return null}}function mn(n){const t=[];for(;n.parentNode;){const e=O(n,"id");if(e){t.unshift(`#${$n(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${_(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function $n(n){return M(n)?CSS.escape(n):""}const bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const t=bn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),pn(e.content.childNodes)}function pn(n){return n.length>1?n:n[0]}function wn(n,t){return yn(n)?l(xn(n)):fn(n,t)}function yn(n){return M(n)&&Y(n.trim(),"<")}function vn(n){return on(n)?Math.ceil(Math.max(0,...wn("[stroke]",n).map(t=>t.getTotalLength()))):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:Cn,stroke:Mn,bgx:H,bgy:H},{keys:D}=Object;var Sn={mixins:[$],props:L(D(y),"list"),data:L(D(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!s.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,s.clamp(n));return t.willChange=Object.keys(t).map(s.propName).join(","),t}}};function v(n,t,e){let r=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,o=i=>s.toFloat(s.toFloat(i).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=i=>{var a;return F([i])?s.toPx(i,"width",t,!0)/t[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(i,a)=>{i.transform=`${i.transform||""} ${n}(${b(e,a)}${r})`}}function j(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>Fn(t,r)),(r,o)=>{const[i,a,c]=z(e,o),d=i.map((h,f)=>(h+=c*(a[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${d})`}}function Fn(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,i)=>{const a=b(e,i);o.filter=`${o.filter||""} ${n}(${a+r})`}}function Cn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,o)=>{r[n]=b(e,o)}}function Mn(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=vn(t);return e=m(e.reverse(),i=>(i=s.toFloat(i),r==="%"?i*o/100:i)),e.some(([i])=>i)?(s.css(t,"strokeDasharray",o),(i,a)=>{i.strokeDashoffset=b(e,a)}):s.noop}function H(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,c=>s.toPx(c,o,t));const i=["bgx","bgy"].filter(c=>c in r);if(i.length===2&&n==="bgx")return s.noop;if(x(t,"backgroundSize","")==="cover")return On(n,t,e,r);const a={};for(const c of i)a[c]=R(t,c);return B(i,a,r)}function On(n,t,e,r){const o=Pn(t);if(!o.width)return s.noop;const i={width:t.offsetWidth,height:t.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),c={};for(const f of a){const u=r[f].map(([In])=>In),p=Math.min(...u),E=Math.max(...u),J=u.indexOf(p)<u.indexOf(E),K=E-p;c[f]=`${(J?-K:0)-(J?p:E)}px`,i[f==="bgy"?"height":"width"]+=K}const d=s.Dimensions.cover(o,i);for(const f of a){const u=f==="bgy"?"height":"width",p=d[u]-i[u];c[f]=`max(${R(t,f)},-${p}px) + ${c[f]}`}const h=B(a,c,r);return(f,u)=>{h(f,u),f.backgroundSize=`${d.width}px ${d.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function B(n,t,e){return function(r,o){for(const i of n){const a=b(e[i],o);r[`background-position-${i.substr(-1)}`]=`calc(${t[i]} + ${a}px)`}}}const V={},S={};function Pn(n){const t=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!V[t])?(s.once(e,"error load",()=>{S[t]=I(e),s.trigger(n,s.createEvent("load",!1))}),V[t]=!0,I(e)):S[t]=I(e)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=s.toFloat){const e=[],{length:r}=n;let o=0;for(let i=0;i<r;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=t(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&e.push([a,0]):i===r-1&&(c===null?c=1:c!==1&&(e.push([a,c]),c=1)),e.push([a,c]),c===null)o++;else if(o){const d=e[i-o-1][1],h=(c-d)/(o+1);for(let f=o;f>0;f--)e[i-f][1]=d+h*(o-f+1);o=0}}return e}function z(n,t){const e=s.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function b(n,t){const[e,r,o]=z(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const jn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,jn);if(o)return o[1]}return t}function x(n,t,e){const r=n.style[t],o=s.css(s.css(n,t,e),t);return n.style[t]=r,o}function L(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}var q={mixins:[Sn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,duration:e,timing:r,dir:o}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(G(n,o,t)),a=this.getCss(Q(n)?.5:o>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,e,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,dir:e}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(G(n,e,t));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function Q(n){return s.endsWith(n,"in")}function G(n,t,e){return e/=2,Q(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",q),q});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{fastdom as gt,isPlainObject as qt,assign as Gt,toNodes as mt,isFunction as Xt,$$ as Y,removeAttr as Qt,observeResize as Jt,observeIntersection as Kt,on as E,scrollParent as Yt,addClass as z,attr as p,matches as V,getEventPos as Zt,isRtl as w,isTouch as te,selInput as ee,noop as N,css as m,includes as b,trigger as g,off as Z,toArray as ie,memoize as se,hyphenate as pt,$ as O,children as $,isTag as ne,data as T,isNumeric as B,toNumber as tt,toFloat as I,empty as re,append as ae,toggleClass as D,parent as oe,removeClass as et,hasClass as y,clamp as _,getIndex as R,isNumber as xt,createEvent as it,isString as vt,startsWith as he,isUndefined as le,propName as de,ucfirst as ce,Dimensions as ue,once as fe,findIndex as st,toPx as U,query as ge,scrolledOver as me,dimensions as c,Transition as wt,sumBy as It,position as pe,last as bt,isVisible as xe,selFocusable as ve,hasOwn as we}from"uikit-util";function Ie(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,gt.read(()=>{t._connected&&be(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function be(t,e){for(const{read:i,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(o=>e.has(o)))continue;let n;i&&(n=i.call(t,t._data,e),n&&qt(n)&&Gt(t._data,n)),s&&n!==!1&>.write(()=>{t._connected&&s.call(t,t._data,e)})}}function $t(t){return nt(Jt,t,"resize")}function $e(t){return nt(Kt,t)}function ye(t={}){return $e({handler:function(e,i){const{targets:s=this.$el,preload:r=5}=t;for(const n of mt(Xt(s)?s(this):s))Y('[loading="lazy"]',n).slice(0,r-1).forEach(o=>Qt(o,"loading"));for(const n of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))i.unobserve(n)},...t})}function Se(t){return nt((e,i)=>({disconnect:E(Ae(e),"scroll",i,{passive:!0})}),t,"scroll")}function nt(t,e,i){return{observe:t,handler(){Ie(this,i)},...e}}function Ae(t){return mt(t).map(e=>{const{ownerDocument:i}=e,s=Yt(e,!0);return s===i.scrollingElement?i:s})}var _e={connected(){z(this.$el,this.$options.id)}},ke={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,r;let n=0;return((r=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[n++]||""))||""}}},Me={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&V(this.$el,":focus-within")&&!V(this.$el,":focus")||this.pauseOnHover&&V(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const P={passive:!1,capture:!0},yt={passive:!0,capture:!0},Ce="touchstart mousedown",rt="touchmove mousemove",St="touchend touchcancel mouseup click input scroll",At=t=>t.preventDefault();var Ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=Zt(i).x*(w?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:Ce,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!te(t)&&Ne(t.target)||t.target.closest(ee)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:rt,el(){return this.list},handler:N,...P}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,E(document,rt,this.move,P),E(document,St,this.end,yt),m(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||E(this.list,"click",At,P),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,r=Math.abs(e),n=this.getIndex(s+this.dir),o=_t.call(this,s,n);for(;n!==s&&r>o;)this.drag-=o*this.dir,s=n,r-=o,n=this.getIndex(s+this.dir),o=_t.call(this,s,n);this.percent=r/o;const a=i[s],l=i[n],d=this.index!==n,h=s===n;let u;for(const f of[this.index,this.prevIndex])b([n,s],f)||(g(i[f],"itemhidden",[this]),h&&(u=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||u)&&g(i[this.index],"itemshown",[this]),d&&(this.prevIndex=s,this.index=n,h||(g(a,"beforeitemhide",[this]),g(a,"itemhide",[this])),g(l,"beforeitemshow",[this]),g(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&l)},end(){if(Z(document,rt,this.move,P),Z(document,St,this.end,yt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(w?this.dir*(w?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>Z(this.list,"click",At,P)),m(this.list,{userSelect:""}),this.drag=this.percent=null}}};function _t(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function Ne(t){return m(t,"userSelect")!=="none"&&ie(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}se((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(r=>[pt(r),`data-${pt(r)}`]).flat();return{attributes:i,filter:s}});let Oe=1;function kt(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Oe++}`}const W={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var Te={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)=>O(t,e),navChildren(){return $(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return Y(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){ne(t,"ul")&&p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=T(e,this.attrItem),s=O("a,button",e)||e;let r,n=null;if(B(i)){const o=tt(i),a=this.slides[o];a&&(a.id||(a.id=kt(this,a)),n=a.id),r=this.t("slideX",I(i)+1),p(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=kt(this,this.list)),n=this.list.id),r=this.t(i);p(s,{"aria-controls":n,"aria-label":p(s,"aria-label")||r})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){re(this.nav);for(let i=0;i<t;i++)ae(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===W.SPACE)&&(t.preventDefault(),this.show(T(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,s=T(e,this.attrItem);if(!B(s))return;let r=i===W.HOME?0:i===W.END?"last":i===W.LEFT?"previous":i===W.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=T(e,this.attrItem),s=O("a,button",e)||e;if(B(i)){const n=tt(i)===t;D(e,this.clsActive,n),D(s,"uk-disabled",this.parallax),p(s,{"aria-selected":n,tabindex:n&&!this.parallax?null:-1}),n&&s&&V(oe(e),":focus-within")&&s.focus()}else D(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},De={mixins:[Me,Ee,Te,ke],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(){et(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Mt(e.offsetWidth/t),list:({selList:t},e)=>O(t,e),maxIndex(){return this.length-1},slides(){return $(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){z(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){et(t,this.clsEnter)},itemhide({target:t}){z(t,this.clsLeave)},itemhidden({target:t}){et(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,n=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),a=y(this.slides,this.clsActive)&&this.slides[o],l=this.getIndex(t,this.index),d=this.slides[l];if(a===d){n();return}if(this.dir=Pe(t,o),this.prevIndex=o,this.index=l,a&&!g(a,"beforeitemhide",[this])||!g(d,"beforeitemshow",[this,a])){this.index=this.prevIndex,n();return}const h=this._show(a,d,e).then(()=>{a&&g(a,"itemhidden",[this]),g(d,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&g(a,"itemhide",[this]),g(d,"itemshow",[this]),h},getIndex(t=this.index,e=this.index){return _(R(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length: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,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(xt(t)?this.slides[t]:t,xt(e)?this.slides[e]:e,i*(w?-1:1),s)}}};function Pe(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Mt(t){return .5*t+300}var We={props:{media:Boolean},data:{media:!1},connected(){const t=je(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,g(this.$el,it("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=E(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function je(t,e){if(vt(t)){if(he(t,"@"))t=I(m(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&B(t)?`(min-width: ${t}px)`:""}function He(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:ki,from:Le}=Array;function Fe(t){return typeof t=="function"}function at(t){return t!==null&&typeof t=="object"}function ze(t){return at(t)&&t===t.window}function Ve(t){return Et(t)===9}function Ct(t){return Et(t)>=1}function Et(t){return!ze(t)&&at(t)&&t.nodeType}function ot(t){return typeof t=="string"}function Be(t){return t===void 0}function q(t){return t&&S(t)[0]}function S(t){return Ct(t)?[t]:Array.from(t||[]).filter(Ct)}function Nt(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function ht(t,e,i){var s;if(at(e)){for(const r in e)ht(t,r,e[r]);return}if(Be(i))return(s=q(t))==null?void 0:s.getAttribute(e);for(const r of S(t))Fe(i)&&(i=i.call(r,ht(r,e))),i===null?Re(r,e):r.setAttribute(e,i)}function Re(t,e){S(t).forEach(i=>i.removeAttribute(e))}const Ue=typeof window<"u",qe=Ue?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ge(t){return S(t).some(e=>qe.call(e))}function Xe(t){var e;return(e=q(t))==null?void 0:e.parentElement}function Qe(t,e){return S(t).some(i=>i.matches(e))}function Je(t,e){return t=q(t),t?Le(t.children):[]}function Ot(t,e){return Je(Xe(t)).indexOf(t)}function Ke(t,e){return S(ii(t,q(e),"querySelectorAll"))}const Ye=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ze=/.*?[^\\](?![^(]*\))(?:,|$)/g,ti=/\s*,$/,ei=Nt(t=>{var e;t=t.replace(Ye,"$1 *");let i=!1;const s=[];for(let r of(e=t.match(Ze))!=null?e:[])r=r.replace(ti,"").trim(),i||(i=["!","+","~","-",">"].includes(r[0])),s.push(r);return{selector:s.join(","),selectors:s,isContextSelector:i}}),Tt=Nt(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function ii(t,e=document,i){if(!ot(t))return t;const s=ei(t);if(!s.isContextSelector)return lt(e,i,s.selector);t="";const r=s.selectors.length===1;for(let n of s.selectors){let o,a=e;if(n[0]==="!"&&([o,n]=Tt(n),a=e.parentElement.closest(o),!n&&r)||a&&n[0]==="-"&&([o,n]=Tt(n),a=a.previousElementSibling,a=Qe(a,o)?a:null,!n&&r))return a;if(a){if(r)return n[0]==="~"||n[0]==="+"?(n=`:scope > :nth-child(${Ot(a)+1}) ${n}`,a=a.parentElement):n[0]===">"&&(n=`:scope ${n}`),lt(a,i,n);t+=`,${si(a)} ${n}`}}return Ve(e)||(e=e.ownerDocument),lt(e,i,t)}function lt(t,e,i){try{return t[e](i)}catch{return null}}function si(t){const e=[];for(;t.parentNode;){const i=ht(t,"id");if(i){e.unshift(`#${ni(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${Ot(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function ni(t){return ot(t)?CSS.escape(t):""}const ri=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function ai(t){const e=ri.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),oi(i.content.childNodes)}function oi(t){return t.length>1?t:t[0]}function hi(t,e){return li(t)?S(ai(t)):Ke(t,e)}function li(t){return ot(t)&&He(t.trim(),"<")}function di(t){return Ge(t)?Math.ceil(Math.max(0,...hi("[stroke]",t).map(e=>e.getTotalLength()))):0}const G={x:X,y:X,rotate:X,scale:X,color:dt,backgroundColor:dt,borderColor:dt,blur:A,hue:A,fopacity:A,grayscale:A,invert:A,saturate:A,sepia:A,opacity:ui,stroke:fi,bgx:Pt,bgy:Pt},{keys:Dt}=Object;Ft(Dt(G),"list"),Ft(Dt(G),void 0);function X(t,e,i){let s=J(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${ce(t)}`,r=n=>I(I(n).toFixed(s==="px"?0:6))):t==="scale"&&(s="",r=n=>{var o;return J([n])?U(n,"width",e,!0)/e[`offset${(o=n.endsWith)!=null&&o.call(n,"vh")?"Height":"Width"}`]:I(n)}),i.length===1&&i.unshift(t==="scale"?1:0),i=k(i,r),(n,o)=>{n.transform=`${n.transform||""} ${t}(${j(i,o)}${s})`}}function dt(t,e,i){return i.length===1&&i.unshift(H(e,t,"")),i=k(i,s=>ci(e,s)),(s,r)=>{const[n,o,a]=Lt(i,r),l=n.map((d,h)=>(d+=a*(o[h]-d),h===3?I(d):parseInt(d,10))).join(",");s[t]=`rgba(${l})`}}function ci(t,e){return H(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(I)}function A(t,e,i){i.length===1&&i.unshift(0);const s=J(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=k(i),(r,n)=>{const o=j(i,n);r.filter=`${r.filter||""} ${t}(${o+s})`}}function ui(t,e,i){return i.length===1&&i.unshift(H(e,t,"")),i=k(i),(s,r)=>{s[t]=j(i,r)}}function fi(t,e,i){i.length===1&&i.unshift(0);const s=J(i),r=di(e);return i=k(i.reverse(),n=>(n=I(n),s==="%"?n*r/100:n)),i.some(([n])=>n)?(m(e,"strokeDasharray",r),(n,o)=>{n.strokeDashoffset=j(i,o)}):N}function Pt(t,e,i,s){i.length===1&&i.unshift(0);const r=t==="bgy"?"height":"width";s[t]=k(i,a=>U(a,r,e));const n=["bgx","bgy"].filter(a=>a in s);if(n.length===2&&t==="bgx")return N;if(H(e,"backgroundSize","")==="cover")return gi(t,e,i,s);const o={};for(const a of n)o[a]=Wt(e,a);return jt(n,o,s)}function gi(t,e,i,s){const r=mi(e);if(!r.width)return N;const n={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(h=>h in s),a={};for(const h of o){const u=s[h].map(([F])=>F),f=Math.min(...u),x=Math.max(...u),v=u.indexOf(f)<u.indexOf(x),C=x-f;a[h]=`${(v?-C:0)-(v?f:x)}px`,n[h==="bgy"?"height":"width"]+=C}const l=ue.cover(r,n);for(const h of o){const u=h==="bgy"?"height":"width",f=l[u]-n[u];a[h]=`max(${Wt(e,h)},-${f}px) + ${a[h]}`}const d=jt(o,a,s);return(h,u)=>{d(h,u),h.backgroundSize=`${l.width}px ${l.height}px`,h.backgroundRepeat="no-repeat"}}function Wt(t,e){return H(t,`background-position-${e.substr(-1)}`,"")}function jt(t,e,i){return function(s,r){for(const n of t){const o=j(i[n],r);s[`background-position-${n.substr(-1)}`]=`calc(${e[n]} + ${o}px)`}}}const Ht={},Q={};function mi(t){const e=m(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Q[e])return Q[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!Ht[e])?(fe(i,"error load",()=>{Q[e]=ct(i),g(t,it("load",!1))}),Ht[e]=!0,ct(i)):Q[e]=ct(i)}function ct(t){return{width:t.naturalWidth,height:t.naturalHeight}}function k(t,e=I){const i=[],{length:s}=t;let r=0;for(let n=0;n<s;n++){let[o,a]=vt(t[n])?t[n].trim().split(/ (?![^(]*\))/):[t[n]];if(o=e(o),a=a?I(a)/100:null,n===0?a===null?a=0:a&&i.push([o,0]):n===s-1&&(a===null?a=1:a!==1&&(i.push([o,a]),a=1)),i.push([o,a]),a===null)r++;else if(r){const l=i[n-r-1][1],d=(a-l)/(r+1);for(let h=r;h>0;h--)i[n-h][1]=l+d*(r-h+1);r=0}}return i}function Lt(t,e){const i=st(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function j(t,e){const[i,s,r]=Lt(t,e);return i+Math.abs(i-s)*r*(i<s?1:-1)}const pi=/^-?\d+(?:\.\d+)?(\S+)?/;function J(t,e){var i;for(const s of t){const r=(i=s.match)==null?void 0:i.call(s,pi);if(r)return r[1]}return e}function H(t,e,i){const s=t.style[e],r=m(m(t,e,i),e);return t.style[e]=s,r}function Ft(t,e){return t.reduce((i,s)=>(i[s]=e,i),{})}function xi(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var vi={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[$t({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),Se({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&ge(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=U(this.parallaxStart,"height",t,!0),i=U(this.parallaxEnd,"height",t,!0),s=xi(me(t,e,i),this.parallaxEasing),[r,n]=this.getIndexAt(s),o=this.getValidIndex(r+Math.ceil(n)),a=this.slides[r],l=this.slides[o],{triggerShow:d,triggerShown:h,triggerHide:u,triggerHidden:f}=wi(this);if(~this.prevIndex)for(const v of new Set([this.index,this.prevIndex]))b([o,r],v)||(u(this.slides[v]),f(this.slides[v]));const x=this.prevIndex!==r||this.index!==o;this.dir=1,this.prevIndex=r,this.index=o,a!==l&&u(a),d(l),x&&h(a),this._translate(a===l?1:n,a,l)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function wi(t){const{clsSlideActive:e,clsEnter:i,clsLeave:s}=t;return{triggerShow:r,triggerShown:n,triggerHide:o,triggerHidden:a};function r(l){y(l,s)&&(o(l),a(l)),y(l,e)||(g(l,"beforeitemshow",[t]),g(l,"itemshow",[t]))}function n(l){y(l,i)&&g(l,"itemshown",[t])}function o(l){y(l,e)||r(l),y(l,i)&&n(l),y(l,s)||(g(l,"beforeitemhide",[t]),g(l,"itemhide",[t]))}function a(l){y(l,s)&&g(l,"itemhidden",[t])}}var Ii={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},bi={observe:ye({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function zt(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function $i(t,e,i,{center:s,easing:r,list:n}){const o=t?L(t,n,s):L(e,n,s)+c(e).width*i,a=e?L(e,n,s):o+c(t).width*i*(w?-1:1);let l;return{dir:i,show(d,h=0,u){const f=u?"linear":r;return d-=Math.round(d*_(h,-1,1)),this.translate(h),h=t?h:_(h,0,1),ut(this.getItemIn(),"itemin",{percent:h,duration:d,timing:f,dir:i}),t&&ut(this.getItemIn(!0),"itemout",{percent:1-h,duration:d,timing:f,dir:i}),new Promise(x=>{l||(l=x),wt.start(n,{transform:zt(-a*(w?-1:1),"px")},d,f).then(l,N)})},cancel(){return wt.cancel(n)},reset(){m(n,"transform","")},async forward(d,h=this.percent()){return await this.cancel(),this.show(d,h,!0)},translate(d){const h=this.getDistance()*i*(w?-1:1);m(n,"transform",zt(_(-a+(h-h*d),-M(n),c(n).width)*(w?-1:1),"px"));const u=this.getActives(),f=this.getItemIn(),x=this.getItemIn(!0);d=t?_(d,-1,1):0;for(const v of $(n)){const C=b(u,v),F=v===f,ft=v===x,Ut=F||!ft&&(C||i*(w?-1:1)===-1^K(v,n)>K(t||e));ut(v,`itemtranslate${Ut?"in":"out"}`,{dir:i,percent:ft?1-d:F?d:C?1:0})}},percent(){return Math.abs((m(n,"transform").split(",")[4]*(w?-1:1)+o)/(a-o))},getDistance(){return Math.abs(a-o)},getItemIn(d=!1){let h=this.getActives(),u=Bt(n,L(e||t,n,s));if(d){const f=h;h=u,u=f}return u[st(u,f=>!b(h,f))]},getActives(){return Bt(n,L(t||e,n,s))}}}function L(t,e,i){const s=K(t,e);return i?s-yi(t,e):Math.min(s,Vt(e))}function Vt(t){return Math.max(0,M(t)-c(t).width)}function M(t,e){return It($(t).slice(0,e),i=>c(i).width)}function yi(t,e){return c(e).width/2-c(t).width/2}function K(t,e){return t&&(pe(t).left+(w?c(t).width-c(e).width:0))*(w?-1:1)||0}function Bt(t,e){e-=1;const i=c(t).width,s=e+i+2;return $(t).filter(r=>{const n=K(r,t),o=n+Math.min(c(r).width,i);return n>=e&&o<=s})}function ut(t,e,i){g(t,it(e,!1,!1,i))}var Rt={mixins:[_e,De,Ii,vi,bi],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:$i},computed:{finite({finite:t}){return t||Si(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return bt(this.sets);let t=0;const e=Vt(this.list),i=st(this.slides,s=>{if(t>=e)return!0;t+=c(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],s=c(this.list).width;for(let r=0;r<this.length;r++){const n=c(this.slides[r]).width;e+n>s&&(e=0),this.center?e<s/2&&e+n+c(this.slides[R(+r+1,this.slides)]).width/2>s/2&&(i.push(+r),e=s/2-n/2):e===0&&i.push(Math.min(+r,this.maxIndex)),e+=n}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return $(this.list).filter(xe)}},connected(){D(this.$el,this.clsContainer,!O(`.${this.clsContainer}`,this.$el))},observe:$t({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=tt(T(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!b(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!b(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 r=0;r<e;r++)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,s=M(this.list)/this.length;this.duration=Mt(s/this.velocity)*(c(this.slides[i]).width/s),this.reorder()},itemshow(){~this.prevIndex&&z(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){m(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((r,n)=>m(r,"order",this.dir>0&&n<t?1:this.dir<0&&n>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=c(this.list).width/2-c(e).width/2,s=0;for(;i>0;){const r=this.getIndex(--s+t,t),n=this.slides[r];m(n,"order",r>t?-2:-1),i-=c(n).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||b(this.sets,I(this.index))?this.clsActivated:""];for(const s of this.slides){const r=b(e,s);D(s,i,r),p(s,"aria-hidden",!r);for(const n of Y(ve,s))we(n,"_tabindex")||(n._tabindex=p(n,"tabindex")),p(n,"tabindex",r?n._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(b(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=c(this.list),e=-t,i=t*2,s=c(this.slides[this.index]).width,r=this.center?t/2-s/2:0,n=new Set;for(const o of[-1,1]){let a=r+(o>0?s:0),l=0;do{const d=this.slides[this.getIndex(this.index+o+l++*o)];a+=c(d).width*o,n.add(d)}while(this.length>l&&a>e&&a<i)}return Array.from(n)},getIndexAt(t){let e=-1;const i=this.center?M(this.list)-(c(this.slides[0]).width/2+c(bt(this.slides)).width/2):M(this.list,this.maxIndex);let s=t*i,r=0;do{const n=c(this.slides[++e]).width,o=this.center?n/2+c(this.slides[e+1]).width/2:n;r=s/o%1,s-=o}while(s>=0&&e<this.maxIndex);return[e,r]}}};function Si(t,e){if(!t||t.length<2)return!0;const{width:i}=c(t);if(!e)return Math.ceil(M(t))<Math.trunc(i+Ai(t));const s=$(t),r=Math.trunc(i/2);for(const n in s){const o=s[n],a=c(o).width,l=new Set([o]);let d=0;for(const h of[-1,1]){let u=a/2,f=0;for(;u<r;){const x=s[R(+n+h+f++*h,s)];if(l.has(x))return!0;u+=c(x).width,l.add(x)}d=Math.max(d,a/2+c(s[R(+n+h,s)]).width/2-(u-r))}if(Math.trunc(d)>It(s.filter(h=>!l.has(h)),h=>c(h).width))return!0}return!1}function Ai(t){return Math.max(0,...$(t).map(e=>c(e).width))}typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",Rt);export{Rt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.20.3-dev.1cfb4e2ef | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&>(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function gt(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 ut(t){return P(s.observeIntersection,t)}function mt(t={}){return ut({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 pt(t){return P((e,i)=>({disconnect:s.on(xt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function xt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var vt={connected(){s.addClass(this.$el,this.$options.id)}},wt={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++]||""))||""}}},It={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},V={passive:!0,capture:!0},bt="touchstart mousedown",D="touchmove mousemove",U="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var $t={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:bt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&yt(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,D,this.move,b),s.on(document,U,this.end,V),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",q,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),h=G.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=G.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],l=this.index!==r,d=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,D,this.move,b),s.off(document,U,this.end,V),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",q,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function yt(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 St=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${St++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};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"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=X(this,a)),r=a.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},Ct={mixins:[It,$t,kt,wt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),l=this.slides[c];if(a===l){r();return}if(this.dir=_t(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,l,e).then(()=>{a&&s.trigger(a,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&s.trigger(a,"itemhide",[this]),s.trigger(l,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function _t(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=Mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Mt(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Et(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:ve,from:Nt}=Array;function Ot(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Tt(t){return F(t)&&t===t.window}function Pt(t){return K(t)===9}function J(t){return K(t)>=1}function K(t){return!Tt(t)&&F(t)&&t.nodeType}function R(t){return typeof t=="string"}function Dt(t){return t===void 0}function _(t){return t&&p(t)[0]}function p(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function Y(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function W(t,e,i){var n;if(F(e)){for(const o in e)W(t,o,e[o]);return}if(Dt(i))return(n=_(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Ot(i)&&(i=i.call(o,W(o,e))),i===null?Ft(o,e):o.setAttribute(e,i)}function Ft(t,e){p(t).forEach(i=>i.removeAttribute(e))}const Rt=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Wt(t){return p(t).some(e=>Rt.call(e))}function jt(t){var e;return(e=_(t))==null?void 0:e.parentElement}function Ht(t,e){return p(t).some(i=>i.matches(e))}function Lt(t,e){return t=_(t),t?Nt(t.children):[]}function Z(t,e){return Lt(jt(t)).indexOf(t)}function Bt(t,e){return p(Gt(t,_(e),"querySelectorAll"))}const zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Vt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ut=/\s*,$/,qt=Y(t=>{var e;t=t.replace(zt,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Vt))!=null?e:[])o=o.replace(Ut,"").trim(),i||(i=["!","+","~","-",">"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}}),tt=Y(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Gt(t,e=document,i){if(!R(t))return t;const n=qt(t);if(!n.isContextSelector)return j(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=tt(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=tt(r),a=a.previousElementSibling,a=Ht(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Z(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),j(a,i,r);t+=`,${Xt(a)} ${r}`}}return Pt(e)||(e=e.ownerDocument),j(e,i,t)}function j(t,e,i){try{return t[e](i)}catch{return null}}function Xt(t){const e=[];for(;t.parentNode;){const i=W(t,"id");if(i){e.unshift(`#${Qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Z(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Qt(t){return R(t)?CSS.escape(t):""}const Jt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Kt(t){const e=Jt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Yt(i.content.childNodes)}function Yt(t){return t.length>1?t:t[0]}function Zt(t,e){return te(t)?p(Kt(t)):Bt(t,e)}function te(t){return R(t)&&Et(t.trim(),"<")}function ee(t){return Wt(t)?Math.ceil(Math.max(0,...Zt("[stroke]",t).map(e=>e.getTotalLength()))):0}const A={x:M,y:M,rotate:M,scale:M,color:H,backgroundColor:H,borderColor:H,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ie,stroke:ne,bgx:st,bgy:st},{keys:et}=Object;at(et(A),"list"),at(et(A),void 0);function M(t,e,i){let n=N(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 N([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}(${y(i,h)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i,n=>se(e,n)),(n,o)=>{const[r,h,a]=ot(i,o),c=r.map((l,d)=>(l+=a*(h[d]-l),d===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${c})`}}function se(t,e){return S(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=N(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const h=y(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function ie(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i),(n,o)=>{n[t]=y(i,o)}}function ne(t,e,i){i.length===1&&i.unshift(0);const n=N(i),o=ee(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=y(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(S(e,"backgroundSize","")==="cover")return re(t,e,i,n);const h={};for(const a of r)h[a]=it(e,a);return nt(r,h,n)}function re(t,e,i,n){const o=oe(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const f=n[d].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),C=u-g;a[d]=`${(m?-C:0)-(m?g:u)}px`,r[d==="bgy"?"height":"width"]+=C}const c=s.Dimensions.cover(o,r);for(const d of h){const f=d==="bgy"?"height":"width",g=c[f]-r[f];a[d]=`max(${it(e,d)},-${g}px) + ${a[d]}`}const l=nt(h,a,n);return(d,f)=>{l(d,f),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function it(t,e){return S(t,`background-position-${e.substr(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const h=y(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const rt={},E={};function oe(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(E[e])return E[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{E[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):E[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],l=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+l*(o-d+1);o=0}}return i}function 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 y(t,e){const[i,n,o]=ot(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ae=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ae);if(o)return o[1]}return e}function S(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 he(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var de={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}),pt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=he(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),h=this.getValidIndex(o+Math.ceil(r)),a=this.slides[o],c=this.slides[h],{triggerShow:l,triggerShown:d,triggerHide:f,triggerHidden:g}=ce(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([h,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==h;this.dir=1,this.prevIndex=o,this.index=h,a!==c&&f(a),l(c),u&&d(a),this._translate(a===c?1:r,a,c)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ce(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 le={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},fe={observe:mt({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+=t?e:"",`translate3d(${t}, 0, 0)`}function ge(t,e,i,{center:n,easing:o,list:r}){const h=t?k(t,r,n):k(e,r,n)+s.dimensions(e).width*i,a=e?k(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1);let c;return{dir:i,show(l,d=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(d,-1,1)),this.translate(d),d=t?d:s.clamp(d,0,1),B(this.getItemIn(),"itemin",{percent:d,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-d,duration:l,timing:g,dir:i}),new Promise(u=>{c||(c=u),s.Transition.start(r,{transform:ht(-a*(s.isRtl?-1:1),"px")},l,g).then(c,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){const d=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-a+(d-d*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const C=s.includes(f,m),T=m===g,ft=m===u,xe=T||!ft&&(C||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${xe?"in":"out"}`,{dir:i,percent:ft?1-l:T?l:C?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(l=!1){let d=this.getActives(),f=ct(r,k(e||t,r,n));if(l){const g=d;d=f,f=g}return f[s.findIndex(f,g=>!s.includes(d,g))]},getActives(){return ct(r,k(t||e,r,n))}}}function k(t,e,i){const n=O(t,e);return i?n-ue(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 ue(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ct(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var lt={mixins:[vt,Ct,le,de,fe],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:ge},computed:{finite({finite:t}){return t||me(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)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.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const l=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(l).width*h,r.add(l)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function me(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+pe(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let l=0;for(const d of[-1,1]){let f=a/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;f+=s.dimensions(u).width,c.add(u)}l=Math.max(l,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function pe(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
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&>(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function gt(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 ut(t){return P(s.observeIntersection,t)}function mt(t={}){return ut({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 pt(t){return P((e,i)=>({disconnect:s.on(xt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function xt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var vt={connected(){s.addClass(this.$el,this.$options.id)}},wt={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++]||""))||""}}},It={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},V={passive:!0,capture:!0},bt="touchstart mousedown",D="touchmove mousemove",U="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var $t={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:bt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&yt(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,D,this.move,b),s.on(document,U,this.end,V),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",q,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),h=G.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=G.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],l=this.index!==r,d=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,D,this.move,b),s.off(document,U,this.end,V),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",q,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function yt(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 St=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${St++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};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"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=X(this,a)),r=a.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},Ct={mixins:[It,$t,kt,wt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),l=this.slides[c];if(a===l){r();return}if(this.dir=_t(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,l,e).then(()=>{a&&s.trigger(a,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&s.trigger(a,"itemhide",[this]),s.trigger(l,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function _t(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=Mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Mt(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Et(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:ve,from:Nt}=Array;function Ot(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Tt(t){return F(t)&&t===t.window}function Pt(t){return K(t)===9}function J(t){return K(t)>=1}function K(t){return!Tt(t)&&F(t)&&t.nodeType}function R(t){return typeof t=="string"}function Dt(t){return t===void 0}function _(t){return t&&p(t)[0]}function p(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function Y(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function W(t,e,i){var n;if(F(e)){for(const o in e)W(t,o,e[o]);return}if(Dt(i))return(n=_(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Ot(i)&&(i=i.call(o,W(o,e))),i===null?Ft(o,e):o.setAttribute(e,i)}function Ft(t,e){p(t).forEach(i=>i.removeAttribute(e))}const Rt=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Wt(t){return p(t).some(e=>Rt.call(e))}function jt(t){var e;return(e=_(t))==null?void 0:e.parentElement}function Ht(t,e){return p(t).some(i=>i.matches(e))}function Lt(t,e){return t=_(t),t?Nt(t.children):[]}function Z(t,e){return Lt(jt(t)).indexOf(t)}function Bt(t,e){return p(Gt(t,_(e),"querySelectorAll"))}const zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Vt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ut=/\s*,$/,qt=Y(t=>{var e;t=t.replace(zt,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Vt))!=null?e:[])o=o.replace(Ut,"").trim(),i||(i=["!","+","~","-",">"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}}),tt=Y(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Gt(t,e=document,i){if(!R(t))return t;const n=qt(t);if(!n.isContextSelector)return j(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=tt(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=tt(r),a=a.previousElementSibling,a=Ht(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Z(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),j(a,i,r);t+=`,${Xt(a)} ${r}`}}return Pt(e)||(e=e.ownerDocument),j(e,i,t)}function j(t,e,i){try{return t[e](i)}catch{return null}}function Xt(t){const e=[];for(;t.parentNode;){const i=W(t,"id");if(i){e.unshift(`#${Qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Z(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Qt(t){return R(t)?CSS.escape(t):""}const Jt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Kt(t){const e=Jt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Yt(i.content.childNodes)}function Yt(t){return t.length>1?t:t[0]}function Zt(t,e){return te(t)?p(Kt(t)):Bt(t,e)}function te(t){return R(t)&&Et(t.trim(),"<")}function ee(t){return Wt(t)?Math.ceil(Math.max(0,...Zt("[stroke]",t).map(e=>e.getTotalLength()))):0}const A={x:M,y:M,rotate:M,scale:M,color:H,backgroundColor:H,borderColor:H,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ie,stroke:ne,bgx:st,bgy:st},{keys:et}=Object;at(et(A),"list"),at(et(A),void 0);function M(t,e,i){let n=N(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 N([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}(${y(i,h)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i,n=>se(e,n)),(n,o)=>{const[r,h,a]=ot(i,o),c=r.map((l,d)=>(l+=a*(h[d]-l),d===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${c})`}}function se(t,e){return S(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=N(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const h=y(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function ie(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i),(n,o)=>{n[t]=y(i,o)}}function ne(t,e,i){i.length===1&&i.unshift(0);const n=N(i),o=ee(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=y(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(S(e,"backgroundSize","")==="cover")return re(t,e,i,n);const h={};for(const a of r)h[a]=it(e,a);return nt(r,h,n)}function re(t,e,i,n){const o=oe(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const f=n[d].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),C=u-g;a[d]=`${(m?-C:0)-(m?g:u)}px`,r[d==="bgy"?"height":"width"]+=C}const c=s.Dimensions.cover(o,r);for(const d of h){const f=d==="bgy"?"height":"width",g=c[f]-r[f];a[d]=`max(${it(e,d)},-${g}px) + ${a[d]}`}const l=nt(h,a,n);return(d,f)=>{l(d,f),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function it(t,e){return S(t,`background-position-${e.substr(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const h=y(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const rt={},E={};function oe(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(E[e])return E[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{E[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):E[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],l=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+l*(o-d+1);o=0}}return i}function 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 y(t,e){const[i,n,o]=ot(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ae=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ae);if(o)return o[1]}return e}function S(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 he(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var de={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}),pt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=he(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),h=this.getValidIndex(o+Math.ceil(r)),a=this.slides[o],c=this.slides[h],{triggerShow:l,triggerShown:d,triggerHide:f,triggerHidden:g}=ce(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([h,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==h;this.dir=1,this.prevIndex=o,this.index=h,a!==c&&f(a),l(c),u&&d(a),this._translate(a===c?1:r,a,c)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ce(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 le={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},fe={observe:mt({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+=t?e:"",`translate3d(${t}, 0, 0)`}function ge(t,e,i,{center:n,easing:o,list:r}){const h=t?k(t,r,n):k(e,r,n)+s.dimensions(e).width*i,a=e?k(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1);let c;return{dir:i,show(l,d=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(d,-1,1)),this.translate(d),d=t?d:s.clamp(d,0,1),B(this.getItemIn(),"itemin",{percent:d,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-d,duration:l,timing:g,dir:i}),new Promise(u=>{c||(c=u),s.Transition.start(r,{transform:ht(-a*(s.isRtl?-1:1),"px")},l,g).then(c,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){const d=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-a+(d-d*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const C=s.includes(f,m),T=m===g,ft=m===u,xe=T||!ft&&(C||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${xe?"in":"out"}`,{dir:i,percent:ft?1-l:T?l:C?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(l=!1){let d=this.getActives(),f=ct(r,k(e||t,r,n));if(l){const g=d;d=f,f=g}return f[s.findIndex(f,g=>!s.includes(d,g))]},getActives(){return ct(r,k(t||e,r,n))}}}function k(t,e,i){const n=O(t,e);return i?n-ue(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 ue(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ct(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var lt={mixins:[vt,Ct,le,de,fe],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:ge},computed:{finite({finite:t}){return t||me(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)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.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const l=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(l).width*h,r.add(l)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function me(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+pe(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let l=0;for(const d of[-1,1]){let f=a/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;f+=s.dimensions(u).width,c.add(u)}l=Math.max(l,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function pe(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});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{on as it,trigger as _,createEvent as T,isString as D,startsWith as rt,toFloat as f,css as d,isNumeric as ot,isUndefined as st,clamp as ct,propName as ut,ucfirst as at,noop as y,Dimensions as ft,once as lt,findIndex as ht,toPx as H,fastdom as p,Transition as R,endsWith as dt}from"uikit-util";var gt={props:{media:Boolean},data:{media:!1},connected(){const t=mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const n=()=>{this.matchMedia=this.mediaObj.matches,_(this.$el,T("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=it(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function mt(t,n){if(D(t)){if(rt(t,"@"))t=f(d(n,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&ot(t)?`(min-width: ${t}px)`:""}function $t(t,n){var e;return(e=t==null?void 0:t.startsWith)==null?void 0:e.call(t,n)}const{isArray:Xt,from:bt}=Array;function xt(t){return typeof t=="function"}function P(t){return t!==null&&typeof t=="object"}function wt(t){return P(t)&&t===t.window}function yt(t){return B(t)===9}function U(t){return B(t)>=1}function B(t){return!wt(t)&&P(t)&&t.nodeType}function j(t){return typeof t=="string"}function pt(t){return t===void 0}function k(t){return t&&g(t)[0]}function g(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function V(t){const n=Object.create(null);return(e,...i)=>n[e]||(n[e]=t(e,...i))}function F(t,n,e){var i;if(P(n)){for(const r in n)F(t,r,n[r]);return}if(pt(e))return(i=k(t))==null?void 0:i.getAttribute(n);for(const r of g(t))xt(e)&&(e=e.call(r,F(r,n))),e===null?kt(r,n):r.setAttribute(n,e)}function kt(t,n){g(t).forEach(e=>e.removeAttribute(n))}const vt=typeof window<"u",St=vt?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ct(t){return g(t).some(n=>St.call(n))}function Mt(t){var n;return(n=k(t))==null?void 0:n.parentElement}function Ot(t,n){return g(t).some(e=>e.matches(n))}function Pt(t,n){return t=k(t),t?bt(t.children):[]}function z(t,n){return Pt(Mt(t)).indexOf(t)}function jt(t,n){return g(Et(t,k(n),"querySelectorAll"))}const Ft=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Wt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Nt=/\s*,$/,At=V(t=>{var n;t=t.replace(Ft,"$1 *");let e=!1;const i=[];for(let r of(n=t.match(Wt))!=null?n:[])r=r.replace(Nt,"").trim(),e||(e=["!","+","~","-",">"].includes(r[0])),i.push(r);return{selector:i.join(","),selectors:i,isContextSelector:e}}),L=V(t=>{t=t.substr(1).trim();const n=t.indexOf(" ");return~n?[t.substring(0,n),t.substring(n+1)]:[t,""]});function Et(t,n=document,e){if(!j(t))return t;const i=At(t);if(!i.isContextSelector)return W(n,e,i.selector);t="";const r=i.selectors.length===1;for(let o of i.selectors){let c,s=n;if(o[0]==="!"&&([c,o]=L(o),s=n.parentElement.closest(c),!o&&r)||s&&o[0]==="-"&&([c,o]=L(o),s=s.previousElementSibling,s=Ot(s,c)?s:null,!o&&r))return s;if(s){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${z(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),W(s,e,o);t+=`,${It(s)} ${o}`}}return yt(n)||(n=n.ownerDocument),W(n,e,t)}function W(t,n,e){try{return t[n](e)}catch{return null}}function It(t){const n=[];for(;t.parentNode;){const e=F(t,"id");if(e){n.unshift(`#${_t(e)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${z(t)+1})`),n.unshift(i),t=t.parentNode}}return n.join(" > ")}function _t(t){return j(t)?CSS.escape(t):""}const Tt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const n=Tt.exec(t);if(n)return document.createElement(n[1]);const e=document.createElement("template");return e.innerHTML=t.trim(),Ht(e.content.childNodes)}function Ht(t){return t.length>1?t:t[0]}function Rt(t,n){return Ut(t)?g(Dt(t)):jt(t,n)}function Ut(t){return j(t)&&$t(t.trim(),"<")}function Bt(t){return Ct(t)?Math.ceil(Math.max(0,...Rt("[stroke]",t).map(n=>n.getTotalLength()))):0}const v={x:S,y:S,rotate:S,scale:S,color:N,backgroundColor:N,borderColor:N,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Lt,stroke:Qt,bgx:q,bgy:q},{keys:Q}=Object;var Vt={mixins:[gt],props:Y(Q(v),"list"),data:Y(Q(v),void 0),computed:{props(t,n){const e={};for(const r in t)r in v&&!st(t[r])&&(e[r]=t[r].slice());const i={};for(const r in e)i[r]=v[r](r,n,e[r],e);return i}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))d(this.$el,t,"")},getCss(t){const n={};for(const e in this.props)this.props[e](n,ct(t));return n.willChange=Object.keys(n).map(ut).join(","),n}}};function S(t,n,e){let i=M(e)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${at(t)}`,r=o=>f(f(o).toFixed(i==="px"?0:6))):t==="scale"&&(i="",r=o=>{var c;return M([o])?H(o,"width",n,!0)/n[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:f(o)}),e.length===1&&e.unshift(t==="scale"?1:0),e=$(e,r),(o,c)=>{o.transform=`${o.transform||""} ${t}(${x(e,c)}${i})`}}function N(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e,i=>zt(n,i)),(i,r)=>{const[o,c,s]=X(e,r),l=o.map((h,u)=>(h+=s*(c[u]-h),u===3?f(h):parseInt(h,10))).join(",");i[t]=`rgba(${l})`}}function zt(t,n){return w(t,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(f)}function m(t,n,e){e.length===1&&e.unshift(0);const i=M(e)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,e=$(e),(r,o)=>{const c=x(e,o);r.filter=`${r.filter||""} ${t}(${c+i})`}}function Lt(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e),(i,r)=>{i[t]=x(e,r)}}function Qt(t,n,e){e.length===1&&e.unshift(0);const i=M(e),r=Bt(n);return e=$(e.reverse(),o=>(o=f(o),i==="%"?o*r/100:o)),e.some(([o])=>o)?(d(n,"strokeDasharray",r),(o,c)=>{o.strokeDashoffset=x(e,c)}):y}function q(t,n,e,i){e.length===1&&e.unshift(0);const r=t==="bgy"?"height":"width";i[t]=$(e,s=>H(s,r,n));const o=["bgx","bgy"].filter(s=>s in i);if(o.length===2&&t==="bgx")return y;if(w(n,"backgroundSize","")==="cover")return qt(t,n,e,i);const c={};for(const s of o)c[s]=G(n,s);return J(o,c,i)}function qt(t,n,e,i){const r=Gt(n);if(!r.width)return y;const o={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(u=>u in i),s={};for(const u of c){const a=i[u].map(([et])=>et),b=Math.min(...a),O=Math.max(...a),E=a.indexOf(b)<a.indexOf(O),I=O-b;s[u]=`${(E?-I:0)-(E?b:O)}px`,o[u==="bgy"?"height":"width"]+=I}const l=ft.cover(r,o);for(const u of c){const a=u==="bgy"?"height":"width",b=l[a]-o[a];s[u]=`max(${G(n,u)},-${b}px) + ${s[u]}`}const h=J(c,s,i);return(u,a)=>{h(u,a),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function G(t,n){return w(t,`background-position-${n.substr(-1)}`,"")}function J(t,n,e){return function(i,r){for(const o of t){const c=x(e[o],r);i[`background-position-${o.substr(-1)}`]=`calc(${n[o]} + ${c}px)`}}}const K={},C={};function Gt(t){const n=d(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[n])return C[n];const e=new Image;return n&&(e.src=n,!e.naturalWidth&&!K[n])?(lt(e,"error load",()=>{C[n]=A(e),_(t,T("load",!1))}),K[n]=!0,A(e)):C[n]=A(e)}function A(t){return{width:t.naturalWidth,height:t.naturalHeight}}function $(t,n=f){const e=[],{length:i}=t;let r=0;for(let o=0;o<i;o++){let[c,s]=D(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(c=n(c),s=s?f(s)/100:null,o===0?s===null?s=0:s&&e.push([c,0]):o===i-1&&(s===null?s=1:s!==1&&(e.push([c,s]),s=1)),e.push([c,s]),s===null)r++;else if(r){const l=e[o-r-1][1],h=(s-l)/(r+1);for(let u=r;u>0;u--)e[o-u][1]=l+h*(r-u+1);r=0}}return e}function X(t,n){const e=ht(t.slice(1),([,i])=>n<=i)+1;return[t[e-1][0],t[e][0],(n-t[e-1][1])/(t[e][1]-t[e-1][1])]}function x(t,n){const[e,i,r]=X(t,n);return e+Math.abs(e-i)*r*(e<i?1:-1)}const Jt=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,n){var e;for(const i of t){const r=(e=i.match)==null?void 0:e.call(i,Jt);if(r)return r[1]}return n}function w(t,n,e){const i=t.style[n],r=d(d(t,n,e),n);return t.style[n]=i,r}function Y(t,n){return t.reduce((e,i)=>(e[i]=n,e),{})}var Z={mixins:[Vt],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,duration:e,timing:i,dir:r}}){p.read(()=>{if(!this.matchMedia)return;const o=this.getCss(nt(t,r,n)),c=this.getCss(tt(t)?.5:r>0?1:0);p.write(()=>{d(this.$el,o),R.start(this.$el,c,e,i).catch(y)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){R.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,dir:e}}){p.read(()=>{if(!this.matchMedia){this.reset();return}const i=this.getCss(nt(t,e,n));p.write(()=>d(this.$el,i))})}}]};function tt(t){return dt(t,"in")}function nt(t,n,e){return e/=2,tt(t)^n<0?e:1-e}typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Z);export{Z as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,t){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Y(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:En,from:Z}=Array;function k(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function U(n){return C(n)&&n===n.window}function nn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!U(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function tn(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function W(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function O(n,t,e){var r;if(C(t)){for(const o in t)O(n,o,t[o]);return}if(tn(e))return(r=w(n))==null?void 0:r.getAttribute(t);for(const o of l(n))k(e)&&(e=e.call(o,O(o,t))),e===null?en(o,t):o.setAttribute(t,e)}function en(n,t){l(n).forEach(e=>e.removeAttribute(t))}const rn=typeof window<"u"?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function on(n){return l(n).some(t=>rn.call(t))}function sn(n){var t;return(t=w(n))==null?void 0:t.parentElement}function cn(n,t){return l(n).some(e=>e.matches(t))}function an(n,t){return n=w(n),n?Z(n.children):[]}function _(n,t){return an(sn(n)).indexOf(n)}function fn(n,t){return l(gn(n,w(t),"querySelectorAll"))}const un=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,dn=/.*?[^\\](?![^(]*\))(?:,|$)/g,hn=/\s*,$/,ln=W(n=>{var t;n=n.replace(un,"$1 *");let e=!1;const r=[];for(let o of(t=n.match(dn))!=null?t:[])o=o.replace(hn,"").trim(),e||(e=["!","+","~","-",">"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:e}}),A=W(n=>{n=n.substr(1).trim();const t=n.indexOf(" ");return~t?[n.substring(0,t),n.substring(t+1)]:[n,""]});function gn(n,t=document,e){if(!M(n))return n;const r=ln(n);if(!r.isContextSelector)return P(t,e,r.selector);n="";const o=r.selectors.length===1;for(let i of r.selectors){let a,c=t;if(i[0]==="!"&&([a,i]=A(i),c=t.parentElement.closest(a),!i&&o)||c&&i[0]==="-"&&([a,i]=A(i),c=c.previousElementSibling,c=cn(c,a)?c:null,!i&&o))return c;if(c){if(o)return i[0]==="~"||i[0]==="+"?(i=`:scope > :nth-child(${_(c)+1}) ${i}`,c=c.parentElement):i[0]===">"&&(i=`:scope ${i}`),P(c,e,i);n+=`,${mn(c)} ${i}`}}return nn(t)||(t=t.ownerDocument),P(t,e,n)}function P(n,t,e){try{return n[t](e)}catch{return null}}function mn(n){const t=[];for(;n.parentNode;){const e=O(n,"id");if(e){t.unshift(`#${$n(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${_(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function $n(n){return M(n)?CSS.escape(n):""}const bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const t=bn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),pn(e.content.childNodes)}function pn(n){return n.length>1?n:n[0]}function wn(n,t){return yn(n)?l(xn(n)):fn(n,t)}function yn(n){return M(n)&&Y(n.trim(),"<")}function vn(n){return on(n)?Math.ceil(Math.max(0,...wn("[stroke]",n).map(t=>t.getTotalLength()))):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:Cn,stroke:Mn,bgx:H,bgy:H},{keys:D}=Object;var Sn={mixins:[$],props:L(D(y),"list"),data:L(D(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!s.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,s.clamp(n));return t.willChange=Object.keys(t).map(s.propName).join(","),t}}};function v(n,t,e){let r=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,o=i=>s.toFloat(s.toFloat(i).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=i=>{var a;return F([i])?s.toPx(i,"width",t,!0)/t[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(i,a)=>{i.transform=`${i.transform||""} ${n}(${b(e,a)}${r})`}}function j(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>Fn(t,r)),(r,o)=>{const[i,a,c]=z(e,o),d=i.map((h,f)=>(h+=c*(a[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${d})`}}function Fn(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,i)=>{const a=b(e,i);o.filter=`${o.filter||""} ${n}(${a+r})`}}function Cn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,o)=>{r[n]=b(e,o)}}function Mn(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=vn(t);return e=m(e.reverse(),i=>(i=s.toFloat(i),r==="%"?i*o/100:i)),e.some(([i])=>i)?(s.css(t,"strokeDasharray",o),(i,a)=>{i.strokeDashoffset=b(e,a)}):s.noop}function H(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,c=>s.toPx(c,o,t));const i=["bgx","bgy"].filter(c=>c in r);if(i.length===2&&n==="bgx")return s.noop;if(x(t,"backgroundSize","")==="cover")return On(n,t,e,r);const a={};for(const c of i)a[c]=R(t,c);return B(i,a,r)}function On(n,t,e,r){const o=Pn(t);if(!o.width)return s.noop;const i={width:t.offsetWidth,height:t.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),c={};for(const f of a){const u=r[f].map(([In])=>In),p=Math.min(...u),E=Math.max(...u),J=u.indexOf(p)<u.indexOf(E),K=E-p;c[f]=`${(J?-K:0)-(J?p:E)}px`,i[f==="bgy"?"height":"width"]+=K}const d=s.Dimensions.cover(o,i);for(const f of a){const u=f==="bgy"?"height":"width",p=d[u]-i[u];c[f]=`max(${R(t,f)},-${p}px) + ${c[f]}`}const h=B(a,c,r);return(f,u)=>{h(f,u),f.backgroundSize=`${d.width}px ${d.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function B(n,t,e){return function(r,o){for(const i of n){const a=b(e[i],o);r[`background-position-${i.substr(-1)}`]=`calc(${t[i]} + ${a}px)`}}}const V={},S={};function Pn(n){const t=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!V[t])?(s.once(e,"error load",()=>{S[t]=I(e),s.trigger(n,s.createEvent("load",!1))}),V[t]=!0,I(e)):S[t]=I(e)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=s.toFloat){const e=[],{length:r}=n;let o=0;for(let i=0;i<r;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=t(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&e.push([a,0]):i===r-1&&(c===null?c=1:c!==1&&(e.push([a,c]),c=1)),e.push([a,c]),c===null)o++;else if(o){const d=e[i-o-1][1],h=(c-d)/(o+1);for(let f=o;f>0;f--)e[i-f][1]=d+h*(o-f+1);o=0}}return e}function z(n,t){const e=s.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function b(n,t){const[e,r,o]=z(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const jn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,jn);if(o)return o[1]}return t}function x(n,t,e){const r=n.style[t],o=s.css(s.css(n,t,e),t);return n.style[t]=r,o}function L(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}var q={mixins:[Sn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,duration:e,timing:r,dir:o}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(G(n,o,t)),a=this.getCss(Q(n)?.5:o>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,e,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,dir:e}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(G(n,e,t));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function Q(n){return s.endsWith(n,"in")}function G(n,t,e){return e/=2,Q(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",q),q});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{addClass as k,fastdom as rt,isPlainObject as Ht,assign as Dt,toNodes as at,isFunction as Wt,$$ as ot,removeAttr as jt,observeResize as Ft,observeIntersection as Lt,on as _,scrollParent as Rt,trigger as u,createEvent as V,isString as ht,startsWith as Ut,toFloat as v,css as g,isNumeric as M,isUndefined as Bt,clamp as q,propName as Vt,ucfirst as qt,noop as y,Dimensions as Gt,once as Xt,findIndex as Qt,toPx as O,query as Jt,scrolledOver as Kt,includes as lt,hasClass as I,Transition as G,attr as p,matches as T,getEventPos as Yt,isRtl as P,isTouch as Zt,selInput as te,off as X,toArray as ee,memoize as ie,hyphenate as dt,$ as H,children as ct,isTag as ne,data as D,toNumber as ut,empty as se,append as re,toggleClass as Q,parent as ae,removeClass as W,getIndex as oe,isNumber as ft}from"uikit-util";var he={connected(){k(this.$el,this.$options.id)}};function le(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,rt.read(()=>{t._connected&&de(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function de(t,e){for(const{read:i,write:n,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(o=>e.has(o)))continue;let s;i&&(s=i.call(t,t._data,e),s&&Ht(s)&&Dt(t._data,s)),n&&s!==!1&&rt.write(()=>{t._connected&&n.call(t,t._data,e)})}}function gt(t){return J(Ft,t,"resize")}function ce(t){return J(Lt,t)}function ue(t={}){return ce({handler:function(e,i){const{targets:n=this.$el,preload:r=5}=t;for(const s of at(Wt(n)?n(this):n))ot('[loading="lazy"]',s).slice(0,r-1).forEach(o=>jt(o,"loading"));for(const s of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))i.unobserve(s)},...t})}function fe(t){return J((e,i)=>({disconnect:_(ge(e),"scroll",i,{passive:!0})}),t,"scroll")}function J(t,e,i){return{observe:t,handler(){le(this,i)},...e}}function ge(t){return at(t).map(e=>{const{ownerDocument:i}=e,n=Rt(e,!0);return n===i.scrollingElement?i:n})}var me={props:{media:Boolean},data:{media:!1},connected(){const t=pe(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,u(this.$el,V("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=_(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function pe(t,e){if(ht(t)){if(Ut(t,"@"))t=v(g(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&M(t)?`(min-width: ${t}px)`:""}function xe(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:mi,from:ve}=Array;function be(t){return typeof t=="function"}function K(t){return t!==null&&typeof t=="object"}function Ie(t){return K(t)&&t===t.window}function we(t){return pt(t)===9}function mt(t){return pt(t)>=1}function pt(t){return!Ie(t)&&K(t)&&t.nodeType}function Y(t){return typeof t=="string"}function $e(t){return t===void 0}function j(t){return t&&w(t)[0]}function w(t){return mt(t)?[t]:Array.from(t||[]).filter(mt)}function xt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function Z(t,e,i){var n;if(K(e)){for(const r in e)Z(t,r,e[r]);return}if($e(i))return(n=j(t))==null?void 0:n.getAttribute(e);for(const r of w(t))be(i)&&(i=i.call(r,Z(r,e))),i===null?ye(r,e):r.setAttribute(e,i)}function ye(t,e){w(t).forEach(i=>i.removeAttribute(e))}const Se=typeof window<"u",ke=Se?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function _e(t){return w(t).some(e=>ke.call(e))}function Ae(t){var e;return(e=j(t))==null?void 0:e.parentElement}function ze(t,e){return w(t).some(i=>i.matches(e))}function Ee(t,e){return t=j(t),t?ve(t.children):[]}function vt(t,e){return Ee(Ae(t)).indexOf(t)}function Ne(t,e){return w(Pe(t,j(e),"querySelectorAll"))}const Ce=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Me=/.*?[^\\](?![^(]*\))(?:,|$)/g,Oe=/\s*,$/,Te=xt(t=>{var e;t=t.replace(Ce,"$1 *");let i=!1;const n=[];for(let r of(e=t.match(Me))!=null?e:[])r=r.replace(Oe,"").trim(),i||(i=["!","+","~","-",">"].includes(r[0])),n.push(r);return{selector:n.join(","),selectors:n,isContextSelector:i}}),bt=xt(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Pe(t,e=document,i){if(!Y(t))return t;const n=Te(t);if(!n.isContextSelector)return tt(e,i,n.selector);t="";const r=n.selectors.length===1;for(let s of n.selectors){let o,a=e;if(s[0]==="!"&&([o,s]=bt(s),a=e.parentElement.closest(o),!s&&r)||a&&s[0]==="-"&&([o,s]=bt(s),a=a.previousElementSibling,a=ze(a,o)?a:null,!s&&r))return a;if(a){if(r)return s[0]==="~"||s[0]==="+"?(s=`:scope > :nth-child(${vt(a)+1}) ${s}`,a=a.parentElement):s[0]===">"&&(s=`:scope ${s}`),tt(a,i,s);t+=`,${He(a)} ${s}`}}return we(e)||(e=e.ownerDocument),tt(e,i,t)}function tt(t,e,i){try{return t[e](i)}catch{return null}}function He(t){const e=[];for(;t.parentNode;){const i=Z(t,"id");if(i){e.unshift(`#${De(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${vt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function De(t){return Y(t)?CSS.escape(t):""}const We=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function je(t){const e=We.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Fe(i.content.childNodes)}function Fe(t){return t.length>1?t:t[0]}function Le(t,e){return Re(t)?w(je(t)):Ne(t,e)}function Re(t){return Y(t)&&xe(t.trim(),"<")}function Ue(t){return _e(t)?Math.ceil(Math.max(0,...Le("[stroke]",t).map(e=>e.getTotalLength()))):0}const F={x:L,y:L,rotate:L,scale:L,color:et,backgroundColor:et,borderColor:et,blur:$,hue:$,fopacity:$,grayscale:$,invert:$,saturate:$,sepia:$,opacity:Ve,stroke:qe,bgx:wt,bgy:wt},{keys:It}=Object;_t(It(F),"list"),_t(It(F),void 0);function L(t,e,i){let n=U(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${qt(t)}`,r=s=>v(v(s).toFixed(n==="px"?0:6))):t==="scale"&&(n="",r=s=>{var o;return U([s])?O(s,"width",e,!0)/e[`offset${(o=s.endsWith)!=null&&o.call(s,"vh")?"Height":"Width"}`]:v(s)}),i.length===1&&i.unshift(t==="scale"?1:0),i=S(i,r),(s,o)=>{s.transform=`${s.transform||""} ${t}(${A(i,o)}${n})`}}function et(t,e,i){return i.length===1&&i.unshift(z(e,t,"")),i=S(i,n=>Be(e,n)),(n,r)=>{const[s,o,a]=kt(i,r),h=s.map((c,l)=>(c+=a*(o[l]-c),l===3?v(c):parseInt(c,10))).join(",");n[t]=`rgba(${h})`}}function Be(t,e){return z(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(v)}function $(t,e,i){i.length===1&&i.unshift(0);const n=U(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=S(i),(r,s)=>{const o=A(i,s);r.filter=`${r.filter||""} ${t}(${o+n})`}}function Ve(t,e,i){return i.length===1&&i.unshift(z(e,t,"")),i=S(i),(n,r)=>{n[t]=A(i,r)}}function qe(t,e,i){i.length===1&&i.unshift(0);const n=U(i),r=Ue(e);return i=S(i.reverse(),s=>(s=v(s),n==="%"?s*r/100:s)),i.some(([s])=>s)?(g(e,"strokeDasharray",r),(s,o)=>{s.strokeDashoffset=A(i,o)}):y}function wt(t,e,i,n){i.length===1&&i.unshift(0);const r=t==="bgy"?"height":"width";n[t]=S(i,a=>O(a,r,e));const s=["bgx","bgy"].filter(a=>a in n);if(s.length===2&&t==="bgx")return y;if(z(e,"backgroundSize","")==="cover")return Ge(t,e,i,n);const o={};for(const a of s)o[a]=$t(e,a);return yt(s,o,n)}function Ge(t,e,i,n){const r=Xe(e);if(!r.width)return y;const s={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(l=>l in n),a={};for(const l of o){const d=n[l].map(([Pt])=>Pt),m=Math.min(...d),x=Math.max(...d),b=d.indexOf(m)<d.indexOf(x),st=x-m;a[l]=`${(b?-st:0)-(b?m:x)}px`,s[l==="bgy"?"height":"width"]+=st}const h=Gt.cover(r,s);for(const l of o){const d=l==="bgy"?"height":"width",m=h[d]-s[d];a[l]=`max(${$t(e,l)},-${m}px) + ${a[l]}`}const c=yt(o,a,n);return(l,d)=>{c(l,d),l.backgroundSize=`${h.width}px ${h.height}px`,l.backgroundRepeat="no-repeat"}}function $t(t,e){return z(t,`background-position-${e.substr(-1)}`,"")}function yt(t,e,i){return function(n,r){for(const s of t){const o=A(i[s],r);n[`background-position-${s.substr(-1)}`]=`calc(${e[s]} + ${o}px)`}}}const St={},R={};function Xe(t){const e=g(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(R[e])return R[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!St[e])?(Xt(i,"error load",()=>{R[e]=it(i),u(t,V("load",!1))}),St[e]=!0,it(i)):R[e]=it(i)}function it(t){return{width:t.naturalWidth,height:t.naturalHeight}}function S(t,e=v){const i=[],{length:n}=t;let r=0;for(let s=0;s<n;s++){let[o,a]=ht(t[s])?t[s].trim().split(/ (?![^(]*\))/):[t[s]];if(o=e(o),a=a?v(a)/100:null,s===0?a===null?a=0:a&&i.push([o,0]):s===n-1&&(a===null?a=1:a!==1&&(i.push([o,a]),a=1)),i.push([o,a]),a===null)r++;else if(r){const h=i[s-r-1][1],c=(a-h)/(r+1);for(let l=r;l>0;l--)i[s-l][1]=h+c*(r-l+1);r=0}}return i}function kt(t,e){const i=Qt(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 A(t,e){const[i,n,r]=kt(t,e);return i+Math.abs(i-n)*r*(i<n?1:-1)}const Qe=/^-?\d+(?:\.\d+)?(\S+)?/;function U(t,e){var i;for(const n of t){const r=(i=n.match)==null?void 0:i.call(n,Qe);if(r)return r[1]}return e}function z(t,e,i){const n=t.style[e],r=g(g(t,e,i),e);return t.style[e]=n,r}function _t(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function Je(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Ke={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[gt({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),fe({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&Jt(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=O(this.parallaxStart,"height",t,!0),i=O(this.parallaxEnd,"height",t,!0),n=Je(Kt(t,e,i),this.parallaxEasing),[r,s]=this.getIndexAt(n),o=this.getValidIndex(r+Math.ceil(s)),a=this.slides[r],h=this.slides[o],{triggerShow:c,triggerShown:l,triggerHide:d,triggerHidden:m}=Ye(this);if(~this.prevIndex)for(const b of new Set([this.index,this.prevIndex]))lt([o,r],b)||(d(this.slides[b]),m(this.slides[b]));const x=this.prevIndex!==r||this.index!==o;this.dir=1,this.prevIndex=r,this.index=o,a!==h&&d(a),c(h),x&&l(a),this._translate(a===h?1:s,a,h)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Ye(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:r,triggerShown:s,triggerHide:o,triggerHidden:a};function r(h){I(h,n)&&(o(h),a(h)),I(h,e)||(u(h,"beforeitemshow",[t]),u(h,"itemshow",[t]))}function s(h){I(h,i)&&u(h,"itemshown",[t])}function o(h){I(h,e)||r(h),I(h,i)&&s(h),I(h,n)||(u(h,"beforeitemhide",[t]),u(h,"itemhide",[t]))}function a(h){I(h,n)&&u(h,"itemhidden",[t])}}var Ze={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},At={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return E(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function E(t){return Math.abs(g(t,"transform").split(",")[4]/t.offsetWidth)}function f(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function zt(t){return`scale3d(${t}, ${t}, 1)`}function ti(t,e,i,{animation:n,easing:r}){const{percent:s,translate:o,show:a=y}=n,h=a(i);let c;return{dir:i,show(l,d=0,m){const x=m?"linear":r;return l-=Math.round(l*q(d,-1,1)),this.translate(d),B(e,"itemin",{percent:d,duration:l,timing:x,dir:i}),B(t,"itemout",{percent:1-d,duration:l,timing:x,dir:i}),new Promise(b=>{c||(c=b),Promise.all([G.start(e,h[1],l,x),G.start(t,h[0],l,x)]).then(()=>{this.reset(),c()},y)})},cancel(){return G.cancel([e,t])},reset(){for(const l in h[0])g([e,t],l,"")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){this.reset();const d=o(l,i);g(e,d[1]),g(t,d[0]),B(e,"itemtranslatein",{percent:l,dir:i}),B(t,"itemtranslateout",{percent:1-l,dir:i})},percent(){return s(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function B(t,e,i){u(t,V(e,!1,!1,i))}var ei={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,r;let s=0;return((r=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:r.replace(/%s/g,()=>e[s++]||""))||""}}},ii={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&T(this.$el,":focus-within")&&!T(this.$el,":focus")||this.pauseOnHover&&T(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},Et={passive:!0,capture:!0},ni="touchstart mousedown",nt="touchmove mousemove",Nt="touchend touchcancel mouseup click input scroll",Ct=t=>t.preventDefault();var si={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=Yt(i).x*(P?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:ni,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!Zt(t)&&ri(t.target)||t.target.closest(te)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:nt,el(){return this.list},handler:y,...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,_(document,nt,this.move,N),_(document,Nt,this.end,Et),g(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||_(this.list,"click",Ct,N),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(e),s=this.getIndex(n+this.dir),o=Mt.call(this,n,s);for(;s!==n&&r>o;)this.drag-=o*this.dir,n=s,r-=o,s=this.getIndex(n+this.dir),o=Mt.call(this,n,s);this.percent=r/o;const a=i[n],h=i[s],c=this.index!==s,l=n===s;let d;for(const m of[this.index,this.prevIndex])lt([s,n],m)||(u(i[m],"itemhidden",[this]),l&&(d=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||d)&&u(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=s,l||(u(a,"beforeitemhide",[this]),u(a,"itemhide",[this])),u(h,"beforeitemshow",[this]),u(h,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!l&&h)},end(){if(X(document,nt,this.move,N),X(document,Nt,this.end,Et),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(P?this.dir*(P?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>X(this.list,"click",Ct,N)),g(this.list,{userSelect:""}),this.drag=this.percent=null}}};function Mt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ri(t){return g(t,"userSelect")!=="none"&&ee(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}ie((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(r=>[dt(r),`data-${dt(r)}`]).flat();return{attributes:i,filter:n}});let ai=1;function Ot(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ai++}`}const C={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var oi={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)=>H(t,e),navChildren(){return ct(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return ot(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){ne(t,"ul")&&p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=D(e,this.attrItem),n=H("a,button",e)||e;let r,s=null;if(M(i)){const o=ut(i),a=this.slides[o];a&&(a.id||(a.id=Ot(this,a)),s=a.id),r=this.t("slideX",v(i)+1),p(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Ot(this,this.list)),s=this.list.id),r=this.t(i);p(n,{"aria-controls":s,"aria-label":p(n,"aria-label")||r})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){se(this.nav);for(let i=0;i<t;i++)re(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===C.SPACE)&&(t.preventDefault(),this.show(D(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=D(e,this.attrItem);if(!M(n))return;let r=i===C.HOME?0:i===C.END?"last":i===C.LEFT?"previous":i===C.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=D(e,this.attrItem),n=H("a,button",e)||e;if(M(i)){const s=ut(i)===t;Q(e,this.clsActive,s),Q(n,"uk-disabled",this.parallax),p(n,{"aria-selected":s,tabindex:s&&!this.parallax?null:-1}),s&&n&&T(ae(e),":focus-within")&&n.focus()}else Q(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},hi={mixins:[ii,si,oi,ei],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(){W(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>di(e.offsetWidth/t),list:({selList:t},e)=>H(t,e),maxIndex(){return this.length-1},slides(){return ct(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){k(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){W(t,this.clsEnter)},itemhide({target:t}){k(t,this.clsLeave)},itemhidden({target:t}){W(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=e?0:n.length,s=()=>{n.splice(r,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 o=this.getIndex(this.index),a=I(this.slides,this.clsActive)&&this.slides[o],h=this.getIndex(t,this.index),c=this.slides[h];if(a===c){s();return}if(this.dir=li(t,o),this.prevIndex=o,this.index=h,a&&!u(a,"beforeitemhide",[this])||!u(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,s();return}const l=this._show(a,c,e).then(()=>{a&&u(a,"itemhidden",[this]),u(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&u(a,"itemhide",[this]),u(c,"itemshow",[this]),l},getIndex(t=this.index,e=this.index){return q(oe(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(ft(t)?this.slides[t]:t,ft(e)?this.slides[e]:e,i*(P?-1:1),n)}}};function li(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function di(t){return .5*t+300}var ci={mixins:[hi],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:At,Transitioner:ti},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:gt(),events:{beforeitemshow({target:t}){k(t,this.clsActive)},itemshown({target:t}){k(t,this.clsActivated)},itemhidden({target:t}){W(t,this.clsActive,this.clsActivated)}}},ui={observe:ue({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},fi={...At,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-g(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:zt(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-g(t,"opacity")},translate(t){return[{opacity:1-t,transform:zt(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,i){return i<0?1-E(e):E(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,i){return i>0?1-E(e):E(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}]}}},Tt={mixins:[he,ci,Ze,Ke,ui],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:fi},watch:{list(t){g(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",Tt);export{Tt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.20.
|
|
1
|
+
/*! UIkit 3.20.4-dev.c54f44b4f | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|