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