uikit 3.18.3-dev.454229dfd → 3.18.3-dev.93bc2b277
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 +1 -3
- 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.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +5 -5
- 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 +5 -5
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/height-placeholder.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.454229dfd | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],w):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=w(s.UIkit.util))})(this,function(s){"use strict";function w(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 lt(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))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 P(t){return F(s.observeResize,t,"resize")}function ft(t){return F(s.observeIntersection,t)}function gt(t={}){return ft({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(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function ut(t){return F((e,i)=>({disconnect:s.on(mt(e),"scroll",i,{passive:!0})}),t,"scroll")}function F(t,e,i){return{observe:t,handler(){w(this,i)},...e}}function mt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var pt={connected(){s.addClass(this.$el,this.$options.id)}},xt={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++]||""))||""}}},vt={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 I={passive:!1,capture:!0},U={passive:!0,capture:!0},wt="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var It={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:wt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&bt(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,...I}],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,I),s.on(document,V,this.end,U),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,I),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),a=G.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=G.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(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,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,D,this.move,I),s.off(document,V,this.end,U),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,I)),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 bt(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let $t=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${$t++}`}const b={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var yt={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.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 a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=X(this,h)),r=h.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===b.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===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},St={mixins:[vt,It,yt,xt],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)=>J(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()}},observe:P(),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 a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=kt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},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 kt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=_t(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 _t(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 Ct(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:pe,from:Mt}=Array;function Nt(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function Et(t){return R(t)&&t===t.window}function Ot(t){return Q(t)===9}function K(t){return Q(t)>=1}function Q(t){return!Et(t)&&R(t)&&t.nodeType}function W(t){return typeof t=="string"}function Tt(t){return t===void 0}function $(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function j(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function L(t,e,i){var n;if(R(e)){for(const o in e)L(t,o,e[o]);return}if(Tt(i))return(n=$(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Nt(i)&&(i=i.call(o,L(o,e))),i===null?Pt(o,e):o.setAttribute(e,i)}function Pt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function Y(t){var e;return(e=$(t))==null?void 0:e.parentElement}function Ft(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Dt(t,e){t=$(t);const i=t?Mt(t.children):[];return e?Ft(i,e):i}function Rt(t,e){return e?p(t).indexOf($(e)):Dt(Y(t)).indexOf(t)}function Wt(t,e){return p(Bt(t,$(e),"querySelectorAll"))}const jt=/(^|[^\\],)\s*[!>+~-]/,Lt=j(t=>t.match(jt)),zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=j(t=>t.replace(zt,"$1 *"));function Bt(t,e=document,i){if(!t||!W(t))return t;if(t=Ht(t),Lt(t)){const n=Vt(t);t="";for(let o of n){let r=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(r=Y(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&n.length===1)return r}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),h=(r||e).previousElementSibling;r=Z(h,o.substr(1))?h:null,o=a.slice(1).join(" ")}r&&(t+=`${t?",":""}${qt(r)} ${o}`)}Ot(e)||(e=e.ownerDocument)}try{return e[i](t)}catch{return null}}const Ut=/.*?[^\\](?![^(]*\))(?:,|$)/g,Vt=j(t=>t.match(Ut).map(e=>e.replace(/,$/,"").trim()));function qt(t){const e=[];for(;t.parentNode;){const i=L(t,"id");if(i){e.unshift(`#${Gt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Rt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Gt(t){return W(t)?CSS.escape(t):""}const Xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Xt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Kt(i.content.childNodes)}function Kt(t){return t.length>1?t:t[0]}function Qt(t,e){return Yt(t)?p(Jt(t)):Wt(t,e)}function Yt(t){return W(t)&&Ct(t.trim(),"<")}function Zt(t){return Math.ceil(Math.max(0,...Qt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const C={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ee,stroke:se,bgx:et,bgy:et},{keys:tt}=Object;rt(tt(C),"list"),rt(tt(C),void 0);function M(t,e,i){let n=E(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 a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${y(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i,n=>te(e,n)),(n,o)=>{const[r,a,h]=nt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function te(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=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=y(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function ee(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i),(n,o)=>{n[t]=y(i,o)}}function se(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Zt(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,a)=>{r.strokeDashoffset=y(i,a)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(S(e,"backgroundSize","")==="cover")return ie(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function ie(t,e,i,n){const o=ne(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),_=u-g;h[c]=`${(m?-_:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=_}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const l=it(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return S(t,`background-position-${e.substr(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=y(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ne(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))},H(i)):N[e]=H(i)}function H(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[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function nt(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]=nt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const re=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,re);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 rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function oe(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ae={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({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=oe(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=he(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function he(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var de={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"]}},ce={observe:gt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ot(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function le(t,e,i,{center:n,easing:o,list:r}){const a=t?k(t,r,n):k(e,r,n)+s.dimensions(e).width*i,h=e?k(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),B(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(c-c*l),-A(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 _=s.includes(f,m),T=m===g,ct=m===u,me=T||!ct&&(_||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${me?"in":"out"}`,{dir:i,percent:ct?1-l:T?l:_?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=ht(r,k(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return ht(r,k(t||e,r,n))}}}function k(t,e,i){const n=O(t,e);return i?n-fe(t,e):Math.min(n,at(e))}function at(t){return Math.max(0,A(t)-s.dimensions(t).width)}function A(t){return s.sumBy(s.children(t),e=>s.dimensions(e).width)}function fe(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 ht(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),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var dt={mixins:[pt,St,de,ae,ce],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:le},computed:{finite({finite:t}){return t||ge(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=at(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:P({target:({slides:t})=>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=A(this.list)/this.length;this.duration=J(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){const e=this._getTransitioner(t).getActives(),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 a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=s.dimensions(this.slides[0]).width,n=s.dimensions(s.last(this.slides)).width,o=A(this.list)-(this.center?i/2+n/2:n);let r=t*o,a=0;do{const h=s.dimensions(this.slides[++e]).width,d=this.center?h/2+s.dimensions(this.slides[e+1]).width/2:h;a=r/d%1,r-=d}while(r>=0&&e<this.maxIndex);return[e,a]}}};function ge(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(A(t))<Math.trunc(i+ue(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(l>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ue(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],w):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=w(s.UIkit.util))})(this,function(s){"use strict";function w(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 lt(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))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 P(t){return F(s.observeResize,t,"resize")}function ft(t){return F(s.observeIntersection,t)}function gt(t={}){return ft({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(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function ut(t){return F((e,i)=>({disconnect:s.on(mt(e),"scroll",i,{passive:!0})}),t,"scroll")}function F(t,e,i){return{observe:t,handler(){w(this,i)},...e}}function mt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var pt={connected(){s.addClass(this.$el,this.$options.id)}},xt={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++]||""))||""}}},vt={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 I={passive:!1,capture:!0},U={passive:!0,capture:!0},wt="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var It={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:wt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&bt(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,...I}],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,I),s.on(document,V,this.end,U),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,I),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),a=G.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=G.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(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,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,D,this.move,I),s.off(document,V,this.end,U),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,I)),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 bt(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let $t=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${$t++}`}const b={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var yt={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.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 a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=X(this,h)),r=h.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===b.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===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},St={mixins:[vt,It,yt,xt],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)=>J(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()}},observe:P(),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 a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=kt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},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 kt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=_t(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 _t(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 Ct(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:pe,from:Mt}=Array;function Nt(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function Et(t){return R(t)&&t===t.window}function Ot(t){return Q(t)===9}function K(t){return Q(t)>=1}function Q(t){return!Et(t)&&R(t)&&t.nodeType}function W(t){return typeof t=="string"}function Tt(t){return t===void 0}function $(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function j(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function L(t,e,i){var n;if(R(e)){for(const o in e)L(t,o,e[o]);return}if(Tt(i))return(n=$(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Nt(i)&&(i=i.call(o,L(o,e))),i===null?Pt(o,e):o.setAttribute(e,i)}function Pt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function Y(t){var e;return(e=$(t))==null?void 0:e.parentElement}function Ft(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Dt(t,e){t=$(t);const i=t?Mt(t.children):[];return e?Ft(i,e):i}function Rt(t,e){return e?p(t).indexOf($(e)):Dt(Y(t)).indexOf(t)}function Wt(t,e){return p(Bt(t,$(e),"querySelectorAll"))}const jt=/(^|[^\\],)\s*[!>+~-]/,Lt=j(t=>t.match(jt)),zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=j(t=>t.replace(zt,"$1 *"));function Bt(t,e=document,i){if(!t||!W(t))return t;if(t=Ht(t),Lt(t)){const n=Vt(t);t="";for(let o of n){let r=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(r=Y(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&n.length===1)return r}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),h=(r||e).previousElementSibling;r=Z(h,o.substr(1))?h:null,o=a.slice(1).join(" ")}r&&(t+=`${t?",":""}${qt(r)} ${o}`)}Ot(e)||(e=e.ownerDocument)}try{return e[i](t)}catch{return null}}const Ut=/.*?[^\\](?![^(]*\))(?:,|$)/g,Vt=j(t=>t.match(Ut).map(e=>e.replace(/,$/,"").trim()));function qt(t){const e=[];for(;t.parentNode;){const i=L(t,"id");if(i){e.unshift(`#${Gt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Rt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Gt(t){return W(t)?CSS.escape(t):""}const Xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Xt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Kt(i.content.childNodes)}function Kt(t){return t.length>1?t:t[0]}function Qt(t,e){return Yt(t)?p(Jt(t)):Wt(t,e)}function Yt(t){return W(t)&&Ct(t.trim(),"<")}function Zt(t){return Math.ceil(Math.max(0,...Qt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const C={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ee,stroke:se,bgx:et,bgy:et},{keys:tt}=Object;rt(tt(C),"list"),rt(tt(C),void 0);function M(t,e,i){let n=E(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 a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${y(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i,n=>te(e,n)),(n,o)=>{const[r,a,h]=nt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function te(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=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=y(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function ee(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i),(n,o)=>{n[t]=y(i,o)}}function se(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Zt(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,a)=>{r.strokeDashoffset=y(i,a)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(S(e,"backgroundSize","")==="cover")return ie(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function ie(t,e,i,n){const o=ne(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),_=u-g;h[c]=`${(m?-_:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=_}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const l=it(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return S(t,`background-position-${e.substr(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=y(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ne(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))},H(i)):N[e]=H(i)}function H(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[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function nt(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]=nt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const re=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,re);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 rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function oe(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ae={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({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=oe(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=he(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function he(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var de={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"]}},ce={observe:gt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ot(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function le(t,e,i,{center:n,easing:o,list:r}){const a=t?k(t,r,n):k(e,r,n)+s.dimensions(e).width*i,h=e?k(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),B(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(c-c*l),-A(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 _=s.includes(f,m),T=m===g,ct=m===u,me=T||!ct&&(_||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${me?"in":"out"}`,{dir:i,percent:ct?1-l:T?l:_?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=ht(r,k(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return ht(r,k(t||e,r,n))}}}function k(t,e,i){const n=O(t,e);return i?n-fe(t,e):Math.min(n,at(e))}function at(t){return Math.max(0,A(t)-s.dimensions(t).width)}function A(t){return s.sumBy(s.children(t),e=>s.dimensions(e).width)}function fe(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 ht(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),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var dt={mixins:[pt,St,de,ae,ce],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:le},computed:{finite({finite:t}){return t||ge(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=at(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:P({target:({slides:t})=>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=A(this.list)/this.length;this.duration=J(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){const e=this._getTransitioner(t).getActives(),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 a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=s.dimensions(this.slides[0]).width,n=s.dimensions(s.last(this.slides)).width,o=A(this.list)-(this.center?i/2+n/2:n);let r=t*o,a=0;do{const h=s.dimensions(this.slides[++e]).width,d=this.center?h/2+s.dimensions(this.slides[e+1]).width/2:h;a=r/d%1,r-=d}while(r>=0&&e<this.maxIndex);return[e,a]}}};function ge(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(A(t))<Math.trunc(i+ue(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(l>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ue(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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("uikitslideshow_parallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=b(s.UIkit.util))})(this,function(s){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const 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 K(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 Q(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:In,from:X}=Array;function Y(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function Z(n){return M(n)&&n===n.window}function k(n){return A(n)===9}function T(n){return A(n)>=1}function A(n){return!Z(n)&&M(n)&&n.nodeType}function C(n){return typeof n=="string"}function U(n){return n===void 0}function $(n){return d(n)[0]}function d(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function O(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(M(e)){for(const r in e)j(n,r,e[r]);return}if(U(t))return(o=$(n))==null?void 0:o.getAttribute(e);for(const r of d(n))Y(t)&&(t=t.call(r,j(r,e))),t===null?nn(r,e):r.setAttribute(e,t)}function nn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function W(n){var e;return(e=$(n))==null?void 0:e.parentElement}function tn(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function en(n,e){n=$(n);const t=n?X(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?d(n).indexOf($(e)):en(W(n)).indexOf(n)}function on(n,e){return d(un(n,$(e),"querySelectorAll"))}const sn=/(^|[^\\],)\s*[!>+~-]/,cn=O(n=>n.match(sn)),an=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,fn=O(n=>n.replace(an,"$1 *"));function un(n,e=document,t){if(!n||!C(n))return n;if(n=fn(n),cn(n)){const o=hn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const c=r.substr(1).trim().split(" ");if(i=W(e).closest(c[0]),r=c.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const c=r.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=_(a,r.substr(1))?a:null,r=c.slice(1).join(" ")}i&&(n+=`${n?",":""}${ln(i)} ${r}`)}k(e)||(e=e.ownerDocument)}try{return e[t](n)}catch{return null}}const dn=/.*?[^\\](?![^(]*\))(?:,|$)/g,hn=O(n=>n.match(dn).map(e=>e.replace(/,$/,"").trim()));function ln(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${rn(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function mn(n){return C(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function bn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function xn(n,e){return yn(n)?d(bn(n)):on(n,e)}function yn(n){return C(n)&&Q(n.trim(),"<")}function wn(n){return Math.ceil(Math.max(0,...xn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const p={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Fn,stroke:Sn,bgx:D,bgy:D},{keys:E}=Object;var pn={mixins:[b],props:q(E(p),"list"),data:q(E(p),void 0),computed:{props(n,e){const t={};for(const r in n)r in p&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=p[r](r,e,t[r],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 v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var c;return S([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${o})`}}function I(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t,o=>vn(e,o)),(o,r)=>{const[i,c,a]=R(t,r),h=i.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function vn(n,e){return y(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+o})`}}function Fn(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t),(o,r)=>{o[n]=x(t,r)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=wn(e);return t=g(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const c={};for(const a of i)c[a]=z(e,a);return H(i,c,o)}function Mn(n,e,t,o){const r=Cn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const u=o[f].map(([jn])=>jn),w=Math.min(...u),N=Math.max(...u),G=u.indexOf(w)<u.indexOf(N),J=N-w;a[f]=`${(G?-J:0)-(G?w:N)}px`,i[f==="bgy"?"height":"width"]+=J}const h=s.Dimensions.cover(r,i);for(const f of c){const u=f==="bgy"?"height":"width",w=h[u]-i[u];a[f]=`max(${z(e,f)},-${w}px) + ${a[f]}`}const l=H(c,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return y(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const i of n){const c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const F={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=P(t),s.trigger(n,s.createEvent("load",!1))},P(t)):F[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)r++;else if(r){const h=t[i-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function R(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 x(n,e){const[t,o,r]=R(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const On=/^-?\d+(?:\.\d+)?(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,On);if(r)return r[1]}return e}function y(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function q(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var B={mixins:[pn],data:{selItem:"!li"},beforeConnect(){this.item=s.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(V(n,r,e)),c=this.getCss(L(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,t,o).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:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(V(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function L(n){return s.endsWith(n,"in")}function V(n,e,t){return t/=2,L(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",B),B});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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.18.3-dev.454229dfd | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],I):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=I(i.UIkit.util))})(this,function(i){"use strict";var I={connected(){i.addClass(this.$el,this.$options.id)}};function at(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&ot(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ot(t,e){for(const{read:n,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(h=>e.has(h)))continue;let a;n&&(a=n.call(t,t._data,e),a&&i.isPlainObject(a)&&i.assign(t._data,a)),s&&a!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function W(t){return T(i.observeResize,t,"resize")}function ht(t){return T(i.observeIntersection,t)}function dt(t={}){return ht({handler:function(e,n){const{targets:s=this.$el,preload:r=5}=t;for(const a of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',a).slice(0,r-1).forEach(h=>i.removeAttr(h,"loading"));for(const a of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(a)},...t})}function ct(t){return T((e,n)=>({disconnect:i.on(lt(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){at(this,n)},...e}}function lt(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}var ft={props:{media:Boolean},data:{media:!1},connected(){const t=ut(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function ut(t,e){if(i.isString(t)){if(i.startsWith(t,"@"))t=i.toFloat(i.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&i.isNumeric(t)?`(min-width: ${t}px)`:""}function gt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:le,from:mt}=Array;function pt(t){return typeof t=="function"}function M(t){return t!==null&&typeof t=="object"}function xt(t){return M(t)&&t===t.window}function vt(t){return R(t)===9}function L(t){return R(t)>=1}function R(t){return!xt(t)&&M(t)&&t.nodeType}function O(t){return typeof t=="string"}function bt(t){return t===void 0}function w(t){return p(t)[0]}function p(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function P(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function F(t,e,n){var s;if(M(e)){for(const r in e)F(t,r,e[r]);return}if(bt(n))return(s=w(t))==null?void 0:s.getAttribute(e);for(const r of p(t))pt(n)&&(n=n.call(r,F(r,e))),n===null?It(r,e):r.setAttribute(e,n)}function It(t,e){p(t).forEach(n=>n.removeAttribute(e))}function U(t){var e;return(e=w(t))==null?void 0:e.parentElement}function wt(t,e){return p(t).filter(n=>q(n,e))}function q(t,e){return p(t).some(n=>n.matches(e))}function $t(t,e){t=w(t);const n=t?mt(t.children):[];return e?wt(n,e):n}function yt(t,e){return e?p(t).indexOf(w(e)):$t(U(t)).indexOf(t)}function St(t,e){return p(zt(t,w(e),"querySelectorAll"))}const kt=/(^|[^\\],)\s*[!>+~-]/,_t=P(t=>t.match(kt)),At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=P(t=>t.replace(At,"$1 *"));function zt(t,e=document,n){if(!t||!O(t))return t;if(t=Ct(t),_t(t)){const s=Et(t);t="";for(let r of s){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=U(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&s.length===1)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),o=(a||e).previousElementSibling;a=q(o,r.substr(1))?o:null,r=h.slice(1).join(" ")}a&&(t+=`${t?",":""}${Tt(a)} ${r}`)}vt(e)||(e=e.ownerDocument)}try{return e[n](t)}catch{return null}}const Nt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Et=P(t=>t.match(Nt).map(e=>e.replace(/,$/,"").trim()));function Tt(t){const e=[];for(;t.parentNode;){const n=F(t,"id");if(n){e.unshift(`#${Mt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${yt(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Mt(t){return O(t)?CSS.escape(t):""}const Ot=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Pt(t){const e=Ot.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Ft(n.content.childNodes)}function Ft(t){return t.length>1?t:t[0]}function Ht(t,e){return Dt(t)?p(Pt(t)):St(t,e)}function Dt(t){return O(t)&>(t.trim(),"<")}function jt(t){return Math.ceil(Math.max(0,...Ht("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const A={x:C,y:C,rotate:C,scale:C,color:H,backgroundColor:H,borderColor:H,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:Lt,stroke:Rt,bgx:V,bgy:V},{keys:B}=Object;K(B(A),"list"),K(B(A),void 0);function C(t,e,n){let s=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,r=a=>i.toFloat(i.toFloat(a).toFixed(s==="px"?0:6))):t==="scale"&&(s="",r=a=>{var h;return N([a])?i.toPx(a,"width",e,!0)/e[`offset${(h=a.endsWith)!=null&&h.call(a,"vh")?"Height":"Width"}`]:i.toFloat(a)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,r),(a,h)=>{a.transform=`${a.transform||""} ${t}(${$(n,h)}${s})`}}function H(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,s=>Wt(e,s)),(s,r)=>{const[a,h,o]=J(n,r),d=a.map((f,c)=>(f+=o*(h[c]-f),c===3?i.toFloat(f):parseInt(f,10))).join(",");s[t]=`rgba(${d})`}}function Wt(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function v(t,e,n){n.length===1&&n.unshift(0);const s=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(r,a)=>{const h=$(n,a);r.filter=`${r.filter||""} ${t}(${h+s})`}}function Lt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(s,r)=>{s[t]=$(n,r)}}function Rt(t,e,n){n.length===1&&n.unshift(0);const s=N(n),r=jt(e);return n=b(n.reverse(),a=>(a=i.toFloat(a),s==="%"?a*r/100:a)),n.some(([a])=>a)?(i.css(e,"strokeDasharray",r),(a,h)=>{a.strokeDashoffset=$(n,h)}):i.noop}function V(t,e,n,s){n.length===1&&n.unshift(0);const r=t==="bgy"?"height":"width";s[t]=b(n,o=>i.toPx(o,r,e));const a=["bgx","bgy"].filter(o=>o in s);if(a.length===2&&t==="bgx")return i.noop;if(y(e,"backgroundSize","")==="cover")return Ut(t,e,n,s);const h={};for(const o of a)h[o]=G(e,o);return X(a,h,s)}function Ut(t,e,n,s){const r=qt(e);if(!r.width)return i.noop;const a={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in s),o={};for(const c of h){const l=s[c].map(([ce])=>ce),g=Math.min(...l),m=Math.max(...l),x=l.indexOf(g)<l.indexOf(m),rt=m-g;o[c]=`${(x?-rt:0)-(x?g:m)}px`,a[c==="bgy"?"height":"width"]+=rt}const d=i.Dimensions.cover(r,a);for(const c of h){const l=c==="bgy"?"height":"width",g=d[l]-a[l];o[c]=`max(${G(e,c)},-${g}px) + ${o[c]}`}const f=X(h,o,s);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function G(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function X(t,e,n){return function(s,r){for(const a of t){const h=$(n[a],r);s[`background-position-${a.substr(-1)}`]=`calc(${e[a]} + ${h}px)`}}}const z={};function qt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth)?(n.onload=()=>{z[e]=D(n),i.trigger(t,i.createEvent("load",!1))},D(n)):z[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=i.toFloat){const n=[],{length:s}=t;let r=0;for(let a=0;a<s;a++){let[h,o]=i.isString(t[a])?t[a].trim().split(/ (?![^(]*\))/):[t[a]];if(h=e(h),o=o?i.toFloat(o)/100:null,a===0?o===null?o=0:o&&n.push([h,0]):a===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)r++;else if(r){const d=n[a-r-1][1],f=(o-d)/(r+1);for(let c=r;c>0;c--)n[a-c][1]=d+f*(r-c+1);r=0}}return n}function J(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,s,r]=J(t,e);return n+Math.abs(n-s)*r*(n<s?1:-1)}const Bt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const s of t){const r=(n=s.match)==null?void 0:n.call(s,Bt);if(r)return r[1]}return e}function y(t,e,n){const s=t.style[e],r=i.css(i.css(t,e,n),e);return t.style[e]=s,r}function K(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Vt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Gt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[W({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ct({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Vt(i.scrolledOver(t,e,n),this.parallaxEasing),[r,a]=this.getIndexAt(s),h=this.getValidIndex(r+Math.ceil(a)),o=this.slides[r],d=this.slides[h],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Xt(this);if(~this.prevIndex)for(const x of new Set([this.index,this.prevIndex]))i.includes([h,r],x)||(l(this.slides[x]),g(this.slides[x]));const m=this.prevIndex!==r||this.index!==h;this.dir=1,this.prevIndex=r,this.index=h,o!==d&&l(o),f(d),m&&c(o),this._translate(o===d?1:a,o,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Xt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:r,triggerShown:a,triggerHide:h,triggerHidden:o};function r(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function a(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||r(d),i.hasClass(d,n)&&a(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Jt={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"]}},Q={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(i.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Y(t){return`scale3d(${t}, ${t}, 1)`}function Kt(t,e,n,{animation:s,easing:r}){const{percent:a,translate:h,show:o=i.noop}=s,d=o(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":r;return c-=Math.round(c*i.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(x=>{f||(f=x),Promise.all([i.Transition.start(e,d[1],c,m),i.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},i.noop)})},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=h(c,n);i.css(e,l[1]),i.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}var Qt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,r;let a=0;return((r=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[a++]||""))||""}}},Yt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const k={passive:!1,capture:!0},Z={passive:!0,capture:!0},Zt="touchstart mousedown",j="touchmove mousemove",tt="touchend touchcancel mouseup click input scroll",et=t=>t.preventDefault();var te={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:Zt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ee(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:j,el(){return this.list},handler:i.noop,...k}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,i.on(document,j,this.move,k),i.on(document,tt,this.end,Z),i.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||i.on(this.list,"click",et,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,r=Math.abs(e),a=this.getIndex(s+this.dir),h=nt.call(this,s,a);for(;a!==s&&r>h;)this.drag-=h*this.dir,s=a,r-=h,a=this.getIndex(s+this.dir),h=nt.call(this,s,a);this.percent=r/h;const o=n[s],d=n[a],f=this.index!==a,c=s===a;let l;for(const g of[this.index,this.prevIndex])i.includes([a,s],g)||(i.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||l)&&i.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=s,this.index=a,c||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(i.off(document,j,this.move,k),i.off(document,tt,this.end,Z),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=(i.isRtl?this.dir*(i.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(()=>i.off(this.list,"click",et,k)),i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function nt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ee(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(r=>[i.hyphenate(r),`data-${i.hyphenate(r)}`]).flat();return{attributes:n,filter:s}});let ne=1;function it(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ne++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ie={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),e&&this.$emit()},list(t){i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation")},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let r,a=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=it(this,o)),a=o.id),r=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=it(this,this.list)),a=this.list.id),r=this.t(n);i.attr(s,{"aria-controls":a,"aria-label":i.attr(s,"aria-label")||r})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){i.empty(this.nav);for(let n=0;n<t;n++)i.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){i.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===_.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let r=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const a=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,a),i.toggleClass(s,"uk-disabled",this.parallax),i.attr(s,{"aria-selected":a,tabindex:a&&!this.parallax?null:-1}),a&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},se={mixins:[Yt,te,ie,Qt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>ae(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:W(),events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,a=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),f=this.slides[d];if(o===f){a();return}if(this.dir=re(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(f,"beforeitemshow",[this,o])){this.index=this.prevIndex,a();return}const c=this._show(o,f,e).then(()=>{o&&i.trigger(o,"itemhidden",[this]),i.trigger(f,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&i.trigger(o,"itemhide",[this]),i.trigger(f,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?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}),!n&&!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,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function re(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function ae(t){return .5*t+300}var oe={mixins:[se],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:Q,Transitioner:Kt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},he={observe:dt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},de={...Q,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:Y(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Y(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},st={mixins:[I,oe,Jt,Gt,he],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:de},watch:{list(t){i.css(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)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",st),st});
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],I):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=I(i.UIkit.util))})(this,function(i){"use strict";var I={connected(){i.addClass(this.$el,this.$options.id)}};function at(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&ot(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ot(t,e){for(const{read:n,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(h=>e.has(h)))continue;let a;n&&(a=n.call(t,t._data,e),a&&i.isPlainObject(a)&&i.assign(t._data,a)),s&&a!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function W(t){return T(i.observeResize,t,"resize")}function ht(t){return T(i.observeIntersection,t)}function dt(t={}){return ht({handler:function(e,n){const{targets:s=this.$el,preload:r=5}=t;for(const a of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',a).slice(0,r-1).forEach(h=>i.removeAttr(h,"loading"));for(const a of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(a)},...t})}function ct(t){return T((e,n)=>({disconnect:i.on(lt(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){at(this,n)},...e}}function lt(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}var ft={props:{media:Boolean},data:{media:!1},connected(){const t=ut(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function ut(t,e){if(i.isString(t)){if(i.startsWith(t,"@"))t=i.toFloat(i.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&i.isNumeric(t)?`(min-width: ${t}px)`:""}function gt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:le,from:mt}=Array;function pt(t){return typeof t=="function"}function M(t){return t!==null&&typeof t=="object"}function xt(t){return M(t)&&t===t.window}function vt(t){return R(t)===9}function L(t){return R(t)>=1}function R(t){return!xt(t)&&M(t)&&t.nodeType}function O(t){return typeof t=="string"}function bt(t){return t===void 0}function w(t){return p(t)[0]}function p(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function P(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function F(t,e,n){var s;if(M(e)){for(const r in e)F(t,r,e[r]);return}if(bt(n))return(s=w(t))==null?void 0:s.getAttribute(e);for(const r of p(t))pt(n)&&(n=n.call(r,F(r,e))),n===null?It(r,e):r.setAttribute(e,n)}function It(t,e){p(t).forEach(n=>n.removeAttribute(e))}function U(t){var e;return(e=w(t))==null?void 0:e.parentElement}function wt(t,e){return p(t).filter(n=>q(n,e))}function q(t,e){return p(t).some(n=>n.matches(e))}function $t(t,e){t=w(t);const n=t?mt(t.children):[];return e?wt(n,e):n}function yt(t,e){return e?p(t).indexOf(w(e)):$t(U(t)).indexOf(t)}function St(t,e){return p(zt(t,w(e),"querySelectorAll"))}const kt=/(^|[^\\],)\s*[!>+~-]/,_t=P(t=>t.match(kt)),At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=P(t=>t.replace(At,"$1 *"));function zt(t,e=document,n){if(!t||!O(t))return t;if(t=Ct(t),_t(t)){const s=Et(t);t="";for(let r of s){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=U(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&s.length===1)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),o=(a||e).previousElementSibling;a=q(o,r.substr(1))?o:null,r=h.slice(1).join(" ")}a&&(t+=`${t?",":""}${Tt(a)} ${r}`)}vt(e)||(e=e.ownerDocument)}try{return e[n](t)}catch{return null}}const Nt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Et=P(t=>t.match(Nt).map(e=>e.replace(/,$/,"").trim()));function Tt(t){const e=[];for(;t.parentNode;){const n=F(t,"id");if(n){e.unshift(`#${Mt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${yt(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Mt(t){return O(t)?CSS.escape(t):""}const Ot=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Pt(t){const e=Ot.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Ft(n.content.childNodes)}function Ft(t){return t.length>1?t:t[0]}function Ht(t,e){return Dt(t)?p(Pt(t)):St(t,e)}function Dt(t){return O(t)&>(t.trim(),"<")}function jt(t){return Math.ceil(Math.max(0,...Ht("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const A={x:C,y:C,rotate:C,scale:C,color:H,backgroundColor:H,borderColor:H,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:Lt,stroke:Rt,bgx:V,bgy:V},{keys:B}=Object;K(B(A),"list"),K(B(A),void 0);function C(t,e,n){let s=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,r=a=>i.toFloat(i.toFloat(a).toFixed(s==="px"?0:6))):t==="scale"&&(s="",r=a=>{var h;return N([a])?i.toPx(a,"width",e,!0)/e[`offset${(h=a.endsWith)!=null&&h.call(a,"vh")?"Height":"Width"}`]:i.toFloat(a)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,r),(a,h)=>{a.transform=`${a.transform||""} ${t}(${$(n,h)}${s})`}}function H(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,s=>Wt(e,s)),(s,r)=>{const[a,h,o]=J(n,r),d=a.map((f,c)=>(f+=o*(h[c]-f),c===3?i.toFloat(f):parseInt(f,10))).join(",");s[t]=`rgba(${d})`}}function Wt(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function v(t,e,n){n.length===1&&n.unshift(0);const s=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(r,a)=>{const h=$(n,a);r.filter=`${r.filter||""} ${t}(${h+s})`}}function Lt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(s,r)=>{s[t]=$(n,r)}}function Rt(t,e,n){n.length===1&&n.unshift(0);const s=N(n),r=jt(e);return n=b(n.reverse(),a=>(a=i.toFloat(a),s==="%"?a*r/100:a)),n.some(([a])=>a)?(i.css(e,"strokeDasharray",r),(a,h)=>{a.strokeDashoffset=$(n,h)}):i.noop}function V(t,e,n,s){n.length===1&&n.unshift(0);const r=t==="bgy"?"height":"width";s[t]=b(n,o=>i.toPx(o,r,e));const a=["bgx","bgy"].filter(o=>o in s);if(a.length===2&&t==="bgx")return i.noop;if(y(e,"backgroundSize","")==="cover")return Ut(t,e,n,s);const h={};for(const o of a)h[o]=G(e,o);return X(a,h,s)}function Ut(t,e,n,s){const r=qt(e);if(!r.width)return i.noop;const a={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in s),o={};for(const c of h){const l=s[c].map(([ce])=>ce),g=Math.min(...l),m=Math.max(...l),x=l.indexOf(g)<l.indexOf(m),rt=m-g;o[c]=`${(x?-rt:0)-(x?g:m)}px`,a[c==="bgy"?"height":"width"]+=rt}const d=i.Dimensions.cover(r,a);for(const c of h){const l=c==="bgy"?"height":"width",g=d[l]-a[l];o[c]=`max(${G(e,c)},-${g}px) + ${o[c]}`}const f=X(h,o,s);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function G(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function X(t,e,n){return function(s,r){for(const a of t){const h=$(n[a],r);s[`background-position-${a.substr(-1)}`]=`calc(${e[a]} + ${h}px)`}}}const z={};function qt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth)?(n.onload=()=>{z[e]=D(n),i.trigger(t,i.createEvent("load",!1))},D(n)):z[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=i.toFloat){const n=[],{length:s}=t;let r=0;for(let a=0;a<s;a++){let[h,o]=i.isString(t[a])?t[a].trim().split(/ (?![^(]*\))/):[t[a]];if(h=e(h),o=o?i.toFloat(o)/100:null,a===0?o===null?o=0:o&&n.push([h,0]):a===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)r++;else if(r){const d=n[a-r-1][1],f=(o-d)/(r+1);for(let c=r;c>0;c--)n[a-c][1]=d+f*(r-c+1);r=0}}return n}function J(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,s,r]=J(t,e);return n+Math.abs(n-s)*r*(n<s?1:-1)}const Bt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const s of t){const r=(n=s.match)==null?void 0:n.call(s,Bt);if(r)return r[1]}return e}function y(t,e,n){const s=t.style[e],r=i.css(i.css(t,e,n),e);return t.style[e]=s,r}function K(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Vt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Gt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[W({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ct({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Vt(i.scrolledOver(t,e,n),this.parallaxEasing),[r,a]=this.getIndexAt(s),h=this.getValidIndex(r+Math.ceil(a)),o=this.slides[r],d=this.slides[h],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Xt(this);if(~this.prevIndex)for(const x of new Set([this.index,this.prevIndex]))i.includes([h,r],x)||(l(this.slides[x]),g(this.slides[x]));const m=this.prevIndex!==r||this.index!==h;this.dir=1,this.prevIndex=r,this.index=h,o!==d&&l(o),f(d),m&&c(o),this._translate(o===d?1:a,o,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Xt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:r,triggerShown:a,triggerHide:h,triggerHidden:o};function r(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function a(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||r(d),i.hasClass(d,n)&&a(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Jt={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"]}},Q={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(i.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Y(t){return`scale3d(${t}, ${t}, 1)`}function Kt(t,e,n,{animation:s,easing:r}){const{percent:a,translate:h,show:o=i.noop}=s,d=o(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":r;return c-=Math.round(c*i.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(x=>{f||(f=x),Promise.all([i.Transition.start(e,d[1],c,m),i.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},i.noop)})},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=h(c,n);i.css(e,l[1]),i.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}var Qt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,r;let a=0;return((r=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[a++]||""))||""}}},Yt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const k={passive:!1,capture:!0},Z={passive:!0,capture:!0},Zt="touchstart mousedown",j="touchmove mousemove",tt="touchend touchcancel mouseup click input scroll",et=t=>t.preventDefault();var te={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:Zt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ee(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:j,el(){return this.list},handler:i.noop,...k}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,i.on(document,j,this.move,k),i.on(document,tt,this.end,Z),i.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||i.on(this.list,"click",et,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,r=Math.abs(e),a=this.getIndex(s+this.dir),h=nt.call(this,s,a);for(;a!==s&&r>h;)this.drag-=h*this.dir,s=a,r-=h,a=this.getIndex(s+this.dir),h=nt.call(this,s,a);this.percent=r/h;const o=n[s],d=n[a],f=this.index!==a,c=s===a;let l;for(const g of[this.index,this.prevIndex])i.includes([a,s],g)||(i.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||l)&&i.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=s,this.index=a,c||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(i.off(document,j,this.move,k),i.off(document,tt,this.end,Z),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=(i.isRtl?this.dir*(i.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(()=>i.off(this.list,"click",et,k)),i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function nt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ee(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(r=>[i.hyphenate(r),`data-${i.hyphenate(r)}`]).flat();return{attributes:n,filter:s}});let ne=1;function it(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ne++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ie={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),e&&this.$emit()},list(t){i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation")},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let r,a=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=it(this,o)),a=o.id),r=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=it(this,this.list)),a=this.list.id),r=this.t(n);i.attr(s,{"aria-controls":a,"aria-label":i.attr(s,"aria-label")||r})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){i.empty(this.nav);for(let n=0;n<t;n++)i.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){i.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===_.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let r=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const a=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,a),i.toggleClass(s,"uk-disabled",this.parallax),i.attr(s,{"aria-selected":a,tabindex:a&&!this.parallax?null:-1}),a&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},se={mixins:[Yt,te,ie,Qt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>ae(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:W(),events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,a=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),f=this.slides[d];if(o===f){a();return}if(this.dir=re(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(f,"beforeitemshow",[this,o])){this.index=this.prevIndex,a();return}const c=this._show(o,f,e).then(()=>{o&&i.trigger(o,"itemhidden",[this]),i.trigger(f,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&i.trigger(o,"itemhide",[this]),i.trigger(f,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?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}),!n&&!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,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function re(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function ae(t){return .5*t+300}var oe={mixins:[se],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:Q,Transitioner:Kt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},he={observe:dt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},de={...Q,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:Y(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Y(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},st={mixins:[I,oe,Jt,Gt,he],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:de},watch:{list(t){i.css(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)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",st),st});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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.18.3-dev.454229dfd | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&N(o,o._queued),delete o._queued})),o._queued.add(s.type||s))}function N(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function z(o){return y(e.observeResize,o,"resize")}function q(o){return y(e.observeMutation,o)}function y(o,s,n){return{observe:o,handler(){g(this,n)},...s}}q({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),z({target:({$el:o})=>[o,...e.children(o)]});function P(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=b(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=b(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const p=b(r[d],n);if(c.left>=p.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function b(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const v="uk-transition-leave",w="uk-transition-enter";function C(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=m=>()=>c===u(s)?m():Promise.reject(),d=h(async()=>{e.addClass(s,v),await Promise.all(S(s).map((m,i)=>new Promise(f=>setTimeout(()=>e.Transition.start(m,r,n/2,"ease").then(f),i*t)))),e.removeClass(s,v)}),p=h(async()=>{const m=e.height(s);e.addClass(s,w),o(),e.css(e.children(s),{opacity:0}),await A();const i=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,m);const l=S(s);e.css(i,r);const _=l.map(async(Q,X)=>{await H(X*t),await e.Transition.start(Q,a,n/2,"ease")});m!==f&&_.push(e.Transition.start(s,{height:f},n/2+l.length*t,"ease")),await Promise.all(_).then(()=>{e.removeClass(s,w),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(i,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,v)?T(s).then(p):e.hasClass(s,w)?T(s).then(d).then(p):d().then(p)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function T(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function S(o){return P(e.children(o)).flat().filter(s=>e.isVisible(s))}function A(){return new Promise(o=>requestAnimationFrame(o))}function H(o){return new Promise(s=>setTimeout(s,o))}async function L(o,s,n){await D();let t=e.children(s);const c=t.map(f=>x(f,!0)),a={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const r=e.attr(s,"style"),h=e.css(s,["height","padding"]),[d,p]=M(s,t,c),m=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,l)=>p[l]&&e.css(f,p[l])),e.css(s,a),e.trigger(s,"scroll"),e.fastdom.flush(),await D();const i=t.map((f,l)=>e.parent(f)===s&&e.Transition.start(f,d[l],n,"ease")).concat(e.Transition.start(s,h,n,"ease"));try{await Promise.all(i),t.forEach((f,l)=>{e.attr(f,m[l]),e.parent(f)===s&&e.css(f,"display",d[l].opacity===0?"none":"")}),e.attr(s,"style",r)}catch{e.attr(t,"style",""),R(s,a)}}function x(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...I(o)}:!1}function M(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?I(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||x(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function R(o,s){for(const n in s)e.css(o,n,"")}function I(o){const{height:s,width:n}=e.offset(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function D(){return new Promise(o=>requestAnimationFrame(o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?C:n==="delayed-fade"?(...c)=>C(...c,40):n?L:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},B={connected(){e.addClass(this.$el,this.$options.id)}},E={mixins:[B,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const o of["init","start","move","end"]){const s=this[o];this[o]=n=>{e.assign(this.pos,e.getEventPos(n)),s(n)}}},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=G(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),m=J(r.target,d,a,s,n,r===p&&o.moved!==d);m!==!1&&(m&&a===m||(r!==p?(p.remove(a),o.moved=d):delete o.moved,r.insert(a,m),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=W(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move(o){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o)},end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;O();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem);const n=()=>s?e.before(s,o):e.append(this.target,o);this.animate(n)},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let $;function j(o){let s=Date.now();$=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:m}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-m)return a.scrollTop=r,!0})},15)}function O(){clearInterval($)}function W(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function G(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function J(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return K(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=F([r.top,r.bottom],[h.top,h.bottom]),[p,m,i,f]=d?[t,"width","left","right"]:[c,"height","top","bottom"],l=h[m]<r[m]?r[m]-h[m]:0;return h[i]<r[i]?l&&p<r[i]+l?!1:s.nextElementSibling:l&&p>r[f]-l?!1:s}function K(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const p=e.dimensions(d);return!F([h.left,h.right],[p.left,p.right])})});return n&&e.remove(s),c}function F(o,s){return o[1]>s[0]&&s[1]>o[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",E),E});
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&N(o,o._queued),delete o._queued})),o._queued.add(s.type||s))}function N(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function z(o){return y(e.observeResize,o,"resize")}function q(o){return y(e.observeMutation,o)}function y(o,s,n){return{observe:o,handler(){g(this,n)},...s}}q({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),z({target:({$el:o})=>[o,...e.children(o)]});function P(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=b(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=b(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const p=b(r[d],n);if(c.left>=p.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function b(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const v="uk-transition-leave",w="uk-transition-enter";function C(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=m=>()=>c===u(s)?m():Promise.reject(),d=h(async()=>{e.addClass(s,v),await Promise.all(S(s).map((m,i)=>new Promise(f=>setTimeout(()=>e.Transition.start(m,r,n/2,"ease").then(f),i*t)))),e.removeClass(s,v)}),p=h(async()=>{const m=e.height(s);e.addClass(s,w),o(),e.css(e.children(s),{opacity:0}),await A();const i=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,m);const l=S(s);e.css(i,r);const _=l.map(async(Q,X)=>{await H(X*t),await e.Transition.start(Q,a,n/2,"ease")});m!==f&&_.push(e.Transition.start(s,{height:f},n/2+l.length*t,"ease")),await Promise.all(_).then(()=>{e.removeClass(s,w),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(i,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,v)?T(s).then(p):e.hasClass(s,w)?T(s).then(d).then(p):d().then(p)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function T(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function S(o){return P(e.children(o)).flat().filter(s=>e.isVisible(s))}function A(){return new Promise(o=>requestAnimationFrame(o))}function H(o){return new Promise(s=>setTimeout(s,o))}async function L(o,s,n){await D();let t=e.children(s);const c=t.map(f=>x(f,!0)),a={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const r=e.attr(s,"style"),h=e.css(s,["height","padding"]),[d,p]=M(s,t,c),m=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,l)=>p[l]&&e.css(f,p[l])),e.css(s,a),e.trigger(s,"scroll"),e.fastdom.flush(),await D();const i=t.map((f,l)=>e.parent(f)===s&&e.Transition.start(f,d[l],n,"ease")).concat(e.Transition.start(s,h,n,"ease"));try{await Promise.all(i),t.forEach((f,l)=>{e.attr(f,m[l]),e.parent(f)===s&&e.css(f,"display",d[l].opacity===0?"none":"")}),e.attr(s,"style",r)}catch{e.attr(t,"style",""),R(s,a)}}function x(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...I(o)}:!1}function M(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?I(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||x(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function R(o,s){for(const n in s)e.css(o,n,"")}function I(o){const{height:s,width:n}=e.offset(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function D(){return new Promise(o=>requestAnimationFrame(o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?C:n==="delayed-fade"?(...c)=>C(...c,40):n?L:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},B={connected(){e.addClass(this.$el,this.$options.id)}},E={mixins:[B,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const o of["init","start","move","end"]){const s=this[o];this[o]=n=>{e.assign(this.pos,e.getEventPos(n)),s(n)}}},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=G(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),m=J(r.target,d,a,s,n,r===p&&o.moved!==d);m!==!1&&(m&&a===m||(r!==p?(p.remove(a),o.moved=d):delete o.moved,r.insert(a,m),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=W(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move(o){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o)},end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;O();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem);const n=()=>s?e.before(s,o):e.append(this.target,o);this.animate(n)},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let $;function j(o){let s=Date.now();$=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:m}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-m)return a.scrollTop=r,!0})},15)}function O(){clearInterval($)}function W(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function G(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function J(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return K(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=F([r.top,r.bottom],[h.top,h.bottom]),[p,m,i,f]=d?[t,"width","left","right"]:[c,"height","top","bottom"],l=h[m]<r[m]?r[m]-h[m]:0;return h[i]<r[i]?l&&p<r[i]+l?!1:s.nextElementSibling:l&&p>r[f]-l?!1:s}function K(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const p=e.dimensions(d);return!F([h.left,h.right],[p.left,p.right])})});return n&&e.remove(s),c}function F(o,s){return o[1]>s[0]&&s[1]>o[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",E),E});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";function p(s,i=[]){try{return s?t.startsWith(s,"{")?JSON.parse(s):i.length&&!t.includes(s,":")?{[i[0]]:s}:s.split(";").reduce((o,e)=>{const[n,r]=e.split(/:(.*)/);return n&&!t.isUndefined(r)&&(o[n.trim()]=r.trim()),o},{}):{}}catch{return{}}}t.memoize((s,i)=>{const o=Object.keys(i),e=o.concat(s).map(n=>[t.hyphenate(n),`data-${t.hyphenate(n)}`]).flat();return{attributes:o,filter:e}});let C=1;function S(s,i=null){return(i==null?void 0:i.id)||`${s.$options.id}-${C++}`}var A={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},B={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const a in r)r[a].reverse();e.reverse(),n.reverse()}const h=I(s),c=t.dimensions(s);t.css(s,{top:-c.height,left:-c.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s=this.$el){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s=this.$el){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function I(s){const i=t.scrollParent(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}var D={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:s})=>!!s[0],hasTransition:({animation:s})=>["slide","reveal"].some(i=>t.startsWith(s[0],i))},methods:{async toggleElement(s,i,o){try{return await Promise.all(t.toNodes(s).map(e=>{const n=t.isBoolean(i)?i:!this.isToggled(e);if(!t.trigger(e,`before${n?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(o)?o:o===!1||!this.hasAnimation?N:this.hasTransition?F:L)(e,n,this),h=n?this.clsEnter:this.clsLeave;t.addClass(e,h),t.trigger(e,n?"show":"hide",[this]);const c=()=>{t.removeClass(e,h),t.trigger(e,n?"shown":"hidden",[this])};return r?r.then(c,()=>(t.removeClass(e,h),Promise.reject())):c()})),!0}catch{return!1}},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),t.$$("[autofocus]",s).some(e=>t.isVisible(e)?e.focus()||!0:e.blur()),o&&t.trigger(s,"toggled",[i,this])}}};function N(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function F(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var c;const[a="reveal",$="top"]=((c=o[0])==null?void 0:c.split("-"))||[],b=[["left","right"],["top","bottom"]],T=b[t.includes(b[0],$)?0:1],P=T[1]===$,m=["width","height"][b.indexOf(T)],d=`margin-${T[0]}`,v=`margin-${$}`;let l=t.dimensions(s)[m];const H=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const V=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",d,v].map(O=>[O,s.style[O]])),g=t.dimensions(s),u=t.toFloat(t.css(s,d)),k=t.toFloat(t.css(s,v)),f=g[m]+k;!H&&!i&&(l+=k);const[w]=t.wrapInner(s,"<div>");t.css(w,{boxSizing:"border-box",height:g.height,width:g.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",v])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[v]:0,width:g.width,height:g.height,overflow:"hidden",[m]:l});const x=l/f;e=(n*f+e)*(i?1-x:x);const E={[m]:i?f:0};P&&(t.css(s,d,f-l+u),E[d]=i?u:f+u),!P^a==="reveal"&&(t.css(w,d,-f+l),t.Transition.start(w,{[d]:i?0:-f},e,r));try{await t.Transition.start(s,E,e,r)}finally{t.css(s,V),t.unwrap(w.firstChild),i||h(s,!1)}}function L(s,i,o){const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}const U={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var y={mixins:[A,D,B],data:{pos:"top",animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},connected(){j(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:s=0,title:i}=_(this.$options);if(!i)return;const o=t.attr(this.$el,"title"),e=t.on(this.$el,["blur",t.pointerLeave],r=>!t.isTouch(r)&&this.hide());this.reset=()=>{t.attr(this.$el,{title:o,"aria-describedby":null}),e()};const n=S(this);t.attr(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(i,n),s)},async hide(){var s;t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(s=this.reset)==null||s.call(this),t.remove(this.tooltip),this.tooltip=null)},async _show(s,i){this.tooltip=t.append(this.container,`<div id="${i}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${s}</div> </div>`),t.on(this.tooltip,"toggled",(o,e)=>{if(!e)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[r,h]=W(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(r)}-${h}`:`${h}-${t.flipPosition(r)}`;const c=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,a=>a.type===t.pointerDown&&!this.$el.contains(a.target)||a.type==="keydown"&&a.keyCode===U.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",n,{passive:!0})];t.once(this.tooltip,"hide",()=>c.forEach(a=>a()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${t.pointerEnter} ${t.pointerDown}`](s){t.isTouch(s)||this.show()}}};function j(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function W(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const a of h){if(n[a[0]]>=r[a[1]]){o=a[1];break}if(n[a[1]]<=r[a[0]]){o=a[0];break}}return e=(t.includes(h[0],o)?h[1]:h[0]).find(a=>n[a]===r[a])||"center",[o,e]}function _(s){const{el:i,id:o,data:e}=s;return["delay","title"].reduce((n,r)=>({[r]:t.data(i,r),...n}),{...p(t.data(i,o),["title"]),...e})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",y),y});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var a,s,t;let n=0;return((t=((a=this.i18n)==null?void 0:a[e])||((s=this.$options.i18n)==null?void 0:s[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const s of e){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),a=async s=>{const t=new FormData;s.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:m}=p;o.on(m.upload,"progress",this.progress);for(const c of["loadStart","load","loadEnd","abort"])o.on(m,c.toLowerCase(),this[c]);return this.beforeSend(p)}});this.complete(n),r.length?await a(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await a(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const a=[];for(let s=0;s<e.length;s+=r)a.push(e.slice(s,s+r));return a}function l(e){e.preventDefault(),e.stopPropagation()}function u(e,r){const a={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return Promise.resolve().then(()=>a.beforeSend(a)).then(()=>g(e,a))}function g(e,r){return new Promise((a,s)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?a(t):s(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>s(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>s(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.3-dev.
|
|
1
|
+
/*! UIkit 3.18.3-dev.93bc2b277 | 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() :
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
};
|
|
2150
2150
|
App.util = util;
|
|
2151
2151
|
App.options = {};
|
|
2152
|
-
App.version = "3.18.3-dev.
|
|
2152
|
+
App.version = "3.18.3-dev.93bc2b277";
|
|
2153
2153
|
|
|
2154
2154
|
const PREFIX = "uk-";
|
|
2155
2155
|
const DATA = "__uikit__";
|
|
@@ -4208,10 +4208,10 @@
|
|
|
4208
4208
|
observe: resize({ target: ({ target }) => target }),
|
|
4209
4209
|
update: {
|
|
4210
4210
|
read() {
|
|
4211
|
-
return { height: this.target
|
|
4211
|
+
return { height: height(this.target) };
|
|
4212
4212
|
},
|
|
4213
|
-
write({ height }) {
|
|
4214
|
-
css(this.$el, { minHeight:
|
|
4213
|
+
write({ height: height2 }) {
|
|
4214
|
+
css(this.$el, { minHeight: height2 });
|
|
4215
4215
|
},
|
|
4216
4216
|
events: ["resize"]
|
|
4217
4217
|
}
|