vendor: 5,514 bytes, line 1
1import{d as Jt,j as Dt,c as Yt,b as Zt,h as ft,z as he,g as Z,$ as Wt,q as te,ay as $t,ar as Ht,o as ee,m as ne,l as W,b5 as ve,b6 as ye,r as yt,b7 as Se,b8 as be,aL as xe,b9 as Ee,k as Le,ba as Gt,ax as qt,aZ as Te}from"./DTmc-LR8.js";const Ie={class:"base-carousel-slide w-full shrink-0"},De=Jt({__name:"BaseCarouselSlide",props:{fit:{default:"contain"},padding:{type:Boolean,default:!1},aspectRatio:{default:"16/9 "}},setup(t){const e=Dt(()=>{if(t.fit==="cover")return"height: 100%; width: 100%";{const[n,r]=t.aspectRatio.split(":").map(Number);return`aspect-ratio: ${n} / ${r}`}});return(n,r)=>(Zt(),Yt("div",Ie,[ft("div",{class:te(["flex h-full w-full items-stretch justify-center",{"px-2 md:px-4":t.padding}])},[ft("div",{class:"flex max-h-full max-w-full items-center justify-center",style:he(Z(e))},[Wt(n.$slots,"default")],4)],2)]))}}),mn=Object.assign(De,{__name:"BaseCarouselSlide"});function Oe(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ut(t){return Oe(t)||Array.isArray(t)}function Ae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Mt(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(e.breakpoints||{}));return c!==s?!1:n.every(o=>{const u=t[o],i=e[o];return typeof u=="function"?`${u}`==`${i}`:!Ut(u)||!Ut(i)?u===i:Mt(u,i)})}function Kt(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function Me(t,e){if(t.length!==e.length)return!1;const n=Kt(t),r=Kt(e);return n.every((c,s)=>{const o=r[s];return Mt(c,o)})}function wt(t){return typeof t=="number"}function Ot(t){return typeof t=="string"}function bt(t){return typeof t=="boolean"}function Xt(t){return Object.prototype.toString.call(t)==="[object Object]"}function P(t){return Math.abs(t)}function Pt(t){return Math.sign(t)}function dt(t,e){return P(t-e)}function we(t,e){if(t===0||e===0||P(t)<=P(e))return 0;const n=dt(P(t),P(e));return P(n/t)}function Pe(t){return Math.round(t*100)/100}function pt(t){return mt(t).map(Number)}function H(t){return t[ht(t)]}function ht(t){return Math.max(0,t.length-1)}function Ct(t,e){return e===ht(t)}function Qt(t,e=0){return Array.from(Array(t),(n,r)=>e+r)}function mt(t){return Object.keys(t)}function oe(t,e){return[t,e].reduce((n,r)=>(mt(r).forEach(c=>{const s=n[c],o=r[c],u=Xt(s)&&Xt(o);n[c]=u?oe(s,o):o}),n),{})}function At(t,e){return typeof e.MouseEvent<"u"&&t instanceof e.MouseEvent}function Ce(t,e){const n={start:r,center:c,end:s};function r(){return 0}function c(i){return s(i)/2}function s(i){return e-i}function o(i,a){return Ot(t)?n[t](i):t(e,i,a)}return{measure:o}}function gt(){let t=[];function e(c,s,o,u={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(s,o,u),i=()=>c.removeEventListener(s,o,u);else{const a=c;a.addListener(o),i=()=>a.removeListener(o)}return t.push(i),r}function n(){t=t.filter(c=>c())}const r={add:e,clear:n};return r}function ke(t,e,n,r){const c=gt(),s=1e3/60;let o=null,u=0,i=0;function a(){c.add(t,"visibilitychange",()=>{t.hidden&&d()})}function g(){y(),c.clear()}function l(v){if(!i)return;o||(o=v);const f=v-o;for(o=v,u+=f;u>=s;)n(),u-=s;const h=u/s;r(h),i&&(i=e.requestAnimationFrame(l))}function p(){i||(i=e.requestAnimationFrame(l))}function y(){e.cancelAnimationFrame(i),o=null,u=0,i=0}function d(){o=null,u=0}return{init:a,destroy:g,start:p,stop:y,update:n,render:r}}function Be(t,e){const n=e==="rtl",r=t==="y",c=r?"y":"x",s=r?"x":"y",o=!r&&n?-1:1,u=g(),i=l();function a(d){const{height:m,width:v}=d;return r?m:v}function g(){return r?"top":n?"right":"left"}function l(){return r?"bottom":n?"left":"right"}function p(d){return d*o}return{scroll:c,cross:s,startEdge:u,endEdge:i,measureSize:a,direction:p}}function nt(t=0,e=0){const n=P(t-e);function r(a){return a<t}function c(a){return a>e}function s(a){return r(a)||c(a)}function o(a){return s(a)?r(a)?t:e:a}function u(a){return n?a-n*Math.ceil((a-e)/n):a}return{length:n,max:e,min:t,constrain:o,reachedAny:s,reachedMax:c,reachedMin:r,removeOffset:u}}function se(t,e,n){const{constrain:r}=nt(0,t),c=t+1;let s=o(e);function o(p){return n?P((c+p)%c):r(p)}function u(){return s}function i(p){return s=o(p),l}function a(p){return g().set(u()+p)}function g(){return se(t,u(),n)}const l={get:u,set:i,add:a,clone:g};return l}function Ne(t,e,n,r,c,s,o,u,i,a,g,l,p,y,d,m,v,f,h){const{cross:S,direction:I}=t,D=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=gt(),L=gt(),O=nt(50,225).constrain(y.measure(20)),C={mouse:300,touch:400},A={mouse:500,touch:600},B=d?43:25;let V=!1,_=0,x=0,z=!1,$=!1,U=!1,K=!1;function it(b){if(!h)return;function M(F){(bt(h)||h(b,F))&&ut(F)}const k=e;E.add(k,"dragstart",F=>F.preventDefault(),T).add(k,"touchmove",()=>{},T).add(k,"touchend",()=>{}).add(k,"touchstart",M).add(k,"mousedown",M).add(k,"touchcancel",N).add(k,"contextmenu",N).add(k,"click",Q,!0)}function G(){E.clear(),L.clear()}function ot(){const b=K?n:e;L.add(b,"touchmove",j,T).add(b,"touchend",N).add(b,"mousemove",j,T).add(b,"mouseup",N)}function st(b){const M=b.nodeName||"";return D.includes(M)}function X(){return(d?A:C)[K?"mouse":"touch"]}function ct(b,M){const k=l.add(Pt(b)*-1),F=g.byDistance(b,!d).distance;return d||P(b)<O?F:v&&M?F*.5:g.byIndex(k.get(),0).distance}function ut(b){const M=At(b,r);K=M,U=d&&M&&!b.buttons&&V,V=dt(c.get(),o.get())>=2,!(M&&b.button!==0)&&(st(b.target)||(z=!0,s.pointerDown(b),a.useFriction(0).useDuration(0),c.set(o),ot(),_=s.readPoint(b),x=s.readPoint(b,S),p.emit
vendor: 11,174 bytes, line 1
1("pointerDown")))}function j(b){if(!At(b,r)&&b.touches.length>=2)return N(b);const k=s.readPoint(b),F=s.readPoint(b,S),q=dt(k,_),J=dt(F,x);if(!$&&!K&&(!b.cancelable||($=q>J,!$)))return N(b);const tt=s.pointerMove(b);q>m&&(U=!0),a.useFriction(.3).useDuration(.75),u.start(),c.add(I(tt)),b.preventDefault()}function N(b){const k=g.byDistance(0,!1).index!==l.get(),F=s.pointerUp(b)*X(),q=ct(I(F),k),J=we(F,q),tt=B-10*J,Y=f+J/50;$=!1,z=!1,L.clear(),a.useDuration(tt).useFriction(Y),i.distance(q,!d),K=!1,p.emit("pointerUp")}function Q(b){U&&(b.stopPropagation(),b.preventDefault(),U=!1)}function R(){return z}return{init:it,destroy:G,pointerDown:R}}function Fe(t,e){let r,c;function s(l){return l.timeStamp}function o(l,p){const d=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(At(l,e)?l:l.touches[0])[d]}function u(l){return r=l,c=l,o(l)}function i(l){const p=o(l)-o(c),y=s(l)-s(r)>170;return c=l,y&&(r=l),p}function a(l){if(!r||!c)return 0;const p=o(c)-o(r),y=s(l)-s(r),d=s(l)-s(c)>170,m=p/y;return y&&!d&&P(m)>.1?m:0}return{pointerDown:u,pointerMove:i,pointerUp:a,readPoint:o}}function ze(){function t(n){const{offsetTop:r,offsetLeft:c,offsetWidth:s,offsetHeight:o}=n;return{top:r,right:c+s,bottom:r+o,left:c,width:s,height:o}}return{measure:t}}function Ve(t){function e(r){return t*(r/100)}return{measure:e}}function _e(t,e,n,r,c,s,o){const u=[t].concat(r);let i,a,g=[],l=!1;function p(v){return c.measureSize(o.measure(v))}function y(v){if(!s)return;a=p(t),g=r.map(p);function f(h){for(const S of h){if(l)return;const I=S.target===t,D=r.indexOf(S.target),T=I?a:g[D],E=p(I?t:r[D]);if(P(E-T)>=.5){v.reInit(),e.emit("resize");break}}}i=new ResizeObserver(h=>{(bt(s)||s(v,h))&&f(h)}),n.requestAnimationFrame(()=>{u.forEach(h=>i.observe(h))})}function d(){l=!0,i&&i.disconnect()}return{init:y,destroy:d}}function je(t,e,n,r,c,s){let o=0,u=0,i=c,a=s,g=t.get(),l=0;function p(){const T=r.get()-t.get(),E=!i;let L=0;return E?(o=0,n.set(r),t.set(r),L=T):(n.set(t),o+=T/i,o*=a,g+=o,t.add(o),L=g-l),u=Pt(L),l=g,D}function y(){const T=r.get()-e.get();return P(T)<.001}function d(){return i}function m(){return u}function v(){return o}function f(){return S(c)}function h(){return I(s)}function S(T){return i=T,D}function I(T){return a=T,D}const D={direction:m,duration:d,velocity:v,seek:p,settled:y,useBaseFriction:h,useBaseDuration:f,useFriction:I,useDuration:S};return D}function Re(t,e,n,r,c){const s=c.measure(10),o=c.measure(50),u=nt(.1,.99);let i=!1;function a(){return!(i||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function g(y){if(!a())return;const d=t.reachedMin(e.get())?"min":"max",m=P(t[d]-e.get()),v=n.get()-e.get(),f=u.constrain(m/o);n.subtract(v*f),!y&&P(v)<s&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function l(y){i=!y}return{shouldConstrain:a,constrain:g,toggleActive:l}}function $e(t,e,n,r,c){const s=nt(-e+t,0),o=l(),u=g(),i=p();function a(d,m){return dt(d,m)<1}function g(){const d=o[0],m=H(o),v=o.lastIndexOf(d),f=o.indexOf(m)+1;return nt(v,f)}function l(){return n.map((d,m)=>{const{min:v,max:f}=s,h=s.constrain(d),S=!m,I=Ct(n,m);return S?f:I||a(v,h)?v:a(f,h)?f:h}).map(d=>parseFloat(d.toFixed(3)))}function p(){if(e<=t+c)return[s.max];if(r==="keepSnaps")return o;const{min:d,max:m}=u;return o.slice(d,m)}return{snapsContained:i,scrollContainLimit:u}}function He(t,e,n){const r=e[0],c=n?r-t:H(e);return{limit:nt(c,r)}}function Ge(t,e,n,r){const s=e.min+.1,o=e.max+.1,{reachedMin:u,reachedMax:i}=nt(s,o);function a(p){return p===1?i(n.get()):p===-1?u(n.get()):!1}function g(p){if(!a(p))return;const y=t*(p*-1);r.forEach(d=>d.add(y))}return{loop:g}}function qe(t){const{max:e,length:n}=t;function r(s){const o=s-e;return n?o/-n:0}return{get:r}}function Ue(t,e,n,r,c){const{startEdge:s,endEdge:o}=t,{groupSlides:u}=c,i=l().map(e.measure),a=p(),g=y();function l(){return u(r).map(m=>H(m)[o]-m[0][s]).map(P)}function p(){return r.map(m=>n[s]-m[s]).map(m=>-P(m))}function y(){return u(a).map(m=>m[0]).map((m,v)=>m+i[v])}return{snaps:a,snapsAligned:g}}function Ke(t,e,n,r,c,s){const{groupSlides:o}=c,{min:u,max:i}=r,a=g();function g(){const p=o(s),y=!t||e==="keepSnaps";return n.length===1?[s]:y?p:p.slice(u,i).map((d,m,v)=>{const f=!m,h=Ct(v,m);if(f){const S=H(v[0])+1;return Qt(S)}if(h){const S=ht(s)-H(v)[0]+1;return Qt(S,H(v)[0])}return d})}return{slideRegistry:a}}function Xe(t,e,n,r,c){const{reachedAny:s,removeOffset:o,constrain:u}=r;function i(d){return d.concat().sort((m,v)=>P(m)-P(v))[0]}function a(d){const m=t?o(d):u(d),v=e.map((h,S)=>({diff:g(h-m,0),index:S})).sort((h,S)=>P(h.diff)-P(S.diff)),{index:f}=v[0];return{index:f,distance:m}}function g(d,m){const v=[d,d+n,d-n];if(!t)return d;if(!m)return i(v);const f=v.filter(h=>Pt(h)===m);return f.length?i(f):H(v)-n}function l(d,m){const v=e[d]-c.get(),f=g(v,m);return{index:d,distance:f}}function p(d,m){const v=c.get()+d,{index:f,distance:h}=a(v),S=!t&&s(v);if(!m||S)return{index:f,distance:d};const I=e[f]-h,D=d+g(I,0);return{index:f,distance:D}}return{byDistance:p,byIndex:l,shortcut:g}}function Qe(t,e,n,r,c,s,o){function u(l){const p=l.distance,y=l.index!==e.get();s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),y&&(n.set(e.get()),e.set(l.index),o.emit("select"))}function i(l,p){const y=c.byDistance(l,p);u(y)}function a(l,p){const y=e.clone().set(l),d=c.byIndex(y.get(),p);u(d)}return{distance:i,index:a}}function Je(t,e,n,r,c,s,o,u){const i={passive:!0,capture:!0};let a=0;function g(y){if(!u)return;function d(m){if(new Date().getTime()-a>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const h=n.findIndex(S=>S.includes(m));wt(h)&&(c.useDuration(0),r.index(h,0),o.emit("slideFocus"))}s.add(document,"keydown",l,!1),e.forEach((m,v)=>{s.add(m,"focus",f=>{(bt(u)||u(y,f))&&d(v)},i)})}function l(y){y.code==="Tab"&&(a=new Date().getTime())}return{init:g}}function lt(t){let e=t;function n(){return e}function r(i){e=o(i)}function c(i){e+=o(i)}function s(i){e-=o(i)}function o(i){return wt(i)?i:i.get()}return{get:n,set:r,add:c,subtract:s}}function re(t,e){const n=t.scroll==="x"?o:u,r=e.style;let c=null,s=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function u(p){return`translate3d(0px,${p}px,0px)`}function i(p){if(s)return;const y=Pe(t.direction(p));y!==c&&(r.transform=n(y),c=y)}function a(p){s=!p}function g(){s||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:g,to:i,toggleActive:a}}function Ye(t,e,n,r,c,s,o,u,i){const g=pt(c),l=pt(c).reverse(),p=f().concat(h());function y(E,L){return E.reduce((O,C)=>O-c[C],L)}function d(E,L){return E.reduce((O,C)=>y(O,L)>0?O.concat([C]):O,[])}function m(E){return s.map((L,O)=>({start:L-r[O]+.5+E,end:L+e-.5+E}))}function v(E,L,O){const C=m(L);return E.map(A=>{const B=O?0:-n,V=O?n:0,_=O?"end":"start",x=C[A][_];return{index:A,loopPoint:x,slideLocation:lt(-1),translate:re(t,i[A]),target:()=>u.get()>x?B:V}})}function f(){const E=o[0],L=d(l,E);return v(L,n,!1)}function h(){const E=e-o[0]-1,L=d(g,E);return v(L,-n,!0)}function S(){return p.every(({index:E})=>{const L=g.filter(O=>O!==E);return y(L,e)<=.1})}function I(){p.forEach(E=>{const{target:L,translate:O,slideLocation:C}=E,A=L();A!==C.get()&&(O.to(A),C.set(A))})}function D(){p.forEach(E=>E.translate.clear())}return{canLoop:S,clear:D,loop:I,loopPoints:p}}function Ze(t,e,n){let r,c=!1;function s(i){if(!n)return;function a(g){for(const l of g)if(l.type==="childList"){i.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(g=>{c||(bt(n)||n(i,g))&&a(g)}),r.observe(t,{childList:!0})}function o(){r&&r.disconnect(),c=!0}return{init:s,destroy:o}}function We(t,e,n,r){const c={};let s=null,o=null,u,i=!1;function a(){u=new IntersectionObserver(d=>{i||(d.forEach(m=>{const v=e.indexOf(m.target);c[v]=m}),s=null,o=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(d=>u.observe(d))}function g(){u&&u.disconnect(),i=!0}function l(d){return mt(c).reduce((m,v)=>{const f=parseInt(v),{isIntersecting:h}=c[f];return(d&&h||!d&&!h)&&m.push(f),m},[])}function p(d=!0){if(d&&s)return s;if(!d&&o)return o;const m=l(d);return d&&(s=m),d||(o=m),m}return{init:a,destroy:g,get:p}}function tn(t,e,n,r,c,s){const{measureSize:o,startEdge:u,endEdge:i}=t,a=n[0]&&c,g=d(),l=m(),p=n.map(o),y=v();function d(){if(!a)return 0;const h=n[0];return P(e[u]-h[u])}function m(){if(!a)return 0;const h=s.getComputedStyle(H(r));return parseFloat(h.getPropertyValue(`margin-${i}`))}function v(){return n.map((h,S,I)=>{const D=!S,T=Ct(I,S);return D?p[S]+g:T?p[S]+l:I[S+1][u]-h[u]}).map(P)}return{slideSizes:p,slideSizesWithGaps:y,startGap:g,endGap:l}}function en(t,e,n,r,c,s,o,u,i){const{startEdge:a,endEdge:g,direction:l}=t,p=wt(n);function y(f,h){return pt(f).filter(S=>S%h===0).map(S=>f.slice(S,S+h))}function d(f){return f.length?pt(f).reduce((h,S,I)=>{const D=H(h)||0,T=D===0,E=S===ht(f),L=c[a]-s[D][a],O=c[a]-s[S][g],C=!r&&T?l(o):0,A=!r&&E?l(u):0,B=P(O-A-(L+C));return I&&B>e+i&&h.push(S),E&&h.push(f.length),h},[]).map((h,S,I)=>{const D=Math.max(I[S-1]||0);return f.slice(D,h)}):[]}function m(f){return p?y(f,n):d(f)}return{groupSlides:m}}function nn(t,e,n,r,c,s,o){const{align:u,axis:i,direction:a,startIndex:g,loop:l,duration:p,dragFree:y,dragThreshold:d,inViewThreshold:m,slidesToScroll:v,skipSnaps:f,containScroll:h,watchResize:S,watchSlides:I,watchDrag:D,watchFocus:T}=s,E=2,L=ze(),O=L.measure(e),C=n.map(L.measure),A=Be(i,a),B=A.measureSize(O),V=Ve(B),_=Ce(u,B),x=!l&&!!h,z=l||!!h,{slideSizes:$,slideSizesWithGaps:U,startGap:K,endGap:it}=tn(A,O,C,n,z,c),G=en(A,B,v,l,O,C,K,it,E),{snaps:ot,snapsAligned:st}=Ue(A,_,O,C,G),X=-H(ot)+H(U),{snapsContained:ct,scrollContainLimit:ut}=$e(B,X,st,h,E),j=x?ct:st,{limit:N}=He(X,j,l),Q=se(ht(j),g,l),R=Q.clone(),w=pt(n),b=({dragHandler:rt,scrollBody:Tt,scrollBounds:It,options:{loop:vt}})=>{vt||It.constrain(rt.pointerDown()),Tt.seek()},M=({scrollBody:rt,translate:Tt,location:It,offsetLocation:vt,previousLocation:ue,scrollLooper:ae,slideLooper:le,dragHandler:fe,animation:de,eventHandler:zt,scrollBounds:pe,options:{loop:Vt}},_t)=>{const jt=rt.settled(),me=!pe.shouldConstrain(),Rt=Vt?jt:jt&&me;Rt&&!fe.pointerDown()&&(de.stop(),zt.emit("settle")),Rt||zt.emit("scroll");const ge=It.get()*_t+ue.get()*(1-_t);vt.set(ge),Vt&&(ae.loop(rt.direction()),le.loop()),Tt.to(vt.get())},k=ke(r,c,()=>b(Lt),rt=>M(Lt,rt)),F=.68,q=j[Q.get()],J=lt(q),tt=lt(q),Y=lt(q),et=lt(q),at=je(J,Y,tt,et,p,F),xt=Xe(l,j,X,N,et),Et=Qe(k,Q,R,at,xt,et,o),Bt=qe(N),Nt=gt(),ie=We(e,n,o,m),{slideRegistry:Ft}=Ke(x,h,j,ut,G,w),ce=Je(t,n,Ft,Et,at,Nt,o,T),Lt={ownerDocument:r,ownerWindow:c,eventHandler:o,containerRect:O,slideRects:C,animation:k,axis:A,dragHandler:Ne(A,t,r,c,et,Fe(A,c),J,k,Et,at,xt,Q,o,V,y,d,f,F,D),eventStore:Nt,percentOfView:V,index:Q,indexPrevious:R,limit:N,location:J,offsetLocation:Y,previousLocation:tt,options:s,resizeHandler:_e(e,o,c,n,A,S,L),scrollBody:at,scrollBounds:Re(N,Y,et,at,V),scrollLooper:Ge(X,N,Y,[J,Y,tt,et]),scrollProgress:Bt,scrollSnapList:j.map(Bt.get),scrollSnaps:j,scrollTarget:xt,scrollTo:Et,slideLooper:Ye(A,B,X,$,U,ot,j,Y,n),slideFocus:ce,slidesHandler:Ze(e,o,I),slidesInView:ie,slideIndexes:w,slideRegistry:Ft,slidesToScroll:G,target:et,translate:re(A,e)};return Lt}function on(){let t={},e;function n(a){e=a}function r(a){return t[a]||[]}
1function c(a){return r(a).forEach(g=>g(e,a)),i}function s(a,g){return t[a]=r(a).concat([g]),i}function o(a,g){return t[a]=r(a).filter(l=>l!==g),i}function u(){t={}}const i={init:n,emit:c,off:o,on:s,clear:u};return i}const sn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function rn(t){function e(s,o){return oe(s,o||{})}function n(s){const o=s.breakpoints||{},u=mt(o).filter(i=>t.matchMedia(i).matches).map(i=>o[i]).reduce((i,a)=>e(i,a),{});return e(s,u)}function r(s){return s.map(o=>mt(o.breakpoints||{})).reduce((o,u)=>o.concat(u),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function cn(t){let e=[];function n(s,o){return e=o.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),e.forEach(u=>u.init(s,t)),o.reduce((u,i)=>Object.assign(u,{[i.name]:i}),{})}function r(){e=e.filter(s=>s.destroy())}return{init:n,destroy:r}}function St(t,e,n){const r=t.ownerDocument,c=r.defaultView,s=rn(c),o=cn(s),u=gt(),i=on(),{mergeOptions:a,optionsAtMedia:g,optionsMediaQueries:l}=s,{on:p,off:y,emit:d}=i,m=A;let v=!1,f,h=a(sn,St.globalOptions),S=a(h),I=[],D,T,E;function L(){const{container:w,slides:b}=S;T=(Ot(w)?t.querySelector(w):w)||t.children[0];const k=Ot(b)?T.querySelectorAll(b):b;E=[].slice.call(k||T.children)}function O(w){const b=nn(t,T,E,r,c,w,i);if(w.loop&&!b.slideLooper.canLoop()){const M=Object.assign({},w,{loop:!1});return O(M)}return b}function C(w,b){v||(h=a(h,w),S=g(h),I=b||I,L(),f=O(S),l([h,...I.map(({options:M})=>M)]).forEach(M=>u.add(M,"change",A)),S.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(R),f.eventHandler.init(R),f.resizeHandler.init(R),f.slidesHandler.init(R),f.options.loop&&f.slideLooper.loop(),T.offsetParent&&E.length&&f.dragHandler.init(R),D=o.init(R,I)))}function A(w,b){const M=G();B(),C(a({startIndex:M},w),b),i.emit("reInit")}function B(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),u.clear()}function V(){v||(v=!0,u.clear(),B(),i.emit("destroy"),i.clear())}function _(w,b,M){!S.active||v||(f.scrollBody.useBaseFriction().useDuration(b===!0?0:S.duration),f.scrollTo.index(w,M||0))}function x(w){const b=f.index.add(1).get();_(b,w,-1)}function z(w){const b=f.index.add(-1).get();_(b,w,1)}function $(){return f.index.add(1).get()!==G()}function U(){return f.index.add(-1).get()!==G()}function K(){return f.scrollSnapList}function it(){return f.scrollProgress.get(f.location.get())}function G(){return f.index.get()}function ot(){return f.indexPrevious.get()}function st(){return f.slidesInView.get()}function X(){return f.slidesInView.get(!1)}function ct(){return D}function ut(){return f}function j(){return t}function N(){return T}function Q(){return E}const R={canScrollNext:$,canScrollPrev:U,containerNode:N,internalEngine:ut,destroy:V,off:y,on:p,emit:d,plugins:ct,previousScrollSnap:ot,reInit:m,rootNode:j,scrollNext:x,scrollPrev:z,scrollProgress:it,scrollSnapList:K,scrollTo:_,selectedScrollSnap:G,slideNodes:Q,slidesInView:st,slidesNotInView:X};return C(e,n),setTimeout(()=>i.emit("init"),0),R}St.globalOptions=void 0;function kt(t={},e=[]){const n=$t(t),r=$t(e);let c=n?t.value:t,s=r?e.value:e;const o=Ht(),u=Ht();function i(){u.value&&u.value.reInit(c,s)}return ee(()=>{!Ae()||!o.value||(St.globalOptions=kt.globalOptions,u.value=St(o.value,c,s))}),ne(()=>{u.value&&u.value.destroy()}),n&&W(t,a=>{Mt(c,a)||(c=a,i())}),r&&W(e,a=>{Me(s,a)||(s=a,i())}),[o,u]}kt.globalOptions=void 0;const un=ve("CarouselEmitter",()=>ye());function an(){const t=un();return{on:t.value.on,off:t.value.off,emit:t.value.emit}}function ln(t){return Math.round(t*100)/100}const fn={class:"absolute inset-0 flex"},dn=Jt({__name:"BaseCarousel",props:{id:{},autoplay:{default:0},loop:{type:Boolean,default:!1},initial:{default:0},keys:{type:Boolean}},setup(t,{expose:e}){const n=t,r=yt(null),c=an(),s=Se(),{elementX:o,elementWidth:u}=be(r),i=Dt(()=>o.value<u.value/4?"left":o.value>u.value-u.value/4?"right":void 0),a=kt({startIndex:n.initial,loop:n.loop,duration:20}),[g,l]=a,{timer:p,restart:y,initialize:d,destroy:m}=xe({id:n.id}),v=Ee(),f=yt(!1),h=yt(!1),S=yt(0),{stop:I}=Le(g,x=>{const z=x[0];f.value=z?z.isIntersecting:!1}),D=Dt(()=>n.autoplay*100),T=Gt(S,()=>l.value?.canScrollNext()),E=Gt(S,()=>l.value?.canScrollPrev());async function L(x){const z=x?.rootNode();if(!z||z!==g.value)return;const $=x?.selectedScrollSnap()||0;S.value=$,p.value&&D.value&&(s.emit("tick",{id:n.id,value:0}),f.value&&y()),c.emit("select",{id:n.id,value:$})}function O(x){c.emit("scroll",{id:n.id,value:ln(x?.scrollProgress()||0)})}function C(){h.value=!1}function A(){h.value=!0,Te(document,"pointerup",C)}function B(){i.value==="left"?l.value?.scrollPrev(!0):i.value==="right"&&l.value?.scrollNext(!0)}function V(x){x.id===n.id&&x.value>=D.value&&(l.value?.canScrollNext()?l.value?.scrollNext():n.loop&&l.value?.scrollTo(0,!0))}function _(x){x.id===n.id&&l.value?.scrollTo(0,!0)}return W(S,()=>{l.value?.canScrollNext()||c.emit("loadMore",{id:n.id})}),W(D,async x=>{x?f.value&&y():p.value?.stop()},{immediate:!0}),W(f,x=>{x?(D.value&&d(),c.emit("scroll",{id:n.id,value:l.value?.scrollProgress()||0})):m()}),W(D,x=>{x?f.value&&d():m()}),W(v,x=>{x==="visible"?(p.value?.start(),c.emit("scroll",{id:n.id,value:l.value?.scrollProgress()||0})):x==="hidden"&&p.value?.stop()}),W(h,x=>{x?p.value?.stop():f.value&&p.value?.start()}),ee(()=>{T.trigger(),E.trigger(),n.autoplay&&f.value&&d(),s.on("tick",V),l.value&&(L(l.value),l.value.on("select",L),l.value.on("scroll",O),c.on("reset",_))}),ne(()=>{if(g.value){const x=l.value?.internalEngine().location.get();g.value.style.transform=`translateX(${x}px)`}l.value?.off("select",L),l.value?.off("scroll",O),c.off("reset",_),s.off("tick",V),m(),I()}),qt("ArrowRight",x=>{n.keys&&(x.preventDefault(),l.value?.scrollNext(!0))}),qt("ArrowLeft",x=>{n.keys&&(x.preventDefault(),l.value?.scrollPrev(!0))}),e({emblaMainApi:l,isVisible:f}),(x,z)=>(Zt(),Yt("div",{ref_key:"targetRef",ref:r,class:"base-carousel relative flex h-full w-full select-none",onClick:B},[ft("div",{class:te(["flex w-full flex-1 flex-col",{"cursor-w-resize":Z(i)==="left"&&Z(E),"curs
1or-e-resize":Z(i)==="right"&&Z(T),"cursor-grab":Z(i)===void 0,"cursor-grabbing":Z(i)===void 0&&Z(h)}]),onPointerdown:A},[ft("div",{ref_key:"mainRef",ref:g,class:"base-carousel__main relative flex flex-1"},[ft("div",fn,[Wt(x.$slots,"default")])],512)],34)],512))}}),gn=Object.assign(dn,{__name:"BaseCarousel"});export{gn as B,mn as _,an as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.