uikit 3.25.23-dev.0ea1d51 → 3.25.23-dev.9ebc131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/scss.js +83 -54
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +4 -4
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +324 -32
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +324 -32
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +191 -191
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +5 -3
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +100 -85
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +97 -80
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/api/component.js +12 -8
  45. package/src/js/components/tooltip.js +4 -2
  46. package/src/js/core/accordion.js +11 -7
  47. package/src/js/core/drop.js +10 -32
  48. package/src/js/core/dropnav.js +1 -1
  49. package/src/js/core/overflow-fade.js +6 -5
  50. package/src/js/mixin/event.js +31 -0
  51. package/src/js/mixin/modal.js +26 -34
@@ -1 +1 @@
1
- /*! UIkit 3.25.23-dev.0ea1d51 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(t,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],k):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox_panel=k(t.UIkit.util))})(this,(function(t){"use strict";function k(e,s="update"){e._connected&&e._updates.length&&(e._updateCount||(e._updateCount=0,requestAnimationFrame(()=>e._updateCount=0)),e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&X(e,e._queued),e._queued=null})),e._updateCount++<20&&e._queued.add(s.type||s))}function X(e,s){for(const{read:i,write:n,events:o=[]}of e._updates){if(!s.has("update")&&!o.some(h=>s.has(h)))continue;let r;i&&(r=i.call(e,e._data,s),r&&t.isPlainObject(r)&&t.assign(e._data,r)),n&&r!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function Q(e){return M(t.observeResize,e,"resize")}function Y(e){return M(t.observeIntersection,e)}function M(e,s,i){return{observe:e,handler(){k(this,i)},...s}}function Z(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[o,r]=n.split(/:(.*)/);return o&&!t.isUndefined(r)&&(i[o.trim()]=r.trim()),i},{}):{}}catch{return{}}}Y({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function K(e,s){if(s=ee(s),s.length){const i=t.fragment("<picture>");for(const n of s){const o=t.fragment("<source>");t.attr(o,n),t.append(i,o)}t.append(i,e)}}function ee(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=Z(e);return(t.isArray(e)?e:[e]).filter(s=>!t.isEmpty(s))}function D(){return new Promise(e=>requestAnimationFrame(e))}let E;function te(e){const s=t.on(e,"touchstart",o=>{if(o.targetTouches.length!==1||t.matches(o.target,'input[type="range"]'))return;let r=t.getEventPos(o).y;const h=t.on(e,"touchmove",a=>{const d=t.getEventPos(a).y;d!==r&&(r=d,t.scrollParents(a.target).some(c=>{if(!e.contains(c))return!1;let{scrollHeight:m,clientHeight:l}=c;return l<m})||a.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcancel",h,{capture:!0})},{passive:!0});if(E)return s;E=!0;const{scrollingElement:i}=document,n={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:t.width(window)-i.clientWidth?"stable":""};return t.css(i,n),()=>{E=!1,s(),t.resetProps(i,n)}}var se={connected(){this._cmpCls=t.hasClass(this.$el,this.$options.id),t.addClass(this.$el,this.$options.id)},disconnected(){this._cmpCls||t.removeClass(this.$el,this.$options.id)}},ie={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function O(e){e.target.closest('a[href="#"],a[href=""]')&&e.preventDefault()}var ne={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){const n={};return(await Promise.all(t.toNodes(e).map(o=>{const r=t.isBoolean(s)?s:!this.isToggled(o);if(!t.trigger(o,`before${r?"show":"hide"}`,[this]))return n;const h=(t.isFunction(i)?i:i===!1||!this.hasAnimation?re:this.hasTransition?oe:ae)(o,r,this),a=r?this.clsEnter:this.clsLeave;t.addClass(o,a),t.trigger(o,r?"show":"hide",[this]);const d=()=>{var c;t.removeClass(o,a),t.trigger(o,r?"shown":"hidden",[this]),r&&((c=t.$$("[autofocus]",o).find(t.isVisible))==null||c.focus({preventScroll:!0}))};return h?h.then(d,()=>(t.removeClass(o,a),n)):d()}))).every(o=>o!==n)},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function re(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function oe(e,s,{animation:i,duration:n,velocity:o,transition:r,_toggle:h}){var a;const[d="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],l=m[t.includes(m[0],c)?0:1],f=l[1]===c,u=["width","height"][m.indexOf(l)],x=`margin-${l[0]}`,A=`margin-${c}`;let w=t.dimensions(e)[u];const Me=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const De=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",x,A].map(J=>[J,e.style[J]])),$=t.dimensions(e),N=t.toFloat(t.css(e,x)),U=t.toFloat(t.css(e,A)),b=$[u]+U;!Me&&!s&&(w+=U);const[T]=t.wrapInner(e,"<div>");t.css(T,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[u]:w});const V=w/b;n=(o*b+n)*(s?1-V:V);const G={[u]:s?b:0};f&&(t.css(e,x,b-w+N),G[x]=s?N:b+N),!f^d==="reveal"&&(t.css(T,x,-b+w),t.Transition.start(T,{[x]:s?0:-b},n,r));try{await t.Transition.start(e,G,n,r)}finally{t.css(e,De),t.unwrap(T.firstChild),s||h(e,!1)}}function ae(e,s,i){const{animation:n,duration:o,_toggle:r}=i;return s?(r(e,!0),t.Animation.in(e,n[0],o,i.origin)):t.Animation.out(e,n[1]||n[0],o,i.origin).then(()=>r(e,!1))}const p=[];var he={mixins:[se,ie,ne],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:e},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){const e=this.panel||this.$el;e.role=this.role,this.overlay&&(e.ariaModal=!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(O(e),this.hide())}},{name:"toggle",self:!0,handler(e,s){e.defaultPrevented||(e.preventDefault(),this.target=s==null?void 0:s.$el,this.isToggled()===t.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(s=>s.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&le(this),this.overlay&&te(this.$el),this.bgClose&&ce(this),this.escClose&&fe(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage),F(this.target,!0)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||(this.$el.tabIndex=-1),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(p,this)&&p.splice(p.indexOf(this),1),t.css(this.$el,"zIndex","");const{target:e}=this;p.some(s=>s.clsPage===this.clsPage)||(t.removeClass(document.documentElement,this.clsPage),queueMicrotask(()=>{t.isFocusable(e)&&e.focus({preventScroll:!0})})),F(e,!1),this.target=null}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},async show(){return this.container&&t.parent(this.$el)!==this.container&&(t.append(this.container,this.$el),await D()),this.toggleElement(this.$el,!0,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,s,{transitionElement:i,_toggle:n}){return new Promise((o,r)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=r,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),o()},de(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function de(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function le(e){return t.on(document,"focusin",s=>{if(t.last(p)!==e||e.$el.contains(s.target))return;const{left:i,top:n,width:o,height:r}=t.dimensions(s.target),h=document.elementFromPoint(i+o/2,n+r/2);h&&(s.target.contains(h)||h.contains(s.target))||e.$el.focus()})}function ce(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:o})=>{!i&&n===t.pointerUp&&s===o&&e.hide()},!0)})}function fe(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}function F(e,s){e!=null&&e.ariaExpanded&&(e.ariaExpanded=s)}var S={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return pe(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function pe(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function me(e,s,i,{animation:n,easing:o}){const{percent:r,translate:h,show:a=t.noop}=n,d=a(i),{promise:c,resolve:m}=ge();return{dir:i,show(l,f=0,R){const u=R?"linear":o;return l-=Math.round(l*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:l,timing:u,dir:i}),I(e,"itemout",{percent:1-f,duration:l,timing:u,dir:i}),Promise.all([t.Transition.start(s,d[1],l,u),t.Transition.start(e,d[0],l,u)]).then(()=>{this.reset(),m()},t.noop),c},cancel(){return t.Transition.cancel([s,e])},reset(){t.resetProps([s,e],d[0])},async forward(l,f=this.percent()){return await this.cancel(),this.show(l,f,!0)},translate(l){this.reset();const f=h(l,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:l,dir:i}),I(e,"itemtranslateout",{percent:1-l,dir:i})},percent(){return r(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ge(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var ue={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}},ve={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!t.isVisible(this.$el)||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},be="touchstart mousedown",P="touchmove mousemove",xe="touchend touchcancel mouseup click input scroll";var ke={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i);t.isRtl&&(n.x=-n.x),this.prevPos=t.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:be,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&we(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:P,el:({list:e})=>e,handler:t.noop,...C}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,P,this.move,C),t.on(document,xe,this.end,{passive:!0,capture:!0,once:!0}),t.css(this.list,"userSelect","none")},move(e){const s=this.pos.x-this.drag.x;if(s===0||!this.dragging&&$e(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(s)<this.threshold)return;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),h=B.call(this,n,r);for(;r!==n&&o>h;)this.drag.x-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=B.call(this,n,r);this.percent=o/h;const a=i[n],d=i[r],c=this.index!==r,m=n===r;let l;for(const f of[this.index,this.prevIndex])t.includes([r,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,P,this.move,C),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=this.dir<0==this.prevPos.x>this.pos.x;e?(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function B(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function we(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function $e(e,s){return Math.atan2(Math.abs(s.y-e.y),Math.abs(s.x-e.x))*180/Math.PI}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).flatMap(o=>[t.hyphenate(o),`data-${t.hyphenate(o)}`]);return{attributes:i,filter:n}});let ye=1;function z(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${ye++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var Ie={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$$(e,s),navChildren(){return this.nav.flatMap(e=>t.children(e))},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let o,r=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=z(this,a)),r=a.id),o=this.t("slideX",t.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=z(this,this.list)),r=this.list.id),o=this.t(i);t.attr(n,"aria-controls",r),n.ariaLabel=n.ariaLabel||o}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=this.maxIndex<1)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(O(e),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let o=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const r=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,r),t.toggleClass(n,"uk-disabled",!!this.parallax),n.ariaSelected=r,n.tabIndex=r&&!this.parallax?null:-1,r&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){for(const e of this.nav){const s=t.children(e),i=[];for(let n=0;n<this.length;n++){const o=`${this.attrItem}="${n}"`;i[n]=s.findLast(r=>r.matches(`[${o}]`))||t.$(`<li ${o}><a href></a></li>`)}t.isEqual(i,s)||t.html(e,i)}}}};const Ce="cubic-bezier(0.25, 0.46, 0.45, 0.94)",_e="cubic-bezier(0.165, 0.84, 0.44, 1)";var Ae={mixins:[ve,ke,Ie,ue],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>Ee(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),c=this.slides[d];if(a===c){r();return}if(this.dir=Te(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),await this._show(a,c,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,await D(),n.length&&this.show(n.shift(),!0)},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?Ce:_e:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Te(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function Ee(e){return .5*e+300}var Se={mixins:[Ae],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:S,Transitioner:me},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:Q(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...S});function _(e){return`scale3d(${e}, ${e}, 1)`}var H={...S,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:_(1-.2)},{opacity:1,transform:_(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:_(1-.2*e)},{opacity:e,transform:_(1-.2+.2*e)}]}}},W={i18n:{counter:"%s / %s"},mixins:[he,Se],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:H,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(r=>!t.matches(r,`.uk-${i}`)));for(const[r,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Pe(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${r}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),o=this.t("close");n&&o&&(n.dataset.i18n=JSON.stringify({label:o})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:e}){if(!this.isToggled()||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=H.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:o={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let r;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":!!this.videoAutoplay};if(n==="image"||q(i)){const a=v("img");K(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...o}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||j(i)){const a=this.videoAutoplay==="inline",d=v("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,muted:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":!!this.videoAutoplay,...o});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...o}));else if(r=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,v("iframe",{src:`https://www.youtube${r[1]||""}.com/embed/${r[2]}${r[3]?`?${r[3]}`:""}`,width:1920,height:1080,...h,...o}));else if(r=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,v("iframe",{src:`https://player.vimeo.com/video/${r[1]}${r[2]?`?${r[2]}`:""}`,width:d,height:a,...h,...o}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function v(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Pe(e,s){const i=e.poster||e.thumb&&(e.type==="image"||q(e.thumb))?v("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||j(e.thumb))?v("video",{src:e.thumb,loop:"",playsinline:"",muted:"","uk-video":s==="inline"}):v("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function q(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function j(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}var Ne="lightboxPanel";return typeof window<"u"&&window.UIkit&&window.UIkit.component(Ne,W),W}));
1
+ /*! UIkit 3.25.23-dev.9ebc131 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=$(s.UIkit.util))})(this,(function(s){"use strict";function $(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&vt(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function vt(t,e){for(const{read:i,write:n,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(a=>e.has(a)))continue;let o;i&&(o=i.call(t,t._data,e),o&&s.isPlainObject(o)&&s.assign(t._data,o)),n&&o!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function bt(t){return W(s.observeResize,t,"resize")}function xt(t){return W(s.observeIntersection,t)}function W(t,e,i){return{observe:t,handler(){$(this,i)},...e}}function wt(t,e=[]){try{return t?s.startsWith(t,"{")?JSON.parse(t):e.length&&!s.includes(t,":")?{[e[0]]:t}:t.split(";").reduce((i,n)=>{const[r,o]=n.split(/:(.*)/);return r&&!s.isUndefined(o)&&(i[r.trim()]=o.trim()),i},{}):{}}catch{return{}}}xt({handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy",target:({$el:t,$props:e})=>e.target?[t,...s.queryAll(e.target,t)]:t});function $t(t,e){if(e=kt(e),e.length){const i=s.fragment("<picture>");for(const n of e){const r=s.fragment("<source>");s.attr(r,n),s.append(i,r)}s.append(i,t)}}function kt(t){if(!t)return[];if(s.startsWith(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=wt(t);return(s.isArray(t)?t:[t]).filter(e=>!s.isEmpty(e))}function q(){return new Promise(t=>requestAnimationFrame(t))}let M;function yt(t){const e=s.on(t,"touchstart",r=>{if(r.targetTouches.length!==1||s.matches(r.target,'input[type="range"]'))return;let o=s.getEventPos(r).y;const a=s.on(t,"touchmove",h=>{const c=s.getEventPos(h).y;c!==o&&(o=c,s.scrollParents(h.target).some(l=>{if(!t.contains(l))return!1;let{scrollHeight:p,clientHeight:d}=l;return d<p})||h.preventDefault())},{passive:!1});s.once(t,"scroll touchend touchcancel",a,{capture:!0})},{passive:!0});if(M)return e;M=!0;const{scrollingElement:i}=document,n={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:s.width(window)-i.clientWidth?"stable":""};return s.css(i,n),()=>{M=!1,e(),s.resetProps(i,n)}}var Ct={connected(){this._cmpCls=s.hasClass(this.$el,this.$options.id),s.addClass(this.$el,this.$options.id)},disconnected(){this._cmpCls||s.removeClass(this.$el,this.$options.id)}},It={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&s.$(t)}}};const U=typeof window<"u",j=U&&"ontouchstart"in window,D=U&&window.PointerEvent,At=D?"pointerdown":j?"touchstart":"mousedown",V=D?"pointerup":j?"touchend":"mouseup",Et=D?"pointercancel":"touchcancel",{isArray:G,from:Tt}=Array;function St(t){return typeof t=="function"}function O(t){return t!==null&&typeof t=="object"}function _t(t){return O(t)&&t===t.window}function Pt(t){return Q(t)===9}function J(t){return Q(t)>=1}function Q(t){return!_t(t)&&O(t)&&t.nodeType}function I(t){return typeof t=="string"}function Nt(t){return t===void 0}function k(t){return t&&b(t)[0]}function b(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function X(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function Y(t,e,i){var n;if(O(e)){for(const r in e)Y(t,r,e[r]);return}if(Nt(i))return(n=k(t))==null?void 0:n.getAttribute(e);for(const r of b(t))i===null?Mt(r,e):r.setAttribute(e,i)}function Mt(t,e){b(t).forEach(i=>i.removeAttribute(e))}function Dt(t){var e;return(e=k(t))==null?void 0:e.parentElement}function Ot(t,e){return b(t).filter(i=>Z(i,e))}function Z(t,e){return b(t).some(i=>i.matches(e))}function Lt(t,e){t=k(t);const i=t?Tt(t.children):[];return e?Ot(i,e):i}function K(t,e){return Lt(Dt(t)).indexOf(t)}function tt(t,e){return b(Rt(t,k(e),"querySelectorAll"))}const Bt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ft=/(\([^)]*\)|[^,])+/g,zt=X(t=>{let e=!1;if(!t||!I(t))return{};const i=[];for(let n of t.match(Ft))n=n.trim().replace(Bt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Ht=/(\([^)]*\)|\S)*/,et=X(t=>{t=t.slice(1).trim();const[e]=t.match(Ht);return[e,t.slice(e.length+1)]});function Rt(t,e=document,i){var n;const r=zt(t);if(!r.isContextSelector)return r.selector?L(e,i,r.selector):t;t="";const o=r.selectors.length===1;for(let a of r.selectors){let h,c=e;if(a[0]==="!"&&([h,a]=et(a),c=(n=e.parentElement)==null?void 0:n.closest(h),!a&&o)||c&&a[0]==="-"&&([h,a]=et(a),c=c.previousElementSibling,c=Z(c,h)?c:null,!a&&o))return c;if(c){if(o)return a[0]==="~"||a[0]==="+"?(a=`:scope > :nth-child(${K(c)+1}) ${a}`,c=c.parentElement):a[0]===">"&&(a=`:scope ${a}`),L(c,i,a);t+=`${t?",":""}${Wt(c)} ${a}`}}return Pt(e)||(e=e.ownerDocument),L(e,i,t)}function L(t,e,i){try{return t[e](i)}catch{return null}}function Wt(t){const e=[];for(;t.parentNode;){const i=Y(t,"id");if(i){e.unshift(`#${qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${K(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function qt(t){return I(t)?CSS.escape(t):""}function B(...t){let[e,i,n,r,o=!1]=F(t);r.length>1&&(r=Gt(r)),o!=null&&o.self&&(r=Jt(r)),n&&(r=Vt(n,r));for(const a of i)for(const h of e)h.addEventListener(a,r,o);return()=>Ut(e,i,r,o)}function Ut(...t){let[e,i,,n,r=!1]=F(t);for(const o of i)for(const a of e)a.removeEventListener(o,n,r)}function jt(...t){const[e,i,n,r,o=!1,a]=F(t),h=B(e,i,n,c=>{const l=!a||a(c);l&&(h(),r(c,l))},o);return h}function F(t){return t[0]=Xt(t[0]),I(t[1])&&(t[1]=t[1].split(" ")),St(t[2])&&t.splice(2,0,!1),t}function Vt(t,e){return i=>{const n=t[0]===">"?tt(t,i.currentTarget).reverse().find(r=>r.contains(i.target)):i.target.closest(t);n&&(i.current=n,e.call(this,i),delete i.current)}}function Gt(t){return e=>G(e.detail)?t(e,...e.detail):t(e)}function Jt(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function st(t){return t&&"addEventListener"in t}function Qt(t){return st(t)?t:k(t)}function Xt(t){return G(t)?t.map(Qt).filter(Boolean):I(t)?tt(t):st(t)?[t]:b(t)}const m={ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function it(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}function Yt(t,e=()=>!0){return B(document,"keydown",i=>{i.keyCode===m.ESC&&e()&&t(i)})}function Zt(t,e,i){return B(document,At,({target:n})=>{!e(n)||i&&!i()||jt(document,`${V} ${Et} scroll`,({defaultPrevented:r,type:o,target:a})=>{!r&&o===V&&n===a&&t(n)},!0)})}var Kt={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:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>s.startsWith(t[0],e))},methods:{async toggleElement(t,e,i){const n={};return(await Promise.all(s.toNodes(t).map(r=>{const o=s.isBoolean(e)?e:!this.isToggled(r);if(!s.trigger(r,`before${o?"show":"hide"}`,[this]))return n;const a=(s.isFunction(i)?i:i===!1||!this.hasAnimation?te:this.hasTransition?ee:se)(r,o,this),h=o?this.clsEnter:this.clsLeave;s.addClass(r,h),s.trigger(r,o?"show":"hide",[this]);const c=()=>{var l;s.removeClass(r,h),s.trigger(r,o?"shown":"hidden",[this]),o&&((l=s.$$("[autofocus]",r).find(s.isVisible))==null||l.focus({preventScroll:!0}))};return a?a.then(c,()=>(s.removeClass(r,h),n)):c()}))).every(r=>r!==n)},isToggled(t=this.$el){return t=s.toNode(t),s.hasClass(t,this.clsEnter)?!0:s.hasClass(t,this.clsLeave)?!1:this.cls?s.hasClass(t,this.cls.split(" ")[0]):s.isVisible(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=s.includes(this.cls," ")||e!==s.hasClass(t,this.cls),i&&s.toggleClass(t,this.cls,s.includes(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),i&&s.trigger(t,"toggled",[e,this])}}};function te(t,e,{_toggle:i}){return s.Animation.cancel(t),s.Transition.cancel(t),i(t,e)}async function ee(t,e,{animation:i,duration:n,velocity:r,transition:o,_toggle:a}){var h;const[c="reveal",l="top"]=((h=i[0])==null?void 0:h.split("-"))||[],p=[["left","right"],["top","bottom"]],d=p[s.includes(p[0],l)?0:1],f=d[1]===l,g=["width","height"][p.indexOf(d)],w=`margin-${d[0]}`,P=`margin-${l}`;let y=s.dimensions(t)[g];const Te=s.Transition.inProgress(t);await s.Transition.cancel(t),e&&a(t,!0);const Se=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",w,P].map(gt=>[gt,t.style[gt]])),C=s.dimensions(t),R=s.toFloat(s.css(t,w)),ut=s.toFloat(s.css(t,P)),x=C[g]+ut;!Te&&!e&&(y+=ut);const[N]=s.wrapInner(t,"<div>");s.css(N,{boxSizing:"border-box",height:C.height,width:C.width,...s.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),s.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:C.width,height:C.height,overflow:"hidden",[g]:y});const pt=y/x;n=(r*x+n)*(e?1-pt:pt);const mt={[g]:e?x:0};f&&(s.css(t,w,x-y+R),mt[w]=e?R:x+R),!f^c==="reveal"&&(s.css(N,w,-x+y),s.Transition.start(N,{[w]:e?0:-x},n,o));try{await s.Transition.start(t,mt,n,o)}finally{s.css(t,Se),s.unwrap(N.firstChild),e||a(t,!1)}}function se(t,e,i){const{animation:n,duration:r,_toggle:o}=i;return e?(o(t,!0),s.Animation.in(t,n[0],r,i.origin)):s.Animation.out(t,n[1]||n[0],r,i.origin).then(()=>o(t,!1))}const u=[],A=new WeakMap;var ie={mixins:[Ct,It,Kt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>s.$(t,e),transitionElement(){return this.panel}},connected(){const t=this.panel||this.$el;t.role=this.role,this.overlay&&(t.ariaModal=!0)},beforeDisconnect(){s.includes(u,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:t})=>`${t},a[href*="#"]`,handler(t){const{current:e,defaultPrevented:i}=t,{hash:n}=e;!i&&n&&s.isSameSiteAnchor(e)&&!this.$el.contains(s.$(n))?this.hide():s.matches(e,this.selClose)&&(it(t),this.hide())}},{name:"toggle",self:!0,handler(t,e){t.defaultPrevented||(t.preventDefault(),this.target=e==null?void 0:e.$el,this.isToggled()===s.includes(u,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(s.includes(u,this))return!1;!this.stack&&u.length?(Promise.all(u.map(e=>e.hide())).then(this.show),t.preventDefault()):u.push(this)}},{name:"show",self:!0,handler(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+u.length);const t=[this.overlay&&re(this),this.overlay&&yt(this.$el),this.bgClose&&oe(this),this.escClose&&ae(this)];s.once(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),s.addClass(document.documentElement,this.clsPage),rt(this.target,!0)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||(this.$el.tabIndex=-1),s.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(u,this)&&u.splice(u.indexOf(this),1),s.css(this.$el,"zIndex","");const{target:t}=this;u.some(e=>e.clsPage===this.clsPage)||(s.removeClass(document.documentElement,this.clsPage),queueMicrotask(()=>{s.isFocusable(t)&&t.focus({preventScroll:!0})})),rt(t,!1),this.target=null}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},async show(){return this.container&&s.parent(this.$el)!==this.container&&(s.append(this.container,this.$el),await q()),this.toggleElement(this.$el,!0,nt)},hide(){return this.toggleElement(this.$el,!1,nt)}}};function nt(t,e,{transitionElement:i,_toggle:n}){let r;return new Promise((o,a)=>s.once(t,"show hide",()=>{var h;(h=A.get(t))==null||h(),r=a,A.set(t,a),n(t,e);const c=s.once(i,"transitionstart",()=>{s.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{c(),o()},ne(s.css(i,"transitionDuration")))})).then(()=>{A.get(t)===r&&A.delete(t)})}function ne(t){return s.toFloat(t)*(s.endsWith(t,"ms")?1:1e3)}function re(t){return s.on(document,"focusin",e=>{if(s.last(u)!==t||t.$el.contains(e.target))return;const{left:i,top:n,width:r,height:o}=s.dimensions(e.target),a=document.elementFromPoint(i+r/2,n+o/2);a&&(e.target.contains(a)||a.contains(e.target))||t.$el.focus()})}function oe(t){return Zt(()=>t.hide(),e=>(!t.overlay||t.$el.contains(e))&&!!t.panel&&!t.panel.contains(e),()=>s.last(u)===t)}function ae(t){return Yt(()=>t.hide(),()=>s.last(u)===t)}function rt(t,e){t!=null&&t.ariaExpanded&&(t.ariaExpanded=e)}var z={slide:{show(t){return[{transform:E(t*-100)},{transform:E()}]},percent(t){return he(t)},translate(t,e){return[{transform:E(e*-100*t)},{transform:E(e*100*(1-t))}]}}};function he(t){return Math.abs(new DOMMatrix(s.css(t,"transform")).m41/t.offsetWidth)}function E(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function ce(t,e,i,{animation:n,easing:r}){const{percent:o,translate:a,show:h=s.noop}=n,c=h(i),{promise:l,resolve:p}=le();return{dir:i,show(d,f=0,ft){const g=ft?"linear":r;return d-=Math.round(d*s.clamp(f,-1,1)),this.translate(f),T(e,"itemin",{percent:f,duration:d,timing:g,dir:i}),T(t,"itemout",{percent:1-f,duration:d,timing:g,dir:i}),Promise.all([s.Transition.start(e,c[1],d,g),s.Transition.start(t,c[0],d,g)]).then(()=>{this.reset(),p()},s.noop),l},cancel(){return s.Transition.cancel([e,t])},reset(){s.resetProps([e,t],c[0])},async forward(d,f=this.percent()){return await this.cancel(),this.show(d,f,!0)},translate(d){this.reset();const f=a(d,i);s.css(e,f[1]),s.css(t,f[0]),T(e,"itemtranslatein",{percent:d,dir:i}),T(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function T(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function le(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var de={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:r.replace(/%s/g,()=>e[o++]||""))||""}}},fe={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!s.isVisible(this.$el)||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 S={passive:!1,capture:!0},ue="touchstart mousedown",H="touchmove mousemove",pe="touchend touchcancel mouseup click input scroll";var me={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i);s.isRtl&&(n.x=-n.x),this.prevPos=s.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:ue,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&ge(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:H,el:({list:t})=>t,handler:s.noop,...S}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=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,H,this.move,S),s.on(document,pe,this.end,{passive:!0,capture:!0,once:!0}),s.css(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&ve(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(e),o=this.getIndex(n+this.dir),a=ot.call(this,n,o);for(;o!==n&&r>a;)this.drag.x-=a*this.dir,n=o,r-=a,o=this.getIndex(n+this.dir),a=ot.call(this,n,o);this.percent=r/a;const h=i[n],c=i[o],l=this.index!==o,p=n===o;let d;for(const f of[this.index,this.prevIndex])s.includes([o,n],f)||(s.trigger(i[f],"itemhidden",[this]),p&&(d=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||d)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=o,p||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!p&&c)},end(){if(s.off(document,H,this.move,S),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),S)),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=this.dir<0==this.prevPos.x>this.pos.x;t?(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function ot(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ge(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function ve(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).flatMap(r=>[s.hyphenate(r),`data-${s.hyphenate(r)}`]);return{attributes:i,filter:n}});let be=1;function at(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${be++}`}var xe={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$$(t,e),navChildren(){return this.nav.flatMap(t=>s.children(t))},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let r,o=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=at(this,h)),o=h.id),r=this.t("slideX",s.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=at(this,this.list)),o=this.list.id),r=this.t(i);s.attr(n,"aria-controls",o),n.ariaLabel=n.ariaLabel||r}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=this.maxIndex<1)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===m.SPACE)&&(it(t),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let r=i===m.HOME?0:i===m.END?"last":i===m.LEFT?"previous":i===m.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],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 o=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,o),s.toggleClass(n,"uk-disabled",!!this.parallax),n.ariaSelected=o,n.tabIndex=o&&!this.parallax?null:-1,o&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}},padNavitems(){for(const t of this.nav){const e=s.children(t),i=[];for(let n=0;n<this.length;n++){const r=`${this.attrItem}="${n}"`;i[n]=e.findLast(o=>o.matches(`[${r}]`))||s.$(`<li ${r}><a href></a></li>`)}s.isEqual(i,e)||s.html(t,i)}}}};const we="cubic-bezier(0.25, 0.46, 0.45, 0.94)",$e="cubic-bezier(0.165, 0.84, 0.44, 1)";var ke={mixins:[fe,me,xe,de],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)=>Ce(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{async show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=e?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],c=this.getIndex(t,this.index),l=this.slides[c];if(h===l){o();return}if(this.dir=ye(t,a),this.prevIndex=a,this.index=c,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,o();return}h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),await this._show(h,l,e),h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,await q(),n.length&&this.show(n.shift(),!0)},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?we:$e:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function ye(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Ce(t){return .5*t+300}var Ie={mixins:[ke],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:z,Transitioner:ce},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:bt(),events:{itemshow({target:t}){s.addClass(t,this.clsActive)},itemshown({target:t}){s.addClass(t,this.clsActivated)},itemhidden({target:t}){s.removeClass(t,this.clsActive,this.clsActivated)}}};({...z});function _(t){return`scale3d(${t}, ${t}, 1)`}var ht={...z,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:_(1-.2)},{opacity:1,transform:_(1)}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:_(1-.2*t)},{opacity:t,transform:_(1-.2+.2*t)}]}}},ct={i18n:{counter:"%s / %s"},mixins:[ie,Ie],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:ht,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let t=s.$(this.template);s.isTag(t,"template")&&(t=s.fragment(s.html(t)));const e=s.$(this.selList,t),i=this.$props.nav;s.remove(s.$$(this.selNav,t).filter(o=>!s.matches(o,`.uk-${i}`)));for(const[o,a]of this.items.entries())s.append(e,"<div>"),i==="thumbnav"&&s.wrapAll(Ae(a,this.videoAutoplay),s.append(s.$(this.selNav,t),`<li uk-lightbox-item="${o}"><a href></a></li>`));this.slidenav||s.remove(s.$$(".uk-lightbox-slidenav",t)),this.counter||s.remove(s.$(this.selCounter,t)),s.addClass(e,this.clsFit);const n=s.$("[uk-close]",t),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(s.append(this.container,t))},events:[{name:"click",self:!0,filter:({bgClose:t})=>t,delegate:({selList:t})=>`${t} > *`,handler(t){t.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:t})=>`.${t}`,handler(t){t.defaultPrevented||s.toggleClass(this.list,this.clsFit)}},{name:`${s.pointerMove} ${s.pointerDown} keydown`,filter:({delayControls:t})=>t,handler(){this.showControls()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:t}){if(!this.isToggled()||!this.draggable)return;let e=-1;t===m.LEFT?e="previous":t===m.RIGHT?e="next":t===m.HOME?e=0:t===m.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){s.html(s.$(this.selCaption,this.$el),this.getItem().caption||""),s.html(s.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e);this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=ht.scale,s.removeClass(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:n,attrs:r={}}=e;if(this.setItem(e,"<span uk-spinner uk-inverse></span>"),!i)return;let o;const a={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":!!this.videoAutoplay};if(n==="image"||lt(i)){const h=v("img");$t(h,e.sources),s.attr(h,{src:i,...s.pick(e,["alt","srcset","sizes"]),...r}),s.on(h,"load",()=>this.setItem(e,s.parent(h)||h)),s.on(h,"error",()=>this.setError(e))}else if(n==="video"||dt(i)){const h=this.videoAutoplay==="inline",c=v("video",{src:i,playsinline:"",controls:h?null:"",loop:h?"":null,muted:h?"":null,poster:this.videoAutoplay?null:e.poster,"uk-video":!!this.videoAutoplay,...r});s.on(c,"loadedmetadata",()=>this.setItem(e,c)),s.on(c,"error",()=>this.setError(e))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...r}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,v("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...a,...r}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:h,width:c}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,v("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:c,height:h,...a,...r}))}catch{this.setError(e)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const t of s.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))s.toggleClass(t,this.clsZoom,(t.naturalHeight||t.videoHeight)-this.$el.offsetHeight>Math.max(0,(t.naturalWidth||t.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||s.trigger(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[s.getIndex(t,this.slides)]},setItem(t,e){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function v(t,e){const i=s.fragment(`<${t}>`);return s.attr(i,e),i}function Ae(t,e){const i=t.poster||t.thumb&&(t.type==="image"||lt(t.thumb))?v("img",{src:t.poster||t.thumb,alt:""}):t.thumb&&(t.type==="video"||dt(t.thumb))?v("video",{src:t.thumb,loop:"",playsinline:"",muted:"","uk-video":e==="inline"}):v("canvas");return t.thumbRatio&&(i.style.aspectRatio=t.thumbRatio),i}function lt(t){return t==null?void 0:t.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function dt(t){return t==null?void 0:t.match(/\.(mp4|webm|ogv)($|\?)/i)}var Ee="lightboxPanel";return typeof window<"u"&&window.UIkit&&window.UIkit.component(Ee,ct),ct}));
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.25.23-dev.0ea1d51 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
1
+ /*! UIkit 3.25.23-dev.9ebc131 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -203,11 +203,314 @@
203
203
  }
204
204
  };
205
205
 
206
+ const inBrowser = typeof window !== "undefined";
207
+ const hasTouch = inBrowser && "ontouchstart" in window;
208
+ const hasPointerEvents = inBrowser && window.PointerEvent;
209
+ const pointerDown$1 = hasPointerEvents ? "pointerdown" : hasTouch ? "touchstart" : "mousedown";
210
+ const pointerUp$1 = hasPointerEvents ? "pointerup" : hasTouch ? "touchend" : "mouseup";
211
+ const pointerCancel = hasPointerEvents ? "pointercancel" : "touchcancel";
212
+
213
+ const { isArray, from: toArray } = Array;
214
+ function isFunction(obj) {
215
+ return typeof obj === "function";
216
+ }
217
+ function isObject(obj) {
218
+ return obj !== null && typeof obj === "object";
219
+ }
220
+ function isWindow(obj) {
221
+ return isObject(obj) && obj === obj.window;
222
+ }
223
+ function isDocument(obj) {
224
+ return nodeType(obj) === 9;
225
+ }
226
+ function isNode(obj) {
227
+ return nodeType(obj) >= 1;
228
+ }
229
+ function nodeType(obj) {
230
+ return !isWindow(obj) && isObject(obj) && obj.nodeType;
231
+ }
232
+ function isString(value) {
233
+ return typeof value === "string";
234
+ }
235
+ function isUndefined(value) {
236
+ return value === void 0;
237
+ }
238
+ function toNode(element) {
239
+ return element && toNodes(element)[0];
240
+ }
241
+ function toNodes(element) {
242
+ return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
243
+ }
244
+ function memoize(fn) {
245
+ const cache = /* @__PURE__ */ Object.create(null);
246
+ return (key, ...args) => cache[key] || (cache[key] = fn(key, ...args));
247
+ }
248
+
249
+ function attr(element, name, value) {
250
+ var _a;
251
+ if (isObject(name)) {
252
+ for (const key in name) {
253
+ attr(element, key, name[key]);
254
+ }
255
+ return;
256
+ }
257
+ if (isUndefined(value)) {
258
+ return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
259
+ } else {
260
+ for (const el of toNodes(element)) {
261
+ if (value === null) {
262
+ removeAttr(el, name);
263
+ } else {
264
+ el.setAttribute(name, value);
265
+ }
266
+ }
267
+ }
268
+ }
269
+ function removeAttr(element, name) {
270
+ toNodes(element).forEach((element2) => element2.removeAttribute(name));
271
+ }
272
+
273
+ function parent(element) {
274
+ var _a;
275
+ return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
276
+ }
277
+ function filter(element, selector) {
278
+ return toNodes(element).filter((element2) => matches(element2, selector));
279
+ }
280
+ function matches(element, selector) {
281
+ return toNodes(element).some((element2) => element2.matches(selector));
282
+ }
283
+ function children(element, selector) {
284
+ element = toNode(element);
285
+ const children2 = element ? toArray(element.children) : [];
286
+ return selector ? filter(children2, selector) : children2;
287
+ }
288
+ function index(element, ref) {
289
+ return children(parent(element)).indexOf(element);
290
+ }
291
+
292
+ function findAll(selector, context) {
293
+ return toNodes(_query(selector, toNode(context), "querySelectorAll"));
294
+ }
295
+ const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
296
+ const splitSelectorRe = /(\([^)]*\)|[^,])+/g;
297
+ const parseSelector = memoize((selector) => {
298
+ let isContextSelector = false;
299
+ if (!selector || !isString(selector)) {
300
+ return {};
301
+ }
302
+ const selectors = [];
303
+ for (let sel of selector.match(splitSelectorRe)) {
304
+ sel = sel.trim().replace(addStarRe, "$1 *");
305
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
306
+ selectors.push(sel);
307
+ }
308
+ return {
309
+ selector: selectors.join(","),
310
+ selectors,
311
+ isContextSelector
312
+ };
313
+ });
314
+ const positionRe = /(\([^)]*\)|\S)*/;
315
+ const parsePositionSelector = memoize((selector) => {
316
+ selector = selector.slice(1).trim();
317
+ const [position] = selector.match(positionRe);
318
+ return [position, selector.slice(position.length + 1)];
319
+ });
320
+ function _query(selector, context = document, queryFn) {
321
+ var _a;
322
+ const parsed = parseSelector(selector);
323
+ if (!parsed.isContextSelector) {
324
+ return parsed.selector ? _doQuery(context, queryFn, parsed.selector) : selector;
325
+ }
326
+ selector = "";
327
+ const isSingle = parsed.selectors.length === 1;
328
+ for (let sel of parsed.selectors) {
329
+ let positionSel;
330
+ let ctx = context;
331
+ if (sel[0] === "!") {
332
+ [positionSel, sel] = parsePositionSelector(sel);
333
+ ctx = (_a = context.parentElement) == null ? void 0 : _a.closest(positionSel);
334
+ if (!sel && isSingle) {
335
+ return ctx;
336
+ }
337
+ }
338
+ if (ctx && sel[0] === "-") {
339
+ [positionSel, sel] = parsePositionSelector(sel);
340
+ ctx = ctx.previousElementSibling;
341
+ ctx = matches(ctx, positionSel) ? ctx : null;
342
+ if (!sel && isSingle) {
343
+ return ctx;
344
+ }
345
+ }
346
+ if (!ctx) {
347
+ continue;
348
+ }
349
+ if (isSingle) {
350
+ if (sel[0] === "~" || sel[0] === "+") {
351
+ sel = `:scope > :nth-child(${index(ctx) + 1}) ${sel}`;
352
+ ctx = ctx.parentElement;
353
+ } else if (sel[0] === ">") {
354
+ sel = `:scope ${sel}`;
355
+ }
356
+ return _doQuery(ctx, queryFn, sel);
357
+ }
358
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
359
+ }
360
+ if (!isDocument(context)) {
361
+ context = context.ownerDocument;
362
+ }
363
+ return _doQuery(context, queryFn, selector);
364
+ }
365
+ function _doQuery(context, queryFn, selector) {
366
+ try {
367
+ return context[queryFn](selector);
368
+ } catch {
369
+ return null;
370
+ }
371
+ }
372
+ function domPath(element) {
373
+ const names = [];
374
+ while (element.parentNode) {
375
+ const id = attr(element, "id");
376
+ if (id) {
377
+ names.unshift(`#${escape(id)}`);
378
+ break;
379
+ } else {
380
+ let { tagName } = element;
381
+ if (tagName !== "HTML") {
382
+ tagName += `:nth-child(${index(element) + 1})`;
383
+ }
384
+ names.unshift(tagName);
385
+ element = element.parentNode;
386
+ }
387
+ }
388
+ return names.join(" > ");
389
+ }
390
+ function escape(css) {
391
+ return isString(css) ? CSS.escape(css) : "";
392
+ }
393
+
394
+ function on(...args) {
395
+ let [targets, types, selector, listener, useCapture = false] = getArgs(args);
396
+ if (listener.length > 1) {
397
+ listener = detail(listener);
398
+ }
399
+ if (useCapture == null ? void 0 : useCapture.self) {
400
+ listener = selfFilter(listener);
401
+ }
402
+ if (selector) {
403
+ listener = delegate(selector, listener);
404
+ }
405
+ for (const type of types) {
406
+ for (const target of targets) {
407
+ target.addEventListener(type, listener, useCapture);
408
+ }
409
+ }
410
+ return () => off(targets, types, listener, useCapture);
411
+ }
412
+ function off(...args) {
413
+ let [targets, types, , listener, useCapture = false] = getArgs(args);
414
+ for (const type of types) {
415
+ for (const target of targets) {
416
+ target.removeEventListener(type, listener, useCapture);
417
+ }
418
+ }
419
+ }
420
+ function once(...args) {
421
+ const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);
422
+ const off2 = on(
423
+ element,
424
+ types,
425
+ selector,
426
+ (e) => {
427
+ const result = !condition || condition(e);
428
+ if (result) {
429
+ off2();
430
+ listener(e, result);
431
+ }
432
+ },
433
+ useCapture
434
+ );
435
+ return off2;
436
+ }
437
+ function getArgs(args) {
438
+ args[0] = toEventTargets(args[0]);
439
+ if (isString(args[1])) {
440
+ args[1] = args[1].split(" ");
441
+ }
442
+ if (isFunction(args[2])) {
443
+ args.splice(2, 0, false);
444
+ }
445
+ return args;
446
+ }
447
+ function delegate(selector, listener) {
448
+ return (e) => {
449
+ const current = selector[0] === ">" ? findAll(selector, e.currentTarget).reverse().find((element) => element.contains(e.target)) : e.target.closest(selector);
450
+ if (current) {
451
+ e.current = current;
452
+ listener.call(this, e);
453
+ delete e.current;
454
+ }
455
+ };
456
+ }
457
+ function detail(listener) {
458
+ return (e) => isArray(e.detail) ? listener(e, ...e.detail) : listener(e);
459
+ }
460
+ function selfFilter(listener) {
461
+ return function(e) {
462
+ if (e.target === e.currentTarget || e.target === e.current) {
463
+ return listener.call(null, e);
464
+ }
465
+ };
466
+ }
467
+ function isEventTarget(target) {
468
+ return target && "addEventListener" in target;
469
+ }
470
+ function toEventTarget(target) {
471
+ return isEventTarget(target) ? target : toNode(target);
472
+ }
473
+ function toEventTargets(target) {
474
+ return isArray(target) ? target.map(toEventTarget).filter(Boolean) : isString(target) ? findAll(target) : isEventTarget(target) ? [target] : toNodes(target);
475
+ }
476
+
477
+ const keyMap = {
478
+ ESC: 27,
479
+ SPACE: 32,
480
+ END: 35,
481
+ HOME: 36,
482
+ LEFT: 37,
483
+ RIGHT: 39};
484
+
206
485
  function maybeDefaultPreventClick(e) {
207
486
  if (e.target.closest('a[href="#"],a[href=""]')) {
208
487
  e.preventDefault();
209
488
  }
210
489
  }
