/*! * Splide.js * Version : 4.1.3 * License : MIT * Copyright: 2022 Naotoshi Fujita */ var t,n;t=this,n=function(){"use strict";const g="(prefers-reduced-motion: reduce)";const j=4,st=5;var n={CREATED:1,MOUNTED:2,IDLE:3,MOVING:j,SCROLLING:st,DRAGGING:6,DESTROYED:7};function _(t){t.length=0}function N(t,...n){return t.bind(null,...n)}const u=setTimeout,at=()=>{};function v(t){return requestAnimationFrame(t)}function e(t,n){return typeof n===t}function ft(t){return!i(t)&&e("object",t)}const o=Array.isArray,m=N(e,"function"),R=N(e,"string"),lt=(N(e,"boolean"),N(e,"undefined"));function i(t){return null===t}function y(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function b(t){return o(t)?t:[t]}function p(t,n){b(t).forEach(n)}function w(t,n){return t.push(...b(n)),t}const r=Array.prototype;function c(t,n,e){return r.slice.call(t,n,e)}function x(t,n){return r.includes.call(t,n)}function O(n,t,e){n&&p(R(t)?t.split(" "):t,t=>{t&&n.classList.toggle(t,e)})}function C(t,n){O(t,n,!0)}function z(t,...n){t&&t.append(...n)}function A(t,...n){t&&t.before(...n)}function dt(t,n){return y(t)&&t.matches(n)}function S(t,n){const e=t?c(t.children):[];return n?e.filter(t=>dt(t,n)):e}function vt(t,n){return n?S(t,n)[0]:t.firstElementChild}const $=Object.assign,k=Object.keys;function s(n,e,t){n&&(t?k(n).reverse():k(n)).forEach(t=>{"__proto__"!==t&&e(n[t],t)})}function h(e,...t){return t.forEach(t=>{s(t,(t,n)=>{o(t)?t=t.slice():ft(t)&&(t=h({},ft(e[n])?e[n]:{},t)),e[n]=t})}),e}function E(n,t){p(t||k(n),t=>{delete n[t]})}function D(t,e){p(t,n=>{p(e,t=>{n&&n.removeAttribute(t)})})}function I(e,n,o){ft(n)?s(n,(t,n)=>{I(e,n,t)}):p(e,t=>{i(o)||""===o?D(t,n):t.setAttribute(n,String(o))})}function M(t,n,e){t=document.createElement(t);return n&&(R(n)?C:I)(t,n),e&&z(e,t),t}function T(t,n,e){if(lt(e))return getComputedStyle(t)[n];i(e)||(t.style[n]=""+e)}function ht(t,n){T(t,"display",n)}function gt(t){y(t)&&t.focus({preventScroll:!0})}function P(t,n){return t.getAttribute(n)}function pt(t,n){return!!t&&t.classList.contains(n)}function F(t){return t.getBoundingClientRect()}function G(t){p(t,t=>{t&&t.parentNode&&t.parentNode.removeChild(t)})}function L(t){return vt((new DOMParser).parseFromString(t,"text/html").body)}function X(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function mt(t,n){return t&&t.querySelector(n)}function yt(t,n){return n&&t?c(t.querySelectorAll(n)):[]}function W(t,n){O(t,n,!1)}function bt(t){return t.timeStamp}function Y(t){return R(t)?t:t?t+"px":""}const{min:B,max:wt,floor:xt,ceil:St,abs:q,sign:kt}=Math;function Et(t,n,e){return q(t-n){n=n.replace("%s",""+t)}),n}function $t(t,n=2){return(""+t).padStart(n,"0")}const Lt={};function a(t,n){p(t,t=>{R(t)&&t.split(" ").forEach(n)})}function f(n,e){const o=[];for(let t=n.length-1;0<=t;t--)e(n[t])&&o.push(...n.splice(t,1));return o}function Pt(t){const i=t||[],r=t?{}:void 0;return{bind:function(n,t,e,o){a(t,t=>{n.addEventListener(t,e,o),i.push([n.removeEventListener.bind(n,t,e,o),r])})},create:N(Pt,i),destroy:function(){r?f(i,t=>t[1]===r).forEach(t=>{t[0]()}):(i.forEach(t=>{t[0]()}),_(i))}}}function l(t){const o=t||[],i=t?{}:void 0;return{on:function(t,n){a(t,t=>{o.push([t,n,i])})},off:function(t,e){a(t,n=>{f(o,t=>t[0]===n&&(!e||t[1]===e)&&t[2]===i)})},emit:function(n,...e){o.slice().forEach(t=>{t[0]===n&&t[1](...e)})},create:N(l,o),destroy:function(){i?f(o,t=>t[2]===i):_(o)}}}function _t(n,t,e,o){const i=Date["now"];let r,u=0,c,s=!0,a=0;function f(){if(!s){if(u=n?B((i()-r)/n,1):1,e&&e(u),1<=u&&(t(),r=i(),o&&++a>=o))return l();c=v(f)}}function l(){s=!0}function d(){c&&cancelAnimationFrame(c),u=0,c=0,s=!0}return{start:function(t){t||d(),r=i()-(t?u*n:0),s=!1,c=v(f)},rewind:function(){r=i(),u=0,e&&e(u)},pause:l,cancel:d,set:function(t){n=t},isPaused:function(){return s}}}function d(t){let n=t;return{set:function(t){n=t},is:function(t){return x(b(t),n)}}}const J="mounted",K="move",U="moved",Ot="click",Ct="active",Dt="inactive",It="visible",Mt="hidden",V="refresh",Q="updated",Tt="resize",Nt="resized",Rt="scroll",Z="scrolled",jt="overflow",Ft="navigation:mounted",Gt="autoplay:play",Xt="autoplay:pause",Wt="_sk",Yt="_sh",Bt="_ei",qt="!overflow";const Ht="ArrowLeft",Jt="ArrowRight";const Kt="ttb",Ut={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp",Jt],ArrowRight:["ArrowDown",Ht]};const tt="role",nt="tabindex";const Vt="aria-controls",Qt="aria-current",Zt="aria-selected",et="aria-label",tn="aria-labelledby",nn="aria-hidden",en="aria-orientation",on="aria-roledescription",rn="aria-live",un="aria-busy",cn="aria-atomic",sn=[tt,nt,"disabled",Vt,Qt,et,tn,nn,en,on],an="splide",fn="data-"+an;var t=an+"__";const ln=an,dn=t+"track",vn=t+"list",hn=t+"slide",gn=hn+"--clone",pn=hn+"__container",mn=t+"arrows",yn=t+"arrow",bn=yn+"--prev",wn=yn+"--next",xn=t+"pagination",Sn=xn+"__page",kn=t+"progress"+"__bar",En=t+"toggle",zn=t+"spinner",An=t+"sr",ot="is-active",$n="is-prev",Ln="is-next",Pn="is-visible",_n="is-loading",On="is-focus-in",Cn="is-overflow",Dn=[ot,Pn,$n,Ln,_n,On,Cn];t={slide:hn,clone:gn,arrows:mn,arrow:yn,prev:bn,next:wn,pagination:xn,page:Sn,spinner:zn};function In(t,n){if(!t)throw new Error(`[${an}] `+(n||""))}const Mn="touchstart mousedown",Tn="touchmove mousemove",Nn="touchend touchcancel mouseup click";const it="slide",rt="loop",ut="fade",Rn=(r,o,e,u)=>{const t=r.event.create(),{on:n,emit:i,bind:c}=t,{Components:s,root:a,options:f}=r,{isNavigation:l,updateOnMove:d,i18n:v,pagination:h,slideFocus:g}=f,p=s["Elements"],m=s.Direction["resolve"],y=P(u,"style"),b=P(u,et),w=-1{t=t.splide.Components.Slides.getAt(o);return t?t.slide.id:""}).join(" ");I(u,et,At(v.slideX,(w?e:o)+1)),I(u,Vt,t),I(u,tt,g?"button":""),g&&D(u,on)}function E(){S||z()}function z(){var t,n,e;S||(t=r["index"],(e=A())!==pt(u,ot)&&(O(u,ot,e),I(u,Qt,l&&e||""),i(e?Ct:Dt,L)),e=$(),n=!e&&(!A()||w),r.state.is([j,st])||I(u,nn,n||""),I(yt(u,f.focusableNodes||""),nt,n?-1:""),g&&I(u,nt,n?-1:0),e!==pt(u,Pn)&&(O(u,Pn,e),i(e?It:Mt,L)),e||document.activeElement!==u||(n=s.Slides.getAt(r.index))&>(n.slide),O(u,$n,o===t-1),O(u,Ln,o===t+1))}function A(){var t=r["index"],{cloneStatus:n=!0}=f;return t===o||n&&t===e}function $(t){var n,e,o,i;return r.is(ut)?A():(n=F(p.track),e=F(u),o=m("left",!0),i=m("right",!0),xt(n[o])<=St(e[t?i:o])&&xt(e[t?o:i])<=St(n[i]))}const L={index:o,slideIndex:e,slide:u,container:x,isClone:w,mount:function(){w||(u.id=a.id+"-slide"+$t(o+1),I(u,tt,h?"tabpanel":"group"),I(u,on,v.slide),I(u,et,b||At(v.slideLabel,[o+1,r.length]))),c(u,"click",N(i,Ot,L)),c(u,"keydown",N(i,Wt,L)),n([U,Yt,Z],z),n(Ft,k),d&&n(K,E)},destroy:function(){S=!0,t.destroy(),W(u,Dn),D(u,sn),I(u,"style",y),I(u,et,b||"")},update:z,style:function(t,n,e){T(e&&x||u,t,n)},isVisible:$,isWithin:function(t,n){let e=q(t-o);return(e=w||!f.rewind&&!r.is(rt)?e:B(e,r.length-e))<=n}};return L};const jn=fn+"-interval";const ct={passive:!1,capture:!0};const Fn=fn+"-lazy",Gn=Fn+"-srcset",Xn=`[${Fn}], [${Gn}]`;const Wn=[" ","Enter"];const Yn={Breakpoints:(o,t,i,n)=>{const r=o["state"],u=i.breakpoints||{},c=i.reducedMotion||{},s=Pt(),a=[];function f(t){t&&s.destroy()}function l(t,n){const e=matchMedia(n);s.bind(e,"change",d),a.push([t,()=>e.matches])}function d(){var t=r.is(7),n=i.direction,e=a.reduce((t,n)=>h(t,n[1]()?n[0]:{}),{});E(i),v(e,!1,!r.is(1)),i.destroy?o.destroy("completely"===i.destroy):t?(f(!0),o.mount()):n!==i.direction&&o.refresh()}function v(t,n,e){h(i,t),n&&h(Object.getPrototypeOf(i),t),e&&o.emit(Q,i)}return{setup:function(){const e="min"===i.mediaQuery;k(u).sort((t,n)=>e?+t-+n:+n-+t).forEach(t=>{t!==qt&&l(u[t],`(${e?"min":"max"}-width:${t}px)`)}),u[qt]&&(a.push([u[qt],()=>t.Layout&&!t.Layout.isOverflow()]),n.on(jt,d)),l(c,g),d()},destroy:f,reduce:function(t){matchMedia(g).matches&&(t?h(i,c):E(i,k(c)))},set:v}},Direction:(t,n,i)=>{function e(t,n,e=i.direction){const o="rtl"!==e||n?e===Kt?0:-1:1;return Ut[t]&&Ut[t][o]||t.replace(/width|left|right/i,(t,n)=>{const e=Ut[t.toLowerCase()][o]||t;return 0{const{on:i,bind:r}=o,u=t["root"],c=e["i18n"],s={},a=[];let f=[],l=[],d,v,h;function g(){d=y(dn),v=vt(d,"."+vn),In(d&&v,"A track/list element is missing."),w(a,S(v,`.${hn}:not(.${gn})`)),$(s,{root:u,track:d,list:v,slides:a,arrows:y(mn),pagination:y(xn),prev:y(bn),next:y(wn),bar:y(kn),toggle:y(En)});var{role:t="region"}=e,n=u.id||function(t){return""+t+$t(Lt[t]=(Lt[t]||0)+1)}(an);u.id=n,d.id=d.id||n+"-track",v.id=v.id||n+"-list",!P(u,tt)&&"SECTION"!==u.tagName&&t&&I(u,tt,t),I(u,on,c.carousel),I(v,tt,"presentation"),m()}function p(t){var n=sn.concat("style");_(a),W(u,f),W(d,l),D([d,v],n),D(u,t?n:["style",on])}function m(){W(u,f),W(d,l),f=b(ln),l=b(dn),C(u,f),C(d,l),I(u,et,e.label),I(u,tn,e.labelledby)}function y(t){var n,e,t=mt(u,"."+t);return t&&(n=t,e="."+ln,n.closest(e)===u)?t:void 0}function b(t){return[t+"--"+e.type,t+"--"+e.direction,e.drag&&t+"--draggable",e.isNavigation&&t+"--nav",t===ln&&ot]}return $(s,{setup:g,mount:function(){i(V,p),i(V,g),i(Q,m),r(document,Mn+" keydown",t=>{h="keydown"===t.type},{capture:!0}),r(u,"focusin",()=>{O(u,On,!!h)})},destroy:p})},Slides:(i,r,u,t)=>{const{on:n,emit:c,bind:s}=t,{slides:a,list:f}=r.Elements,l=[];function e(){a.forEach((t,n)=>{d(t,n,-1)})}function o(){h(t=>{t.destroy()}),_(l)}function d(t,n,e){const o=Rn(i,n,e,t);o.mount(),l.push(o),l.sort((t,n)=>t.index-n.index)}function v(t){return t?g(t=>!t.isClone):l}function h(t,n){v(n).forEach(t)}function g(n){return l.filter(m(n)?n:t=>R(n)?dt(t.slide,n):x(b(n),t.index))}return{mount:function(){e(),n(V,o),n(V,e)},destroy:o,update:function(){h(t=>{t.update()})},register:d,get:v,getIn:function(t){const n=r["Controller"],e=n.toIndex(t),o=n.hasFocus()?1:u.perPage;return g(t=>zt(t.index,e,e+o-1))},getAt:function(t){return g(t)[0]},add:function(t,n){p(t,t=>{if(y(t=R(t)?L(t):t)){var e=a[n];e?A(e,t):z(f,t),C(t,u.classes.slide);{var e=t,o=N(c,Tt);const i=yt(e,"img");let n=i["length"];n?i.forEach(t=>{s(t,"load error",()=>{--n||o()})}):o()}}}),c(V)},remove:function(t){G(g(t).map(t=>t.slide)),c(V)},forEach:h,filter:g,style:function(n,e,o){h(t=>{t.style(n,e,o)})},getLength:function(t){return(t?a:l).length},isEnough:function(){return l.length>u.perPage}}},Layout:(n,o,e,t)=>{const{on:i,bind:r,emit:u}=t;t=o.Slides;const{resolve:c,left:s,right:a,width:f}=o.Direction,{root:l,track:d,list:v}=o.Elements,{getAt:h,style:g}=t;let p,m,y;function b(){p=e.direction===Kt,T(l,"maxWidth",Y(e.width)),T(d,c("paddingLeft"),x(!1)),T(d,c("paddingRight"),x(!0)),w(!0)}function w(t){var n=F(l);!t&&m.width===n.width&&m.height===n.height||(T(d,"height",function(){let t="";p&&(In(t=S(),"height or heightRatio is missing."),t=`calc(${t} - ${x(!1)} - ${x(!0)})`);return t}()),g(c("marginRight"),Y(e.gap)),g("width",e.autoWidth?null:Y(e.fixedWidth)||(p?"":k())),g("height",Y(e.fixedHeight)||(p?e.autoHeight?null:k():S()),!0),m=n,u(Nt),y!==(y=P())&&(O(l,Cn,y),u(jt,y)))}function x(t){var n=e["padding"],t=(t?a:s)();return n&&Y(n[t]||(ft(n)?0:n))||"0px"}function S(){return Y(e.height||F(v).width*e.heightRatio)}function k(){var t=Y(e.gap);return`calc((100%${t&&" + "+t})/${e.perPage||1}${t&&" - "+t})`}function E(t){return t?v[c("scrollWidth")]:F(v)[f()]}function z(t=0,n){t=h(t);return(t?F(t.slide)[f()]:0)+(n?0:L())}function A(t,n){var e=o.Slides.get()[0],t=h(t);return e&&t?q(F(t.slide)[a()]-F(e.slide)[s()])+(n?0:L()):0}function $(t){return A(n.length-1)-A(0)+z(0,t)}function L(){var t=h(0),n=h(1);return t&&n?(t=F(t.slide),q(F(n.slide)[s()]-t[s()])-t[f()]):0}function P(){return n.is(ut)||$(!0)>E()}return{mount:function(){b(),r(window,"resize load",function(t,n){const e=_t(n||0,t,void 0,1);return()=>{e.isPaused()&&e.start()}}(N(u,Tt))),i([Q,V],b),i(Tt,w)},resize:w,trackSize:function(){return F(d)[f()]},listSize:E,slideSize:z,sliderSize:$,totalSize:A,getPadding:function(t){return parseFloat(T(d,c("padding"+(t?"Right":"Left"))))||0},isOverflow:P}},Clones:(c,e,s,n)=>{const t=n["on"],{Elements:a,Slides:f,Layout:{resize:o,trackSize:i}}=e,r=e.Direction["resolve"],l=[];let d;function u(){if(t(V,v),t([Q,Tt],g),d=p()){{var i=d;const r=f.get().slice(),u=r["length"];if(u){for(;r.length{var e=n{const{on:e,emit:r}=t,c=u.state["set"],s=n["Slides"],{slideSize:i,getPadding:a,listSize:f,sliderSize:l,totalSize:d,trackSize:v}=n.Layout,{resolve:h,orient:g}=n.Direction,{list:p,track:m}=n.Elements;let y,b;function w(){n.Controller.isBusy()||(n.Scroll.cancel(),x(u.index),s.update())}function x(t){S(z(t))}function S(t,n){u.is(ut)||(n=n?t:function(t){{var n;!u.is(rt)||(n=g(t)-g(A()))&&P(0g($(!0));return e||t}return{mount:function(){y=n.Transition,e([J,Nt,Q,V],w)},move:function(t,n,e,o){var i=e{c(3),r(U,n,e,t),o&&o()})},jump:x,translate:S,shift:k,cancel:E,toIndex:function(n){var e=s.get();let o=0,i=1/0;for(let t=0;t{const{on:e,emit:s}=n,{set:a}=t["state"],f=u["Move"],{getPosition:l,getLimit:d,exceededLimit:v,translate:h}=f,g=t.is(it);let p,m,y=1;function b(t,n,e,o,i){S();var t=function(t,n){{var e;!n||g&&v()||(n=t%u.Layout.sliderSize(),e=f.toPosition(u.Controller.toDest(n)),t-=n-e)}return t}(t,e),e=l(),r=Et(e,t,1)||0===n;y=1,n=r?0:n||wt(q(t-e)/1.5,800),m=o,p=_t(n,w,N(x,e,t,i),1),a(st),s(Rt),p.start()}function w(){a(3),m&&m(),s(Z)}function x(t,n,e,o){const{easingFunc:i=t=>1-Math.pow(1-t,4)}=c;var r=l(),n=(t+(n-t)*i(o)-r)*y;h(r+n),s("scrolling"),g&&!e&&v()&&(y*=.6,q(n)<10&&b(d(v(!0)),600,!1,m,!0))}function S(){p&&p.cancel()}function o(){p&&!p.isPaused()&&(S(),w())}return{mount:function(){e(K,S),e([Q,V],o)},destroy:S,scroll:b,cancel:o}},Controller:(i,o,r,t)=>{const{on:n,emit:e}=t,{Move:u,Scroll:c}=o,{getPosition:s,getLimit:a,toPosition:f}=u,{isEnough:l,getLength:d}=o.Slides,v=r["omitEnd"],h=i.is(rt),g=i.is(it),p=N(A,!1),m=N(A,!0);let y=r.start||0,b,w=y,x,S,k;function E(){x=d(!0),S=r.perMove,k=r.perPage,b=P();var t=v?b:x-1,t=H(y,0,t);(w=t)!==y&&(y=t,u.reposition())}function T(){b!==P()&&e(Bt)}function z(t,n){var e,o,i,r;M()||(e=L(t=function(t){let n=y;{var e,o;R(t)?([,e,o]=t.match(/([+\-<>])(\d+)?/)||[],"+"===e||"-"===e?n=$(y+ +(""+e+(+o||1)),y):">"===e?n=o?_(+o):p(!0):"<"===e&&(n=m(!0))):n=h?t:H(t,0,b)}return n}(t)),i=e,r=(o=t)>w,-1b?t=S||!zt(0,t,n,!0)&&!zt(b,n,t,!0)?h?e?t<0?-(x%k||k):x:t:r.rewind?t<0?b:0:-1:_(O(t)):e&&t!==n&&(t=_(O(n)+(t=b?x-1:t)/k)}function C(t){t!==y&&(w=y,y=t)}function D(){return!lt(r.focus)||r.isNavigation}function I(){return i.state.is([j,st])}function M(){return I()&&!!r.waitForTransition}return{mount:function(){E(),n([Q,V,Bt],E),n(Nt,T)},go:z,jump:function(t){const n=o.Breakpoints["set"];var e=r["speed"];n({speed:0}),z(t),n({speed:e})},scroll:function(t,n,e,o){c.scroll(t,n,e,()=>{var t=L(u.toIndex(s()));C(v?B(t,b):t),o&&o()})},getNext:p,getPrev:m,getAdjacent:A,getEnd:P,setIndex:C,getIndex:function(t){return t?w:y},toIndex:_,toPage:O,toDest:function(t){return t=u.toIndex(t),g?H(t,0,b):t},hasFocus:D,isBusy:M}},Arrows:(i,t,n,e)=>{const{on:o,bind:r,emit:u}=e,{classes:c,i18n:s}=n,{Elements:a,Controller:f}=t,{arrows:l,track:d}=a;let v=l,h=a.prev,g=a.next,p,m;const y={};function b(){var{arrows:t=!0}=n;!t||h&&g||(v=l||M("div",c.arrows),h=k(!0),g=k(!1),p=!0,z(v,h,g),l||A(d,v)),h&&g&&($(y,{prev:h,next:g}),ht(v,t?"":"none"),C(v,m=mn+"--"+n.direction),t&&(o([J,U,V,Z,Bt],E),r(g,"click",N(S,">")),r(h,"click",N(S,"<")),E(),I([h,g],Vt,d.id),u("arrows:mounted",h,g))),o(Q,w)}function w(){x(),b()}function x(){e.destroy(),W(v,m),p?(G(l?[h,g]:v),h=g=null):D([h,g],sn)}function S(t){f.go(t)}function k(t){return L(`