/*! * Splide.js * Version : 4.1.3 * License : MIT * Copyright: 2022 Naotoshi Fujita */ var n,t;n=this,t=function(){"use strict";const h="(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 z(n){n.length=0}function D(n,...t){return n.bind(null,...t)}const v=setTimeout,cn=()=>{};function p(n){return requestAnimationFrame(n)}function e(n,t){return typeof t===n}function G(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 g(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 P(t,n,e){t&&g(I(n)?n.split(" "):n,n=>{n&&t.classList.toggle(n,e)})}function O(n,t){P(n,t,!0)}function $(n,t){g(t,n.appendChild.bind(n))}function A(n,e){g(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():G(n)&&(n=d({},G(e[t])?e[t]:{},n)),e[t]=n})}),e}function E(t,n){g(n||k(t),n=>{delete t[n]})}function _(n,e){g(n,t=>{g(e,n=>{t&&t.removeAttribute(n)})})}function C(e,t,o){G(t)?i(t,(n,t)=>{C(e,t,n)}):g(e,n=>{r(o)||""===o?_(n,t):n.setAttribute(t,String(o))})}function M(n,t,e){n=document.createElement(n);return t&&(I(t)?O:C)(n,t),e&&$(e,n),n}function T(n,t,e){if(sn(e))return getComputedStyle(n)[t];r(e)||(n.style[t]=""+e)}function dn(n,t){T(n,"display",t)}function hn(n){y(n)&&n.focus({preventScroll:!0})}function N(n,t){return n.getAttribute(t)}function vn(n,t){return!!n&&n.classList.contains(t)}function R(n){return n.getBoundingClientRect()}function j(n){g(n,n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})}function pn(n){return fn((new DOMParser).parseFromString(n,"text/html").body)}function X(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function gn(n,t){return n&&n.querySelector(t)}function mn(n,t){return t&&n?s(n.querySelectorAll(t)):[]}function W(n,t){P(n,t,!1)}function yn(n){return n.timeStamp}function L(n){return I(n)?n:n?n+"px":""}D(function(n,t){return`<${(n+" "+((t=o(t)||!G(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){g(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]()}),z(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):z(o)}}}function zn(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=p(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=p(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",On="moved",_n="click",Cn="active",Mn="inactive",Dn="visible",In="hidden",K="refresh",U="updated",Tn="resize",Nn="resized",Rn="scroll",V="scrolled",Fn="navigation:mounted",Gn="autoplay:play",jn="autoplay:pause",Xn="sk",Wn="sh";const Yn="ArrowLeft",qn="ArrowRight";const Bn="ttb",Hn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp",qn],ArrowRight:["ArrowDown",Yn]};const Q="role",Z="tabindex";const Jn="aria-controls",Kn="aria-current",Un="aria-selected",nn="aria-label",Vn="aria-labelledby",Qn="aria-hidden",Zn="aria-orientation",nt="aria-roledescription",tt="aria-live",et="aria-busy",ot="aria-atomic",it=[Q,Z,"disabled",Jn,Kn,nn,Vn,Qn,Zn,nt],rt="splide",ut="data-"+rt;var n=rt+"__";const ct=rt,st=n+"track",at=n+"list",ft=n+"slide",lt=ft+"--clone",dt=ft+"__container",ht=n+"arrows",vt=n+"arrow",pt=vt+"--prev",gt=vt+"--next",mt=n+"pagination",yt=mt+"__page",bt=n+"progress"+"__bar",wt=n+"toggle",xt=n+"sr",tn="is-active",St="is-prev",kt="is-next",Et="is-visible",$t="is-loading",At="is-focus-in",Lt="is-overflow",Pt=[tn,Et,St,kt,$t,At,Lt];n={slide:ft,clone:lt,arrows:ht,arrow:vt,prev:pt,next:gt,pagination:mt,page:yt,spinner:n+"spinner"};function zt(n,t){if(!n)throw new Error(`[${rt}] `+(t||""))}const Ot="touchstart mousedown",_t="touchmove mousemove",Ct="touchend touchcancel mouseup click";const en="slide",on="loop",Mt="fade";function Dt(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:h,pagination:v,slideFocus:p}=f,g=s["Elements"],m=s.Direction["resolve"],y=N(r,"style"),b=N(r,nn),w=-1{n=n.splide.Components.Slides.getAt(o);return n?n.slide.id:""}).join(" ");C(r,nn,$n(h.slideX,(w?t:o)+1)),C(r,Jn,n),C(r,Q,p?"button":""),p&&_(r,nt)}function E(){S||$()}function $(){var n,t,e;S||(n=i["index"],(e=A())!==vn(r,tn)&&(P(r,tn,e),C(r,Kn,l&&e||""),u(e?Cn:Mn,L)),e=function(){if(i.is(Mt))return A();var n=R(g.track),t=R(r),e=m("left",!0),o=m("right",!0);return wn(n[e])<=xn(t[e])&&wn(t[o])<=xn(n[o])}(),t=!e&&(!A()||w),i.state.is([F,un])||C(r,Qn,t||""),C(mn(r,f.focusableNodes||""),Z,t?-1:""),p&&C(r,Z,t?-1:0),e!==vn(r,Et)&&(P(r,Et,e),u(e?Dn:In,L)),e||document.activeElement!==r||(t=s.Slides.getAt(i.index))&&hn(t.slide),P(r,St,o===n-1),P(r,kt,o===n+1))}function A(){var n=i["index"];return n===o||f.cloneStatus&&n===t}const L={index:o,slideIndex:t,slide:r,container:x,isClone:w,mount:function(){w||(r.id=a.id+"-slide"+An(o+1),C(r,Q,v?"tabpanel":"group"),C(r,nt,h.slide),C(r,nn,b||$n(h.slideLabel,[o+1,i.length]))),c(r,"click",D(u,_n,L)),c(r,"keydown",D(u,Xn,L)),e([On,Wn,V],$),e(Fn,k),d&&e(J,E)},destroy:function(){S=!0,n.destroy(),W(r,Pt),_(r,it),C(r,"style",y),C(r,nn,b||"")},update:$,pos:function(){var n=m("left");return q(R(r)[n]-R(g.list)[n])},size:function(){return R(r)[m("width")]},style:function(n,t,e){T(e&&x||r,n,t)},isWithin:function(n,t){let e=q(n-o);return(e=w||!f.rewind&&!i.is(on)?e:Y(e,i.length-e))<=t}};return L}const It=ut+"-interval";const rn={passive:!1,capture:!0};const Tt=ut+"-lazy",Nt=Tt+"-srcset",Rt=`[${Tt}], [${Nt}]`;const Ft=[" ","Enter"];const Gt={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,h),f()},destroy:s,reduce:function(n){matchMedia(h).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===Bn?0:-1:1;return Hn[n]&&Hn[n][o]||n.replace(/width|left|right/i,(n,t)=>{const e=Hn[n.toLowerCase()][o]||n;return 0{v="keydown"===n.type},{capture:!0}),r(u,"focusin",()=>{P(u,At,!!v)})},destroy:g})},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(){v(n=>{n.destroy()}),z(l)}function d(n,t,e){const o=Dt(i,t,e,n);o.mount(),l.push(o),l.sort((n,t)=>n.index-t.index)}function h(n){return n?p(n=>!n.isClone):l}function v(n,t){h(t).forEach(n)}function p(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(){v(n=>{n.update()})},register:d,get:h,getIn:function(n){const t=r["Controller"],e=t.toIndex(n),o=t.hasFocus()?1:u.perPage;return p(n=>En(n.index,e,e+o-1))},getAt:function(n){return p(n)[0]},add:function(n,t){g(n,n=>{if(y(n=I(n)?pn(n):n)){var e=a[t];e?A(n,e):$(f,n),O(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){j(p(n).map(n=>n.slide)),c(K)},forEach:v,filter:p,style:function(t,e,o){v(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 h,v,p;function g(){h=e.direction===Bn,T(s,"maxWidth",L(e.width)),T(a,c("paddingLeft"),y(!1)),T(a,c("paddingRight"),y(!0)),m(!0)}function m(n){var t=R(s);!n&&v.width===t.width&&v.height===t.height||(T(a,"height",function(){let n="";h&&(zt(n=b(),"height or heightRatio is missing."),n=`calc(${n} - ${y(!1)} - ${y(!0)})`);return n}()),d(c("marginRight"),L(e.gap)),d("width",e.autoWidth?null:L(e.fixedWidth)||(h?"":w())),d("height",L(e.fixedHeight)||(h?e.autoHeight?null:w():b()),!0),v=t,u(Nn),p!==(p=A())&&(P(s,Lt,p),u("overflow",p)))}function y(n){var t=e["padding"],n=c(n?"right":"left");return t&&L(t[n]||(G(t)?0:t))||"0px"}function b(){return L(e.height||R(f).width*e.heightRatio)}function w(){var n=L(e.gap);return`calc((100%${n&&" + "+n})/${e.perPage||1}${n&&" - "+n})`}function x(){return R(f)[c("width")]}function S(n=0,t){const e=l(n);return(e?e.size():0)+(t?0:$())}function k(n,t){const e=l(n);return e?e.pos()+e.size()+(t?0:$()):0}function E(n){return k(t.length-1)-k(0)+S(0,n)}function $(){const n=l(0),t=l(1);return n&&t?t.pos()-n.pos()-n.size():0}function A(){return t.is(Mt)||E(!0)>x()}return{mount:function(){g(),r(window,"resize load",function(n,t){const e=zn(t||0,n,void 0,1);return()=>{e.isPaused()&&e.start()}}(D(u,Tn))),i([U,K],g),i(Tn,m)},resize:m,listSize:x,slideSize:S,sliderSize:E,totalSize:k,getPadding:function(n){return parseFloat(T(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,h),n([U,Tn],v),d=p()){{var i=d;const r=f.get().slice(),u=r["length"];if(u){for(;r.length{var e=to.Controller.getEnd(),(t<0||e)&&(n=w(n,e)))}return n}(n),T(p,"transform",`translate${h("X")}(${t}px)`),n!==t&&c(Wn))}function w(n,t){var e=n-$(t),o=d();return n-=v(o*(xn(q(e)/o)||1))*(t?1:-1)}function x(){b(E(),!0),m.cancel()}function S(t){var e=a.get();let o=0,i=1/0;for(let n=0;n{s(3),c(On,t,e,n),o&&o()})},jump:y,translate:b,shift:w,cancel:x,toIndex:S,toPosition:k,getPosition:E,getLimit:$,exceededLimit:function(n,t=E()){var e=!0!==n&&v(t)v($(!0));return e||n},reposition:e}},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"],h=i.is(on),v=i.is(en),p=D($,!1),g=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=d?y:w-1,t=B(m,0,n);b=B(m,0,n),t!==m&&(m=t,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&&v&&!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(v&&"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)?h?e?n<0?-(w%S||S):w:n:u.rewind?n<0?y:0:-1:z(O(n)):e&&n!==t&&(n=z(O(t)+(n=y?w-1:n)/S)}function _(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?z(+o):p(!0):"<"===e&&(t=g(!0))):t=h?n:B(n,0,y)}return t}(n)))&&(t||o!==m)&&(_(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()));_(d?Y(n,y):n),o&&o()})},getNext:p,getPrev:g,getAdjacent:$,getEnd:P,setIndex:_,getIndex:function(n){return n?b:m},toIndex:z,toPage:O,toDest:function(n){return n=c.toIndex(n),v?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 h=l,v=a.prev,p=a.next,g,m;const y={};function b(){var n=t.arrows;!n||v&&p||(h=l||M("div",c.arrows),v=k(!0),p=k(!1),g=!0,$(h,[v,p]),l||A(h,d)),v&&p&&(ln(y,{prev:v,next:p}),dn(h,n?"":"none"),O(h,m=ht+"--"+t.direction),n&&(o([H,On,K,V,"ei"],E),r(p,"click",D(S,">")),r(v,"click",D(S,"<")),E(),C([v,p],Jn,d.id),u("arrows:mounted",v,p))),o(U,w)}function w(){x(),b()}function x(){e.destroy(),W(h,m),g?(j(l?[v,p]:h),v=p=null):_([v,p],it)}function S(n){f.go(n,!0)}function k(n){return pn(`