490
+ function onEscape(handler, isEligible = () => true) {
491
+ return on(document, "keydown", (e) => {
492
+ if (e.keyCode === keyMap.ESC && isEligible()) {
493
+ handler(e);
494
+ }
495
+ });
496
+ }
497
+ function onOutsidePointer(handler, isOutside, isEligible) {
498
+ return on(document, pointerDown$1, ({ target }) => {
499
+ if (!isOutside(target) || isEligible && !isEligible()) {
500
+ return;
501
+ }
502
+ once(
503
+ document,
504
+ `${pointerUp$1} ${pointerCancel} scroll`,
505
+ ({ defaultPrevented, type, target: newTarget }) => {
506
+ if (!defaultPrevented && type === pointerUp$1 && target === newTarget) {
507
+ handler(target);
508
+ }
509
+ },
510
+ true
511
+ );
512
+ });
513
+ }
211
514
 
212
515
  var Togglable = {
213
516
  props: {
@@ -388,6 +691,7 @@
388
691
  }
389
692
 
390
693
  const active = [];
694
+ const pendingReject = /* @__PURE__ */ new WeakMap();
391
695
  var Modal = {
392
696
  mixins: [Class, Container, Togglable],
393
697
  props: {
@@ -542,11 +846,13 @@
542
846
  }
543
847
  };
544
848
  function animate(el, show, { transitionElement, _toggle }) {
849
+ let rejectAnimation;
545
850
  return new Promise(
546
851
  (resolve, reject) => util.once(el, "show hide", () => {
547
852
  var _a;
548
- (_a = el._reject) == null ? void 0 : _a.call(el);
549
- el._reject = reject;
853
+ (_a = pendingReject.get(el)) == null ? void 0 : _a();
854
+ rejectAnimation = reject;
855
+ pendingReject.set(el, reject);
550
856
  _toggle(el, show);
551
857
  const off = util.once(
552
858
  transitionElement,
@@ -567,10 +873,14 @@
567
873
  toMs(util.css(transitionElement, "transitionDuration"))
568
874
  );
569
875
  })
570
- ).then(() => delete el._reject);
876
+ ).then(() => {
877
+ if (pendingReject.get(el) === rejectAnimation) {
878
+ pendingReject.delete(el);
879
+ }
880
+ });
571
881
  }
