function r(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function Jt(a,b,c){b&&r(a.prototype,b),c&&r(a,c),Object.defineProperty(a,"prototype",{writable:!1})}/*!
 * Splide.js
 * Version  : 4.1.2
 * License  : MIT
 * Copyright: 2022 Naotoshi Fujita
 */var n,t;n=this,t=function(){"use strict";function G(a){a.length=0}function a(a,b,c){return Array.prototype.slice.call(a,b,c)}function aa(b){return b.bind.apply(b,[null].concat(a(arguments,1)))}function v(){}function D(a){return requestAnimationFrame(a)}function h(a,b){return typeof b===a}function ba(a){return!o(a)&&h("object",a)}function o(a){return null===a}function R(a){try{return a instanceof(a.ownerDocument.defaultView||window).HTMLElement}catch(a){return!1}}function c(a){return p(a)?a:[a]}function m(a,b){c(a).forEach(b)}function g(a,b){return-1<a.indexOf(b)}function b(a,b){return a.push.apply(a,c(b)),a}function k(a,b,c){a&&m(b,function(b){b&&a.classList[c?"add":"remove"](b)})}function ca(a,b){k(a,wa(b)?b.split(" "):b,!0)}function A(a,b){m(b,a.appendChild.bind(a))}function L(a,b){m(a,function(a){var c=(b||a).parentNode;c&&c.insertBefore(a,b)})}function u(a,b){return R(a)&&(a.msMatchesSelector||a.matches).call(a,b)}function M(b,c){return b=b?a(b.children):[],c?b.filter(function(a){return u(a,c)}):b}function da(a,b){return b?M(a,b)[0]:a.firstElementChild}function O(a,b,c){a&&(c?C(a).reverse():C(a)).forEach(function(c){"__proto__"!==c&&b(a[c],c)})}function ea(b){return a(arguments,1).forEach(function(a){O(a,function(c,d){b[d]=a[d]})}),b}function w(b){return a(arguments,1).forEach(function(a){O(a,function(a,c){b[c]=p(a)?a.slice():ba(a)?w({},ba(b[c])?b[c]:{},a):a})}),b}function d(a,b){m(b||C(a),function(b){delete a[b]})}function fa(a,b){m(a,function(a){m(b,function(b){a&&a.removeAttribute(b)})})}function P(a,b,c){ba(b)?O(b,function(b,c){P(a,c,b)}):m(a,function(a){o(c)||""===c?fa(a,b):a.setAttribute(b,c+"")})}function I(a,b,c){return a=document.createElement(a),b&&(wa(b)?ca:P)(a,b),c&&A(c,a),a}function j(a,b,c){return x(c)?getComputedStyle(a)[b]:void(o(c)||(a.style[b]=""+c))}function ga(a,b){j(a,"display",b)}function y(a){a.setActive&&a.setActive()||a.focus({preventScroll:!0})}function _(a,b){return a.getAttribute(b)}function z(a,b){return a&&a.classList.contains(b)}function S(a){return a.getBoundingClientRect()}function N(a){m(a,function(a){a&&a.parentNode&&a.parentNode.removeChild(a)})}function T(a){return da(new DOMParser().parseFromString(a,"text/html").body)}function ha(a,b){a.preventDefault(),b&&(a.stopPropagation(),a.stopImmediatePropagation())}function r(a,b){return a&&a.querySelector(b)}function F(b,c){return c?a(b.querySelectorAll(c)):[]}function ia(a,b){k(a,b,!1)}function X(a){return a.timeStamp}function ja(a){return wa(a)?a:a?a+"px":""}function W(a,b){if(!a)throw new Error("[splide] "+(b||""))}function ka(a,b,c){return Ba(a-b)<c}function la(a,b,c,d){var e=ya(b,c),b=Y(b,c);return d?e<a&&a<b:e<=a&&a<=b}function ma(a,b,c){var d=ya(b,c),b=Y(b,c);return ya(Y(d,a),b)}function q(a){return(0<a)-(0>a)}function na(a,b){return m(b,function(b){a=a.replace("%s",""+b)}),a}function oa(a){return 10>a?"0"+a:""+a}function pa(){function a(a,b,c){m(a,function(a){a&&m(b,function(b){b.split(" ").forEach(function(b){b=b.split("."),c(a,b[0],b[1])})})})}var b=[];return{bind:function(c,d,f,g){a(c,d,function(a,c,d){var e=("addEventListener"in a),h=e?a.removeEventListener.bind(a,c,f,g):a.removeListener.bind(a,f);e?a.addEventListener(c,f,g):a.addListener(f),b.push([a,c,d,f,h])})},unbind:function(c,d,e){a(c,d,function(a,c,d){b=b.filter(function(b){return!!(b[0]!==a||b[1]!==c||b[2]!==d||e&&b[3]!==e)||(b[4](),!1)})})},dispatch:function(a,b,c){var d;return"function"==typeof CustomEvent?d=new CustomEvent(b,{bubbles:!0,detail:c}):(d=document.createEvent("CustomEvent")).initCustomEvent(b,!0,!1,c),a.dispatchEvent(d),d},destroy:function(){b.forEach(function(a){a[4]()}),G(b)}}}function qa(b){var d=b?b.event.bus:document.createDocumentFragment(),e=pa();return b&&b.event.on("destroy",e.destroy),ea(e,{bus:d,on:function(a,b){e.bind(d,c(a).join(" "),function(a){b.apply(b,p(a.detail)?a.detail:[])})},off:aa(e.unbind,d),emit:function(b){e.dispatch(d,b,a(arguments,1))}})}function Q(b,g,h,i){function j(){if(!q){if(e=b?ya((p()-d)/b,1):1,h&&h(e),1<=e&&(g(),d=p(),i&&++n>=i))return k();m=D(j)}}function k(){q=!0}function l(){m&&cancelAnimationFrame(m),q=!(m=e=0)}var d,m,p=Date.now,e=0,q=!0,n=0;return{start:function(a){a||l(),d=p()-(a?e*b:0),q=!1,m=D(j)},rewind:function(){d=p(),e=0,h&&h(e)},pause:k,cancel:l,set:function(a){b=a},isPaused:function(){return q}}}function ra(a){var b=a;return{set:function(a){b=a},is:function(a){return g(c(a),b)}}}function sa(q,o,r,A){function t(){var a=q.splides.map(function(a){return a=a.splide.Components.Slides.getAt(o),a?a.slide.id:""}).join(" ");P(A,Ra,na(i.slideX,(b?r:o)+1)),P(A,$,a),P(A,"role",p?"button":""),p&&fa(A,Va)}function u(){D||B()}function B(){var a,c,d;D||(a=q.index,(d=C())!==z(A,"is-active")&&(k(A,"is-active",d),P(A,Pa,l&&d||""),G(d?"active":"inactive",x)),d=function(){if(q.is("fade"))return C();var a=S(f.Elements.track),b=S(A),c=g("left",!0),d=g("right",!0);return za(a[c])<=Aa(b[c])&&za(b[d])<=Aa(a[d])}(),c=!d&&(!C()||b),q.state.is([4,5])||P(A,Ta,c||""),P(F(A,s.focusableNodes||""),"tabindex",c?-1:""),p&&P(A,"tabindex",c?-1:0),d!==z(A,"is-visible")&&(k(A,"is-visible",d),G(d?"visible":"hidden",x)),d||document.activeElement!==A||(c=f.Slides.getAt(q.index))&&y(c.slide),k(A,"is-prev",o===a-1),k(A,"is-next",o===a+1))}function C(){var a=q.index;return a===o||s.cloneStatus&&a===r}var D,E=qa(q),n=E.on,G=E.emit,c=E.bind,f=q.Components,a=q.root,s=q.options,l=s.isNavigation,d=s.updateOnMove,i=s.i18n,h=s.pagination,p=s.slideFocus,g=f.Direction.resolve,m=_(A,"style"),v=_(A,Ra),b=-1<r,w=da(A,"."+db),x={index:o,slideIndex:r,slide:A,container:w,isClone:b,mount:function(){b||(A.id=a.id+"-slide"+oa(o+1),P(A,"role",h?"tabpanel":"group"),P(A,Va,i.slide),P(A,Ra,v||na(i.slideLabel,[o+1,q.length]))),c(A,"click",aa(G,"click",x)),c(A,"keydown",aa(G,"sk",x)),n(["moved","sh","scrolled"],B),n("navigation:mounted",t),d&&n("move",u)},destroy:function(){D=!0,E.destroy(),ia(A,rb),fa(A,Za),P(A,"style",m),P(A,Ra,v||"")},update:B,style:function(a,b,c){j(c&&w||A,a,b)},isWithin:function(a,c){return a=Ba(a-o),(a=!b&&(s.rewind||q.is("loop"))?ya(a,q.length-a):a)<=c}};return x}function ta(a){return a=wa(a)?a:a.key,zb[a]||a}function s(a,b,c){function d(){e.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}var e=b.Slides;return{mount:function(){qa(a).on(["mounted","refresh"],d)},start:function(a,b){e.style("transition","opacity "+c.speed+"ms "+c.easing),va(b)},cancel:v}}function ua(b,d,g){function e(){m(""),a.cancel()}var h,k=d.Move,f=d.Controller,a=d.Scroll,i=d.Elements.list,m=aa(j,i,"transition");return{mount:function(){qa(b).bind(i,"transitionend",function(a){a.target===i&&h&&(e(),h())})},start:function(c,d){var e=k.toPosition(c,!0),i=k.getPosition(),j=function(a){var c=g.rewindSpeed;if(b.is("slide")&&c){var d=f.getIndex(!0),e=f.getEnd();if(0===d&&e<=a||e<=d&&0===a)return c}return g.speed}(c);1<=Ba(e-i)&&1<=j?g.useScroll?a.scroll(e,j,!1,d):(m("transform "+j+"ms "+g.easing),k.translate(e,!0),h=d):(k.jump(c),d())},cancel:e}}var va=setTimeout,p=Array.isArray,e=aa(h,"function"),wa=aa(h,"string"),x=aa(h,"undefined"),C=Object.keys,E="splide",xa="data-"+E,ya=Math.min,Y=Math.max,za=Math.floor,Aa=Math.ceil,Ba=Math.abs,f={},U="mounted",B="move",H="moved",Ca="refresh",J="updated",K="resize",Da="resized",Ea="scroll",Fa="scrolled",V="autoplay:play",Ga="autoplay:pause",Ha="lazyload:loaded",Ia="Arrow",Ja=Ia+"Left",Ka=Ia+"Right",La=Ia+"Up",Ia=Ia+"Down",Ma="ttb",Na={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[La,Ka],ArrowRight:[Ia,Ja]},Oa="role",l="tabindex",Z="aria-",$=Z+"controls",Pa=Z+"current",Qa=Z+"selected",Ra=Z+"label",Sa=Z+"labelledby",Ta=Z+"hidden",Ua=Z+"orientation",Va=Z+"roledescription",Wa=Z+"live",Xa=Z+"busy",Ya=Z+"atomic",Za=[Oa,l,"disabled",$,Pa,Ra,Sa,Ta,Ua,Va],Z=E+"__",$a=E,_a=Z+"track",ab=Z+"list",bb=Z+"slide",cb=bb+"--clone",db=bb+"__container",eb=Z+"arrows",fb=Z+"arrow",gb=fb+"--prev",hb=fb+"--next",ib=Z+"pagination",jb=ib+"__page",kb=Z+"progress__bar",lb=Z+"toggle",mb=Z+"sr",nb="is-active",ob="is-loading",pb="is-focus-in",qb="is-overflow",rb=[nb,"is-visible","is-prev","is-next",ob,pb,qb],sb="touchstart mousedown",tb="touchmove mousemove",ub="touchend touchcancel mouseup click",vb="slide",wb="loop",xb="fade",yb={passive:!1,capture:!0},zb={Spacebar:" ",Right:Ka,Left:Ja,Up:La,Down:Ia},Ab="keydown",Bb=xa+"-lazy",Cb=Bb+"-srcset",Db=[" ","Enter"],Eb=Object.freeze({__proto__:null,Media:function(b,g,h){function j(a){a&&e.destroy()}function f(b,c){c=matchMedia(c),e.bind(c,"change",a),p.push([b,c])}function a(){var a=l.is(7),c=h.direction,e=p.reduce(function(a,b){return w(a,b[1].matches?b[0]:{})},{});d(h),k(e),h.destroy?b.destroy("completely"===h.destroy):a?(j(!0),b.mount()):c!==h.direction&&b.refresh()}function k(a,c,d){w(h,a),c&&w(Object.getPrototypeOf(h),a),!d&&l.is(1)||b.emit(J,h)}var l=b.state,m=h.breakpoints||{},o=h.reducedMotion||{},e=pa(),p=[];return{setup:function(){var b="min"===h.mediaQuery;C(m).sort(function(a,c){return b?+a-+c:+c-+a}).forEach(function(a){f(m[a],"("+(b?"min":"max")+"-width:"+a+"px)")}),f(o,"(prefers-reduced-motion: reduce)"),a()},destroy:j,reduce:function(a){matchMedia("(prefers-reduced-motion: reduce)").matches&&(a?w(h,o):d(h,C(o)))},set:k}},Direction:function(a,b,c){return{resolve:function(a,b,d){var e="rtl"!==(d=d||c.direction)||b?d===Ma?0:-1:1;return Na[a]&&Na[a][e]||a.replace(/width|left|right/i,function(a,b){return a=Na[a.toLowerCase()][e]||a,0<b?a.charAt(0).toUpperCase()+a.slice(1):a})},orient:function(a){return a*("rtl"===c.direction?1:-1)}}},Elements:function(j,n,q){function i(){w=m("."+_a),x=da(w,"."+ab),W(w&&x,"A track/list element is missing."),b(l,M(x,"."+bb+":not(."+cb+")")),O({arrows:eb,pagination:ib,prev:gb,next:hb,bar:kb,toggle:lb},function(a,b){s[b]=m("."+a)}),ea(s,{root:B,track:w,list:x,slides:l});var c=B.id||function(a){return""+a+oa(f[a]=(f[a]||0)+1)}(E),d=q.role;B.id=c,w.id=w.id||c+"-track",x.id=x.id||c+"-list",!_(B,Oa)&&"SECTION"!==B.tagName&&d&&P(B,Oa,d),P(B,Va,a.carousel),P(x,Oa,"presentation"),g()}function p(a){var b=Za.concat("style");G(l),ia(B,d),ia(w,C),fa([w,x],b),fa(B,a?b:["style",Va])}function g(){ia(B,d),ia(w,C),d=t($a),C=t(_a),ca(B,d),ca(w,C),P(B,Ra,q.label),P(B,Sa,q.labelledby)}function m(a){return a=r(B,a),a&&function(a,b){if(e(a.closest))return a.closest(b);for(var c=a;c&&1===c.nodeType&&!u(c,b);)c=c.parentElement;return c}(a,"."+$a)===B?a:void 0}function t(a){return[a+"--"+q.type,a+"--"+q.direction,q.drag&&a+"--draggable",q.isNavigation&&a+"--nav",a===$a&&nb]}var w,x,y,z=qa(j),A=z.on,c=z.bind,B=j.root,a=q.i18n,s={},l=[],d=[],C=[];return ea(s,{setup:i,mount:function(){A(Ca,p),A(Ca,i),A(J,g),c(document,sb+" keydown",function(a){y="keydown"===a.type},{capture:!0}),c(B,"focusin",function(){k(B,pb,!!y)})},destroy:p})},Slides:function(b,j,k){function o(){w.forEach(function(a,b){l(a,b,-1)})}function i(){q(function(a){a.destroy()}),G(a)}function l(c,d,e){d=sa(b,d,e,c),d.mount(),a.push(d),a.sort(function(a,b){return a.index-b.index})}function d(b){return b?h(function(a){return!a.isClone}):a}function q(a,b){d(b).forEach(a)}function h(b){return a.filter(e(b)?b:function(a){return wa(b)?u(a.slide,b):g(c(b),a.index)})}var p=qa(b),r=p.on,v=p.emit,t=p.bind,w=(p=j.Elements).slides,f=p.list,a=[];return{mount:function(){o(),r(Ca,i),r(Ca,o)},destroy:i,update:function(){q(function(a){a.update()})},register:l,get:d,getIn:function(a){var b=j.Controller,c=b.toIndex(a),d=b.hasFocus()?1:k.perPage;return h(function(a){return la(a.index,c,c+d-1)})},getAt:function(a){return h(a)[0]},add:function(a,b){m(a,function(a){var c,d,e;R(a=wa(a)?T(a):a)&&((c=w[b])?L(a,c):A(f,a),ca(a,k.classes.slide),c=a,d=aa(v,K),c=F(c,"img"),(e=c.length)?c.forEach(function(a){t(a,"load error",function(){--e||d()})}):d())}),v(Ca)},remove:function(a){N(h(a).map(function(a){return a.slide})),v(Ca)},forEach:q,filter:h,style:function(a,b,c){q(function(d){d.style(a,b,c)})},getLength:function(b){return(b?w:a).length},isEnough:function(){return a.length>k.perPage}}},Layout:function(q,t,z){function A(){E=z.direction===Ma,j(s,"maxWidth",ja(z.width)),j(l,I("paddingLeft"),i(!1)),j(l,I("paddingRight"),i(!0)),g(!0)}function g(a){var d=S(s);(a||F.width!==d.width||F.height!==d.height)&&(j(l,"height",function(){var a="";return E&&(W(a=m(),"height or heightRatio is missing."),a="calc("+a+" - "+i(!1)+" - "+i(!0)+")"),a}()),h(I("marginRight"),ja(z.gap)),h("width",z.autoWidth?null:ja(z.fixedWidth)||(E?"":b())),h("height",ja(z.fixedHeight)||(E?z.autoHeight?null:b():m()),!0),F=d,c(Da),G!==(G=D())&&(k(s,qb,G),c("overflow",G)))}function i(a){var b=z.padding,a=I(a?"right":"left");return b&&ja(b[a]||(ba(b)?0:b))||"0px"}function m(){return ja(z.height||S(d).width*z.heightRatio)}function b(){var a=ja(z.gap);return"calc((100%"+(a&&" + "+a)+")/"+(z.perPage||1)+(a&&" - "+a)+")"}function w(){return S(d)[I("width")]}function x(a,b){return a=v(a||0),a?S(a.slide)[I("width")]+(b?0:C()):0}function y(a,b){var c,a=v(a);return a?(a=S(a.slide)[I("right")],c=S(d)[I("left")],Ba(a-c)+(b?0:C())):0}function B(a){return y(q.length-1)-y(0)+x(0,a)}function C(){var a=v(0);return a&&parseFloat(j(a.slide,I("marginRight")))||0}function D(){return q.is(xb)||B(!0)>w()}var E,F,G,H=(f=qa(q)).on,e=f.bind,c=f.emit,f=t.Slides,I=t.Direction.resolve,s=(t=t.Elements).root,l=t.track,d=t.list,v=f.getAt,h=f.style;return{mount:function(){var a,b,d;A(),e(window,"resize load",(a=aa(c,K),d=Q(b||0,a,null,1),function(){d.isPaused()&&d.start()})),H([J,Ca],A),H(K,g)},resize:g,listSize:w,slideSize:x,sliderSize:B,totalSize:y,getPadding:function(a){return parseFloat(j(l,I("padding"+(a?"Right":"Left"))))||0},isOverflow:D}},Clones:function(g,c,i){function f(){if(p(Ca,j),p([J,K],k),h=m()){var d=h,f=a.get().slice(),l=f.length;if(l){for(;f.length<d;)b(f,f);b(f.slice(-d),f.slice(0,d)).forEach(function(c,e){var h=e<d,j=function(a,b){return a=a.cloneNode(!0),ca(a,i.classes.clone),a.id=g.root.id+"-clone"+oa(b+1),a}(c.slide,e);h?L(j,f[0].slide):A(q.list,j),b(s,j),a.register(j,e-d+(h?0:l),c.index)})}c.Layout.resize(!0)}}function j(){d(),f()}function d(){N(s),G(s),e.destroy()}function k(){var a=m();h!==a&&(h<a||!a)&&e.emit(Ca)}function m(){var a,b=i.clones;return g.is(wb)?x(b)&&(b=(a=i[r("fixedWidth")]&&c.Layout.slideSize(0))&&Aa(S(q.track)[r("width")]/a)||i[r("autoWidth")]&&g.length||2*i.perPage):b=0,b}var h,e=qa(g),p=e.on,q=c.Elements,a=c.Slides,r=c.Direction.resolve,s=[];return{mount:f,destroy:d}},Move:function(q,z,c){function o(){z.Controller.isBusy()||(z.Scroll.cancel(),m(q.index),z.Slides.update())}function m(a){y(k(a,!0))}function y(a,c){q.is(xb)||(c=c?a:function(a){{var c,d;q.is(wb)&&(c=r(a),d=c>z.Controller.getEnd(),(0>c||d)&&(a=b(a,d)))}return a}(a),j(h,"transform","translate"+d("X")+"("+c+"px)"),a!==c&&G("sh"))}function b(a,b){var c=a-C(b),d=l();return a-=v(d*(Aa(Ba(c)/d)||1))*(b?1:-1)}function w(){y(A(),!0),D.cancel()}function r(a){for(var b=z.Slides.get(),c=0,d=1/0,f=0;f<b.length;f++){var g=b[f].index,h=Ba(k(g,!0)-a);if(!(h<=d))break;d=h,c=g}return c}function k(b,d){var e=v(u(b-1)-(b=b,"center"===(e=c.focus)?(s()-a(b,!0))/2:+e*a(b)||0));return d?(b=e,b=c.trimSpace&&q.is(vb)?ma(b,0,v(l(!0)-s())):b):e}function A(){var a=d("left");return S(h)[a]-S(p)[a]+v(t(!1))}function C(a){return k(a?z.Controller.getEnd():0,!!c.trimSpace)}var D,E=qa(q),F=E.on,G=E.emit,f=q.state.set,a=(E=z.Layout).slideSize,t=E.getPadding,u=E.totalSize,s=E.listSize,l=E.sliderSize,d=(E=z.Direction).resolve,v=E.orient,h=(E=z.Elements).list,p=E.track;return{mount:function(){D=z.Transition,F([U,Da,J,Ca],o)},move:function(a,c,e,g){var i,j;a!==c&&(i=e<a,j=v(b(A(),i)),i?0<=j:j<=h[d("scrollWidth")]-S(p)[d("width")])&&(w(),y(b(A(),e<a),!0)),f(4),G(B,c,e,a),D.start(c,function(){f(3),G(H,c,e,a),g&&g()})},jump:m,translate:y,shift:b,cancel:w,toIndex:r,toPosition:k,getPosition:A,getLimit:C,exceededLimit:function(a,b){b=x(b)?A():b;var c=!0!==a&&v(b)<v(C(!1)),a=!1!==a&&v(b)>v(C(!0));return c||a},reposition:o}},Controller:function(j,o,q){function e(){K=h(!0),L=q.perMove,M=q.perPage,I=A();var a=ma(w,0,p?I:K-1);a!==w&&(w=a,P.reposition())}function u(){I!==A()&&t("ei")}function B(a,b){var c=L||(G()?1:M),c=C(w+c*(a?-1:1),w,!(L||G()));return-1===c&&m&&!ka(l(),d(!a),1)?a?0:I:b?c:E(c)}function C(a,b,c){var d;return v()||G()?((d=function(a){if(m&&"move"===q.trimSpace&&a!==w)for(var b=l();b===i(a,!0)&&la(a,0,j.length-1,!q.rewind);)a<w?--a:++a;return a}(a))!==a&&(b=a,a=d,c=!1),0>a||I<a?a=!L&&(la(0,a,b,!0)||la(I,b,a,!0))?F(z(a)):g?c?0>a?-(K%M||M):K:a:q.rewind?0>a?I:0:-1:c&&a!==b&&(a=F(z(b)+(a<b?-1:1)))):a=-1,a}function E(a){return g?(a+K)%K||0:a}function A(){for(var a=K-(G()||g&&L?1:M);p&&0<a--;)if(i(K-1,!0)!==i(a,!0)){a++;break}return ma(a,0,K-1)}function F(a){return ma(G()?a:M*a,0,I)}function z(a){return G()?ya(a,I):za((I<=a?K-1:a)/M)}function D(a){a!==w&&(Q=w,w=a)}function G(){return!x(q.focus)||q.isNavigation}function H(){return j.state.is([4,5])&&!!q.waitForTransition}var I,K,L,M,N=qa(j),O=N.on,t=N.emit,P=o.Move,l=P.getPosition,d=P.getLimit,i=P.toPosition,v=(N=o.Slides).isEnough,h=N.getLength,p=q.omitEnd,g=j.is(wb),m=j.is(vb),y=aa(B,!1),b=aa(B,!0),w=q.start||0,Q=w;return{mount:function(){e(),O([J,Ca,"ei"],e),O(Da,u)},go:function(a,c,d){var e;H()||-1<(e=E(a=function(a){var c=w;{var d,e;wa(a)?(e=a.match(/([+\-<>])(\d+)?/)||[],d=e[1],e=e[2],"+"===d||"-"===d?c=C(w+ +(""+d+(+e||1)),w):">"===d?c=e?F(+e):y(!0):"<"===d&&(c=b(!0))):c=g?a:ma(a,0,I)}return c}(a)))&&(c||e!==w)&&(D(e),P.move(a,e,Q,d))},scroll:function(a,b,c,d){o.Scroll.scroll(a,b,c,function(){var a=E(P.toIndex(l()));D(p?ya(a,I):a),d&&d()})},getNext:y,getPrev:b,getAdjacent:B,getEnd:A,setIndex:D,getIndex:function(a){return a?Q:w},toIndex:F,toPage:z,toDest:function(a){return a=P.toIndex(a),m?ma(a,0,I):a},hasFocus:G,isBusy:H}},Arrows:function(j,o,q){function n(){var a=q.arrows;!a||D&&E||(h=d||I("div",f.arrows),D=k(!0),E=k(!1),z=!0,A(h,[D,E]),d||L(h,v)),D&&E&&(ea(F,{prev:D,next:E}),ga(h,a?"":"none"),ca(h,B=eb+"--"+q.direction),a&&(u([U,H,Ca,Fa,"ei"],x),e(E,"click",aa(w,">")),e(D,"click",aa(w,"<")),x(),P([D,E],$,v.id),c("arrows:mounted",D,E))),u(J,b)}function b(){t(),n()}function t(){C.destroy(),ia(h,B),z?(N(d?[D,E]:h),D=E=null):fa([D,E],Za)}function w(a){l.go(a,!0)}function k(a){return T("<button class=\""+f.arrow+" "+(a?f.prev:f.next)+"\" type=\"button\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" width=\"40\" height=\"40\" focusable=\"false\"><path d=\""+(q.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+"\" />")}function x(){var b,d,e,f;D&&E&&(f=j.index,b=l.getPrev(),d=l.getNext(),e=-1<b&&f<b?a.last:a.prev,f=-1<d&&d<f?a.first:a.next,D.disabled=0>b,E.disabled=0>d,P(D,Ra,e),P(E,Ra,f),c("arrows:updated",D,E,b,d))}var z,B,C=qa(j),u=C.on,e=C.bind,c=C.emit,f=q.classes,a=q.i18n,s=o.Elements,l=o.Controller,d=s.arrows,v=s.track,h=d,D=s.prev,E=s.next,F={};return{arrows:F,mount:n,destroy:t,update:x}},Autoplay:function(q,x,t){function i(){a()&&x.Slides.isEnough()&&(f.start(!t.resetProgress),z=w=h=!1,y(),c(V))}function g(b){h=!!(b=void 0===b||b),y(),a()||(f.pause(),c(Ga))}function m(){h||(w||z?g(!1):i())}function y(){d&&(k(d,nb,!h),P(d,Ra,t.i18n[h?"play":"pause"]))}function b(a){a=x.Slides.getAt(a),f.set(a&&+_(a.slide,c+"-interval")||t.interval)}var w,z,n=qa(q),A=n.on,e=n.bind,c=n.emit,f=Q(t.interval,q.go.bind(q,">"),function(a){var b=s.bar;b&&j(b,"width",100*a+"%"),c("autoplay:playing",a)}),a=f.isPaused,s=x.Elements,l=(n=x.Elements).root,d=n.toggle,v=t.autoplay,h="pause"===v;return{mount:function(){v&&(t.pauseOnHover&&e(l,"mouseenter mouseleave",function(a){w="mouseenter"===a.type,m()}),t.pauseOnFocus&&e(l,"focusin focusout",function(a){z="focusin"===a.type,m()}),d&&e(d,"click",function(){h?i():g(!0)}),A([B,Ea,Ca],f.rewind),A(B,b),d&&P(d,$,s.track.id),h||i(),y())},destroy:f.cancel,play:i,pause:g,isPaused:a}},Cover:function(a,b,c){function d(a){b.Slides.forEach(function(b){var c=da(b.container||b.slide,"img");c&&c.src&&e(a,c,b)})}function e(a,b,c){c.style("background",a?"center/cover no-repeat url(\""+b.src+"\")":"",!0),ga(b,a?"none":"")}var f=qa(a).on;return{mount:function(){c.cover&&(f(Ha,aa(e,!0)),f([U,J,Ca],aa(d,!0)))},destroy:aa(d,!1)}},Scroll:function(j,k,c){function u(a,c,f,j,m){var o,p=d(),f=(w(),!f||h&&C()||(f=k.Layout.sliderSize(),o=q(a)*f*za(Ba(a)/f)||0,a=l.toPosition(k.Controller.toDest(a%f))+o),ka(p,a,1));g=1,c=f?0:c||Y(Ba(a-p)/1.5,800),z=j,x=Q(c,y,aa(b,p,a,m),1),s(5),A(Ea),x.start()}function y(){s(3),z&&z(),A(Fa)}function b(a,b,f,i){var j=d(),i=(a+(b-a)*(b=i,(a=c.easingFunc)?a(b):1-Math.pow(1-b,4))-j)*g;e(j+i),h&&!f&&C()&&(g*=.6,10>Ba(i)&&u(v(C(!0)),600,!1,z,!0))}function w(){x&&x.cancel()}function n(){x&&!x.isPaused()&&(w(),y())}var x,z,o=qa(j),r=o.on,A=o.emit,s=j.state.set,l=k.Move,d=l.getPosition,v=l.getLimit,C=l.exceededLimit,e=l.translate,h=j.is(vb),g=1;return{mount:function(){r(B,w),r([J,Ca],n)},destroy:w,scroll:u,cancel:n}},Drag:function(B,e,F){function c(){var a=F.drag;N(!a),R="free"===a}function j(a){var c,d,e;V=!1,W||(c=I(a),d=a.target,e=F.noDrag,u(d,"."+jb+", ."+fb)||e&&u(d,e)||!c&&a.button||(b.isBusy()?ha(a,!0):(Y=c?w:window,T=g.is([4,5]),Q=null,h(Y,tb,o,yb),h(Y,ub,A,yb),m.cancel(),y.cancel(),H(a))))}function o(a){var b,c,d,e,f;g.is(6)||(g.set(6),_("drag")),a.cancelable&&(T?(m.translate(C+z(a)/(L&&B.is(vb)?5:1)),f=200<D(a),b=L!==(L=E()),(f||b)&&H(a),V=!0,_("dragging"),ha(a)):Ba(z(f=a))>Ba(z(f,!0))&&(b=a,c=F.dragMinThreshold,d=ba(c),e=d&&c.mouse||0,d=(d?c.touch:+c)||10,T=Ba(z(b))>(I(b)?d:e),ha(a)))}function A(a){var c,d,f;g.is(6)&&(g.set(3),_("dragged")),T&&(d=function(a){return r()+q(a)*ya(Ba(a)*(F.flickPower||600),R?1/0:e.Layout.listSize()*(F.flickMaxPages||1))}(c=function(a){if(B.is(wb)||!L){var b=D(a);if(b&&200>b)return z(a)/b}return 0}(c=a)),f=F.rewind&&F.rewindByDrag,x(!1),R?b.scroll(d,0,F.snap):B.is(xb)?b.go(0>k(q(c))?f?"<":"-":f?">":"+"):B.is(vb)&&L&&f?b.go(E(!0)?">":"<"):b.go(b.toDest(d),!0),x(!0),ha(a)),p(Y,tb,o),p(Y,ub,A),T=!1}function G(a){!W&&V&&ha(a,!0)}function H(a){Q=P,P=a,C=r()}function z(a,b){return M(a,b)-M(K(a),b)}function D(a){return X(a)-X(K(a))}function K(a){return P===a&&Q||P}function M(a,b){return(I(a)?a.changedTouches[0]:a)["page"+i(b?"Y":"X")]}function I(a){return"undefined"!=typeof TouchEvent&&a instanceof TouchEvent}function N(a){W=a}var C,P,Q,R,T,V,W,Y,Z=qa(B),$=Z.on,_=Z.emit,h=Z.bind,p=Z.unbind,g=B.state,m=e.Move,y=e.Scroll,b=e.Controller,w=e.Elements.track,x=e.Media.reduce,i=(Z=e.Direction).resolve,k=Z.orient,r=m.getPosition,E=m.exceededLimit,L=!1;return{mount:function(){h(w,tb,v,yb),h(w,ub,v,yb),h(w,sb,j,yb),h(w,"click",G,{capture:!0}),h(w,"dragstart",ha),$([U,J],c)},disable:N,isDragging:function(){return T}}},Keyboard:function(b,g,j){function i(){var a=j.keyboard;a&&(h="global"===a?window:f,e(h,Ab,l))}function k(){c(h,Ab)}function d(){var a=m;m=!0,va(function(){m=a})}function l(c){m||((c=ta(c))===a(Ja)?b.go("<"):c===a(Ka)&&b.go(">"))}var h,m,n=qa(b),p=n.on,e=n.bind,c=n.unbind,f=b.root,a=g.Direction.resolve;return{mount:function(){i(),p(J,k),p(J,i),p(B,d)},destroy:k,disable:function(a){m=a}}},LazyLoad:function(b,g,j){function i(){G(a),g.Slides.forEach(function(b){F(b.slide,"["+Bb+"], ["+Cb+"]").forEach(function(c){var d=_(c,Bb),e=_(c,Cb);d===c.src&&e===c.srcset||(d=j.classes.spinner,d=da(e=c.parentElement,"."+d)||I("span",d,e),a.push([c,b,d]),c.src||ga(c,"none"))})}),(c?h:(o(f),n(f,k),k))()}function k(){(a=a.filter(function(a){var c=j.perPage*((j.preloadPages||1)+1)-1;return!a[1].isWithin(b.index,c)||d(a)})).length||o(f)}function d(a){var b=a[0];ca(a[1].slide,ob),p(b,"load error",aa(l,a)),P(b,"src",_(b,Bb)),P(b,"srcset",_(b,Cb)),fa(b,Bb),fa(b,Cb)}function l(a,b){var d=a[0],f=a[1];ia(f.slide,ob),"error"!==b.type&&(N(a[2]),ga(d,""),e(Ha,d,f),e(K)),c&&h()}function h(){a.length&&d(a.shift())}var m=qa(b),n=m.on,o=m.off,p=m.bind,e=m.emit,c="sequential"===j.lazyLoad,f=[H,Fa],a=[];return{mount:function(){j.lazyLoad&&(i(),n(Ca,i))},destroy:aa(G,a),check:k}},Pagination:function(j,f,q){function d(){z&&(N(x?a(z.children):z),ia(z,E),G(k),z=null),i.destroy()}function n(a){s(">"+a,!0)}function u(a,b){var c=k.length,d=ta(b),f=C(),g=-1,f=(d===e(Ka,!1,f)?g=++a%c:d===e(Ja,!1,f)?g=(--a+c)%c:"Home"===d?g=0:"End"===d&&(g=c-1),k[g]);f&&(y(f.button),s(">"+g),ha(b,!0))}function C(){return q.paginationDirection||q.direction}function A(a){return k[b.toPage(a)]}function D(){var a,b=A(o(!0)),c=A(o());b&&(ia(a=b.button,nb),fa(a,Qa),P(a,l,-1)),c&&(ca(a=c.button,nb),P(a,Qa,!0),P(a,l,"")),p("pagination:updated",{list:z,items:k},b,c)}var z,E,i=qa(j),F=i.on,p=i.emit,g=i.bind,m=f.Slides,H=f.Elements,b=f.Controller,w=b.hasFocus,o=b.getIndex,s=b.go,e=f.Direction.resolve,x=H.pagination,k=[];return{items:k,mount:function h(){d(),F([J,Ca,"ei"],h);var v=q.pagination;if(x&&ga(x,v?"":"none"),v){F([B,Ea,Fa],D);var v=j.length,y=q.classes,i=q.i18n,r=q.perPage,o=w()?b.getEnd()+1:Aa(v/r);ca(z=x||I("ul",y.pagination,H.track.parentElement),E=ib+"--"+C()),P(z,Oa,"tablist"),P(z,Ra,i.select),P(z,Ua,C()===Ma?"vertical":"");for(var G=0;G<o;G++){var K=I("li",null,z),L=I("button",{class:y.page,type:"button"},K),M=m.getIn(G).map(function(a){return a.slide.id}),N=!w()&&1<r?i.pageX:i.slideX;g(L,"click",aa(n,G)),q.paginationKeyboard&&g(L,"keydown",aa(u,G)),P(K,Oa,"presentation"),P(L,Oa,"tab"),P(L,$,M.join(" ")),P(L,Ra,na(N,G+1)),P(L,l,-1),k.push({li:K,button:L,page:G})}D(),p("pagination:mounted",{list:z,items:k},A(j.index))}},destroy:d,getAt:A,update:D}},Sync:function(b,d,h){function i(){var d,e;b.splides.forEach(function(a){a.isParent||(c(b,a.splide),c(a.splide,b))}),k&&(d=qa(b),(e=d.on)("click",a),e("sk",j),e([U,J],f),m.push(d),d.emit("navigation:mounted",b.splides))}function e(){m.forEach(function(a){a.destroy()}),G(m)}function c(a,b){a=qa(a),a.on(B,function(a,c,d){b.go(b.is(wb)?d:a)}),m.push(a)}function f(){P(d.Elements.list,Ua,h.direction===Ma?"vertical":"")}function a(a){b.go(a.index)}function j(b,c){g(Db,ta(c))&&(a(b),ha(c))}var k=h.isNavigation,l=h.slideFocus,m=[];return{setup:aa(d.Media.set,{slideFocus:x(l)?k:l},!0),mount:i,destroy:e,remount:function(){e(),i()}}},Wheel:function(b,d,c){function e(a){var e,f,h,j,k;a.cancelable&&(e=0>(k=a.deltaY),f=X(a),h=c.wheelMinThreshold||0,j=c.wheelSleep||0,Ba(k)>h&&j<f-g&&(b.go(e?"<":">"),g=f),k=e,c.releaseWheel&&!b.state.is(4)&&-1===d.Controller.getAdjacent(k)||ha(a))}var f=qa(b).bind,g=0;return{mount:function(){c.wheel&&f(d.Elements.track,"wheel",e,yb)}}},Live:function(b,d,g){function h(a){P(i,Xa,a),a?(A(i,k),e.start()):(N(k),e.cancel())}function f(a){j&&P(i,Wa,a?"off":"polite")}var a=qa(b).on,i=d.Elements.track,j=g.live&&!g.isNavigation,k=I("span",mb),e=Q(90,aa(h,!1));return{mount:function(){j&&(f(!d.Autoplay.isPaused()),P(i,Ya,!0),k.textContent="\u2026",a(V,aa(f,!0)),a(Ga,aa(f,!1)),a([H,Fa],aa(h,!0)))},disable:f,destroy:function(){fa(i,[Wa,Ya,Xa]),N(k)}}}}),Fb={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:bb,clone:cb,arrows:eb,arrow:fb,prev:gb,next:hb,pagination:ib,page:jb,spinner:Z+"spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};return La=function(){function b(a,c){this.event=qa(),this.Components={},this.state=ra(1),this.splides=[],this.n={},this.t={},a=wa(a)?r(document,a):a,W(a,a+" is invalid."),c=w({label:_(this.root=a,Ra)||"",labelledby:_(a,Sa)||""},Fb,b.defaults,c||{});try{w(c,JSON.parse(_(a,xa)))}catch(a){W(!1,"Invalid JSON")}this.n=Object.create(w({},c))}var c=b.prototype;return c.mount=function(a,b){var c=this,d=this.state,e=this.Components;return W(d.is([1,7]),"Already mounted!"),d.set(1),this.i=e,this.r=b||this.r||(this.is(xb)?s:ua),this.t=a||this.t,O(ea({},Eb,this.t,{Transition:this.r}),function(a,b){a=a(c,e,c.n),(e[b]=a).setup&&a.setup()}),O(e,function(a){a.mount&&a.mount()}),this.emit(U),ca(this.root,"is-initialized"),d.set(3),this.emit("ready"),this},c.sync=function(a){return this.splides.push({splide:a}),a.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this.i.Sync.remount(),a.Components.Sync.remount()),this},c.go=function(a){return this.i.Controller.go(a),this},c.on=function(a,b){return this.event.on(a,b),this},c.off=function(a){return this.event.off(a),this},c.emit=function(b){var c;return(c=this.event).emit.apply(c,[b].concat(a(arguments,1))),this},c.add=function(a,b){return this.i.Slides.add(a,b),this},c.remove=function(a){return this.i.Slides.remove(a),this},c.is=function(a){return this.n.type===a},c.refresh=function(){return this.emit(Ca),this},c.destroy=function(a){void 0===a&&(a=!0);var b=this.event,c=this.state;return c.is(1)?qa(this).on("ready",this.destroy.bind(this,a)):(O(this.i,function(b){b.destroy&&b.destroy(a)},!0),b.emit("destroy"),b.destroy(),a&&G(this.splides),c.set(7)),this},Jt(b,[{key:"options",get:function(){return this.n},set:function(a){this.i.Media.set(a,!0,!0)}},{key:"length",get:function(){return this.i.Slides.getLength(!0)}},{key:"index",get:function(){return this.i.Controller.getIndex()}}]),b}(),La.defaults={},La.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7},La},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"==typeof globalThis?n||self:globalThis).Splide=t();