import{d as ee,r as u,H as N,O as x,y as be,P as xe,Q as ye,M as q,R as Q,S as fe,T as m,U as g,F as we}from"./entry.62429734.js";/**
 * Vue 3 Carousel 0.2.16
 * (c) 2023
 * @license MIT
 */const f={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},me={itemsToShow:{default:f.itemsToShow,type:Number},itemsToScroll:{default:f.itemsToScroll,type:Number},wrapAround:{default:f.wrapAround,type:Boolean},throttle:{default:f.throttle,type:Number},snapAlign:{default:f.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:f.transition,type:Number},breakpoints:{default:f.breakpoints,type:Object},autoplay:{default:f.autoplay,type:Number},pauseAutoplayOnHover:{default:f.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:f.mouseDrag,type:Boolean},touchDrag:{default:f.touchDrag,type:Boolean},dir:{default:f.dir,validator(t){return["rtl","ltr"].includes(t)}},settings:{default(){return{}},type:Object}};function Te({config:t,slidesCount:n}){const{snapAlign:a,wrapAround:s,itemsToShow:i=1}=t;if(s)return Math.max(n-1,0);let o;switch(a){case"start":o=n-i;break;case"end":o=n-1;break;case"center":case"center-odd":o=n-Math.ceil((i-.5)/2);break;case"center-even":o=n-Math.ceil(i/2);break;default:o=0;break}return Math.max(o,0)}function _e({config:t,slidesCount:n}){const{wrapAround:a,snapAlign:s,itemsToShow:i=1}=t;let o=0;if(a||i>n)return o;switch(s){case"start":o=0;break;case"end":o=i-1;break;case"center":case"center-odd":o=Math.floor((i-1)/2);break;case"center-even":o=Math.floor((i-2)/2);break;default:o=0;break}return o}function J({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,a),n)}function ke({config:t,currentSlide:n,slidesCount:a}){const{snapAlign:s,wrapAround:i,itemsToShow:o=1}=t;let h=n;switch(s){case"center":case"center-odd":h-=(o-1)/2;break;case"center-even":h-=(o-2)/2;break;case"end":h-=o-1;break}return i?h:J({val:h,max:a-o,min:0})}function pe(t){return t?t.reduce((n,a)=>{var s;return a.type===we?[...n,...pe(a.children)]:((s=a.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...n,a]:n},[]):[]}function K({val:t,max:n,min:a=0}){return t>n?K({val:t-(n+1),max:n,min:a}):t<a?K({val:t+(n+1),max:n,min:a}):t}function Ae(t,n){let a;return n?function(...s){const i=this;a||(t.apply(i,s),a=!0,setTimeout(()=>a=!1,n))}:t}function Ce(t,n){let a;return function(...s){a&&clearTimeout(a),a=setTimeout(()=>{t(...s),a=null},n)}}var Me=ee({name:"ARIA",setup(){const t=g("currentSlide",u(0)),n=g("slidesCount",u(0));return()=>m("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},`Item ${t.value+1} of ${n.value}`)}}),Le=ee({name:"Carousel",props:me,setup(t,{slots:n,emit:a,expose:s}){var i;const o=u(null),h=u([]),S=u(0),d=u(0);let b=u({}),y=Object.assign({},f);const l=N(Object.assign({},y)),r=u((i=t.modelValue)!==null&&i!==void 0?i:0),w=u(0),I=u(0),A=u(0),E=u(0);let C,V;x("config",l),x("slidesCount",d),x("currentSlide",r),x("maxSlide",A),x("minSlide",E),x("slideWidth",S);function $(){const e=Object.assign(Object.assign({},t),t.settings);b=u(Object.assign({},e.breakpoints)),y=Object.assign(Object.assign({},e),{settings:void 0,breakpoints:void 0}),te(y)}function j(){if(!Object.keys(b.value).length)return;const e=Object.keys(b.value).map(c=>Number(c)).sort((c,k)=>+k-+c);let v=Object.assign({},y);e.some(c=>window.matchMedia(`(min-width: ${c}px)`).matches?(v=Object.assign(Object.assign({},v),b.value[c]),!0):!1),te(v)}function te(e){Object.entries(e).forEach(([v,c])=>l[v]=c)}const ne=Ce(()=>{j(),O(),D()},16);function D(){if(!o.value)return;const e=o.value.getBoundingClientRect();S.value=e.width/l.itemsToShow}function O(){d.value<=0||(I.value=Math.ceil((d.value-1)/2),A.value=Te({config:l,slidesCount:d.value}),E.value=_e({config:l,slidesCount:d.value}),l.wrapAround||(r.value=J({val:r.value,max:A.value,min:E.value})))}be(()=>{xe(()=>setTimeout(()=>{j(),O(),D(),a("init")},16)),re(),window.addEventListener("resize",ne,{passive:!0})}),ye(()=>{V&&clearTimeout(V),C&&clearInterval(C),window.removeEventListener("resize",ne,{passive:!0})});let p=!1;const R={x:0,y:0},B={x:0,y:0},T=N({x:0,y:0}),z=u(!1),ge=()=>{z.value=!0},he=()=>{z.value=!1};function ae(e){["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||(p=e.type==="touchstart",p||e.preventDefault(),!(!p&&e.button!==0||M.value)&&(R.x=p?e.touches[0].clientX:e.clientX,R.y=p?e.touches[0].clientY:e.clientY,document.addEventListener(p?"touchmove":"mousemove",le,!0),document.addEventListener(p?"touchend":"mouseup",oe,!0)))}const le=Ae(e=>{B.x=p?e.touches[0].clientX:e.clientX,B.y=p?e.touches[0].clientY:e.clientY;const v=B.x-R.x,c=B.y-R.y;T.y=c,T.x=v},l.throttle);function oe(){const e=l.dir==="rtl"?-1:1,v=Math.sign(T.x)*.4,c=Math.round(T.x/S.value+v)*e;if(c&&!p){const k=Y=>{Y.stopPropagation(),window.removeEventListener("click",k,!0)};window.addEventListener("click",k,!0)}_(r.value-c),T.x=0,T.y=0,document.removeEventListener(p?"touchmove":"mousemove",le,!0),document.removeEventListener(p?"touchend":"mouseup",oe,!0)}function re(){!l.autoplay||l.autoplay<=0||(C=setInterval(()=>{l.pauseAutoplayOnHover&&z.value||P()},l.autoplay))}function ie(){C&&(clearInterval(C),C=null),re()}const M=u(!1);function _(e){const v=l.wrapAround?e:J({val:e,max:A.value,min:E.value});r.value===v||M.value||(a("slide-start",{slidingToIndex:e,currentSlideIndex:r.value,prevSlideIndex:w.value,slidesCount:d.value}),M.value=!0,w.value=r.value,r.value=v,V=setTimeout(()=>{if(l.wrapAround){const c=K({val:v,max:A.value,min:0});c!==r.value&&(r.value=c,a("loop",{currentSlideIndex:r.value,slidingToIndex:e}))}a("update:modelValue",r.value),a("slide-end",{currentSlideIndex:r.value,prevSlideIndex:w.value,slidesCount:d.value}),M.value=!1,ie()},l.transition))}function P(){_(r.value+l.itemsToScroll)}function X(){_(r.value-l.itemsToScroll)}const se={slideTo:_,next:P,prev:X};x("nav",se),x("isSliding",M);const ue=q(()=>ke({config:l,currentSlide:r.value,slidesCount:d.value}));x("slidesToScroll",ue);const Se=q(()=>{const e=l.dir==="rtl"?-1:1,v=ue.value*S.value*e;return{transform:`translateX(${T.x-v}px)`,transition:`${M.value?l.transition:0}ms`,margin:l.wrapAround?`0 -${d.value*S.value}px`:"",width:"100%"}});function ce(){$(),j(),O(),D(),ie()}Object.keys(me).forEach(e=>{["modelValue"].includes(e)||Q(()=>t[e],ce)}),Q(()=>t.modelValue,e=>{e!==r.value&&_(Number(e))}),Q(d,O),$();const de={config:l,slidesCount:d,slideWidth:S,next:P,prev:X,slideTo:_,currentSlide:r,maxSlide:A,minSlide:E,middleSlide:I};s({updateBreakpointsConfigs:j,updateSlidesData:O,updateSlideWidth:D,initDefaultConfigs:$,restartCarousel:ce,slideTo:_,next:P,prev:X,nav:se,data:de});const H=n.default||n.slides,W=n.addons,ve=N(de);return()=>{const e=pe(H==null?void 0:H(ve)),v=(W==null?void 0:W(ve))||[];e.forEach((U,F)=>U.props.index=F);let c=e;if(l.wrapAround){const U=e.map((G,L)=>fe(G,{index:-e.length+L,isClone:!0,key:`clone-before-${L}`})),F=e.map((G,L)=>fe(G,{index:e.length+L,isClone:!0,key:`clone-after-${L}`}));c=[...U,...e,...F]}h.value=e,d.value=Math.max(e.length,1);const k=m("ol",{class:"carousel__track",style:Se.value,onMousedownCapture:l.mouseDrag?ae:null,onTouchstartPassiveCapture:l.touchDrag?ae:null},c),Y=m("div",{class:"carousel__viewport"},k);return m("section",{ref:o,class:{carousel:!0,"carousel--rtl":l.dir==="rtl"},dir:l.dir,"aria-label":"Gallery",tabindex:"0",onMouseenter:ge,onMouseleave:he},[Y,v,m(Me)])}}});const Ee={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},Z=t=>{const n=t.name;if(!n||typeof n!="string")return;const a=Ee[n],s=m("path",{d:a}),i=t.title||n,o=m("title",i);return m("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img",ariaLabel:i},[o,s])};Z.props={name:String,title:String};const Ne=(t,{slots:n,attrs:a})=>{const{next:s,prev:i}=n||{},o=g("config",N(Object.assign({},f))),h=g("maxSlide",u(1)),S=g("minSlide",u(1)),d=g("currentSlide",u(1)),b=g("nav",{}),{dir:y,wrapAround:l}=o,r=y==="rtl",w=m("button",{type:"button",class:["carousel__prev",!l&&d.value<=S.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":"Navigate to previous slide",onClick:b.prev},(i==null?void 0:i())||m(Z,{name:r?"arrowRight":"arrowLeft"})),I=m("button",{type:"button",class:["carousel__next",!l&&d.value>=h.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":"Navigate to next slide",onClick:b.next},(s==null?void 0:s())||m(Z,{name:r?"arrowLeft":"arrowRight"}));return[w,I]};var Ie=ee({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:n}){const a=g("config",N(Object.assign({},f))),s=g("currentSlide",u(0)),i=g("slidesToScroll",u(0)),o=g("slideWidth",u(0)),h=g("isSliding",u(!1)),S=q(()=>({width:o.value?`${o.value}px`:"100%"})),d=()=>t.index===s.value,b=()=>t.index===s.value-1,y=()=>t.index===s.value+1,l=()=>{const r=Math.floor(i.value),w=Math.ceil(i.value+a.itemsToShow-1);return t.index>=r&&t.index<=w};return()=>{var r;return m("li",{style:S.value,class:{carousel__slide:!0,"carousel_slide--clone":t.isClone,"carousel__slide--visible":l(),"carousel__slide--active":d(),"carousel__slide--prev":b(),"carousel__slide--next":y(),"carousel__slide--sliding":h.value},"aria-hidden":!l()},(r=n.default)===null||r===void 0?void 0:r.call(n))}}});export{Le as C,Ne as N,Ie as S};