572
882
  function toMs(time) {
573
- return time ? util.endsWith(time, "ms") ? util.toFloat(time) : util.toFloat(time) * 1e3 : 0;
883
+ return util.toFloat(time) * (util.endsWith(time, "ms") ? 1 : 1e3);
574
884
  }
575
885
  function preventBackgroundFocus(modal) {
576
886
  return util.on(document, "focusin", (e) => {
@@ -586,28 +896,17 @@
586
896
  });
587
897
  }
588
898
  function listenForBackgroundClose(modal) {
589
- return util.on(document, util.pointerDown, ({ target }) => {
590
- if (util.last(active) !== modal || modal.overlay && !modal.$el.contains(target) || !modal.panel || modal.panel.contains(target)) {
591
- return;
592
- }
593
- util.once(
594
- document,
595
- `${util.pointerUp} ${util.pointerCancel} scroll`,
596
- ({ defaultPrevented, type, target: newTarget }) => {
597
- if (!defaultPrevented && type === util.pointerUp && target === newTarget) {
598
- modal.hide();
599
- }
600
- },
601
- true
602
- );
603
- });
899
+ return onOutsidePointer(
900
+ () => modal.hide(),
901
+ (target) => (!modal.overlay || modal.$el.contains(target)) && Boolean(modal.panel) && !modal.panel.contains(target),
902
+ () => util.last(active) === modal
903
+ );
604
904
  }
605
905
  function listenForEscClose(modal) {
606
- return util.on(document, "keydown", (e) => {
607
- if (e.keyCode === 27 && util.last(active) === modal) {
608
- modal.hide();
609
- }
610
- });
906
+ return onEscape(
907
+ () => modal.hide(),
908
+ () => util.last(active) === modal
909
+ );
611
910
  }
612
911
  function setAriaExpanded(el, toggled) {
613
912
  if (el == null ? void 0 : el.ariaExpanded) {
@@ -932,13 +1231,6 @@
932
1231
  return (el == null ? void 0 : el.id) || `${instance.$options.id}-${id++}`;
933
1232
  }
934
1233
 
935
- const keyMap = {
936
- SPACE: 32,
937
- END: 35,
938
- HOME: 36,
939
- LEFT: 37,
940
- RIGHT: 39};
941
-
942
1234
  var SliderNav = {
943
1235
  i18n: {
944
1236
  next: "Next slide",