1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,332802,e=>{"use strict";e.i(879870);var t=e.i(544049),n=e.i(210998),r=e.i(578044),o=e.i(792361),i=e.i(94439),u=e.i(544383),s=e.i(604017),l=n,c=e.i(170264);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,s.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,s.isHTMLElement)(e)&&e.offsetHeight||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:r,anchorX:o,anchorY:i,root:u,pop:s}){let d=(0,l.useId)(),p=(0,l.useRef)(null),m=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=(0,l.useContext)(c.MotionConfigContext),g=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:l,right:c,bottom:a}=m.current;if(r||!1===s||!p.current||!e||!t)return;let f="left"===o?`left: ${l}`:`right: ${c}`,g="bottom"===i?`bottom: ${a}`:`top: ${n}`;p.current.dataset.motionPopId=d;let v=document.createElement("style");h&&(v.nonce=h);let y=u??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(` 2 [data-motion-pop-id="${d}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${f}px !important; 7 ${g}px !important; 8 } 9 `),()=>{y.contains(v)&&y.removeChild(v)}},[r]),(0,t.jsx)(f,{isPresent:r,childRef:p,sizeRef:m,pop:s,children:!1===s?e:l.cloneElement(e,{ref:g})})}let p=({children:e,initial:r,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:a,anchorX:f,anchorY:p,root:h})=>{let g=(0,o.useConstant)(m),v=(0,n.useId)(),y=!0,x=(0,n.useMemo)(()=>(y=!1,{id:v,initial:r,isPresent:i,custom:l,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;s&&s()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[i,g,s]);return c&&y&&(x={...x}),(0,n.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[i]),n.useEffect(()=>{i||g.size||!s||s()},[i]),e=(0,t.jsx)(d,{pop:"popLayout"===a,isPresent:i,anchorX:f,anchorY:p,root:h,children:e}),(0,t.jsx)(u.PresenceContext.Provider,{value:x,children:e})};function m(){return new Map}var h=e.i(47037);let g=e=>e.key||"";function v(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:u,initial:s=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:a="sync",propagate:f=!1,anchorX:d="left",anchorY:m="top",root:y})=>{let[x,b]=(0,h.usePresence)(f),w=(0,n.useMemo)(()=>v(e),[e]),C=f&&!x?[]:w.map(g),E=(0,n.useRef)(!0),S=(0,n.useRef)(w),I=(0,o.useConstant)(()=>new Map),P=(0,n.useRef)(new Set),[j,k]=(0,n.useState)(w),[L,N]=(0,n.useState)(w);(0,i.useIsomorphicLayoutEffect)(()=>{E.current=!1,S.current=w;for(let e=0;e<L.length;e++){let t=g(L[e]);C.includes(t)?(I.delete(t),P.current.delete(t)):!0!==I.get(t)&&I.set(t,!1)}},[L,C.length,C.join("-")]);let D=[];if(w!==j){let e=[...w];for(let t=0;t<L.length;t++){let n=L[t],r=g(n);C.includes(r)||(e.splice(t,0,n),D.push(n))}return"wait"===a&&D.length&&(e=D),N(v(e)),k(w),null}let{forceRender:O}=(0,n.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:L.map(e=>{let n=g(e),r=(!f||!!x)&&(w===L||C.includes(n));return(0,t.jsx)(p,{isPresent:r,initial:(!E.current||!!s)&&void 0,custom:u,presenceAffectsLayout:c,mode:a,root:y,onExitComplete:r?void 0:()=>{if(P.current.has(n)||(P.current.add(n),!I.has(n)))return;I.set(n,!0);let e=!0;I.forEach(t=>{t||(e=!1)}),e&&(O?.(),N(S.current),f&&b?.(),l&&l())},anchorX:d,anchorY:m,children:e},n)})})};e.s(["AnimatePresence",()=>y],332802)},990188,765950,e=>{"use strict";var t=e.i(257925);e.s(["ChevronLeftIcon",()=>t.default],990188);var n=e.i(913135);e.s(["ChevronRightIcon",()=>n.default],765950)},323211,e=>{"use strict";var t=e.i(544049),n=e.i(210998);function r(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let i=e[n],u=t[n];return"function"==typeof i?`${i}`==`${u}`:r(i)&&r(u)?o(i,u):i===u})}function i(e){return e.concat().sort((e,t)=>
9e.name>t.name?1:-1).map(e=>e.options)}function u(e){return"number"==typeof e}function s(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){return Math.abs(e)}function f(e){return Math.sign(e)}function d(e){return g(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function h(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function g(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function y(){let e=[],t={add:function(n,r,o,i={passive:!0}){let u;return"addEventListener"in n?(n.addEventListener(r,o,i),u=()=>n.removeEventListener(r,o,i)):(n.addListener(o),u=()=>n.removeListener(o)),e.push(u),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=a(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function b(e){let t=e;function n(e){return u(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function w(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,o=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;let u=Math.round(100*e.direction(t))/100;u!==o&&(r.transform=n(u),o=u)},toggleActive:function(e){i=!e}}}let C={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 E(e,t,n){let r,o,i,S,I,P,j,k,L=e.ownerDocument,N=L.defaultView,D=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(g(n).forEach(r=>{let o=t[r],i=n[r],u=c(o)&&c(i);t[r]=u?e(o,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},o=g(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(N),O=(k=[],{init:function(e,t){return(k=t.filter(({options:e})=>!1!==D.optionsAtMedia(e).active)).forEach(t=>t.init(e,D)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){k=k.filter(e=>e.destroy())}}),M=y(),R=(o={},i={init:function(e){r=e},emit:function(e){return(o[e]||[]).forEach(t=>t(r,e)),i},off:function(e,t){return o[e]=(o[e]||[]).filter(e=>e!==t),i},on:function(e,t){return o[e]=(o[e]||[]).concat([t]),i},clear:function(){o={}}}),{mergeOptions:A,optionsAtMedia:z,optionsMediaQueries:T}=D,{on:F,off:$,emit:H}=R,B=!1,V=A(C,E.globalOptions),U=A(V),q=[];function X(t,n){B||(U=z(V=A(V,t)),q=n||q,function(){let{container:t,slides:n}=U;P=(s(t)?e.querySelector(t):t)||e.children[0];let r=s(n)?P.querySelectorAll(n):n;j=[].slice.call(r||P.children)}(),S=function t(n){let r=function(e,t,n,r,o,i,c){var C,E;let S,I,P,j,k,L,N,D,O,M,R,A,z,T,{align:F,axis:$,direction:H,startIndex:B,loop:V,duration:U,dragFree:q,dragThreshold:X,inViewThreshold:K,slidesToScroll:Y,skipSnaps:J,containScroll:W,watchResize:G,watchSlides:Q,watchDrag:Z,watchFocus:_}=i,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},et=ee.measure(t),en=n.map(ee.measure),er=(I="rtl"===H,j=(P="y"===$)||!I?1:-1,k=P?"top":I?"right":"left",L=P?"bottom":I?"left":"right",{scroll:P?"y":"x",cross:P?"x":"y",startEdge:k,endEdge:L,measureSize:function(e){let{height:t,width:n}=e;return P?t:n},direction:function(e){return e*j}}),eo=er.measureSize(et),ei={measure:function(e){return e/100*eo}},eu=(C=F,E=eo,S={start:function(){return 0},center:function(e){return(E-e)/2},end:function(e){return E-e}},{measure:function(e,t){return s(C)?S[C](e):C(E,e,t)}}),es=!V&&!!W,{slideSizes:el,slideSizesWithGaps:ec,startGap:ea,endGap:ef}=function(e,t,n,r,o,i){let{measureSize:u,startEdge:s,endEdge:l}=e,c=n[0]&&o,f=function(){if(!c)return 0;let e=n[0];return a(t[s]-e[s])}(),d=c?parseFloat(i.getComputedStyle(p(r)).getPropertyValue(`margin-${l}`)):0,h=n.map(u),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?h[t]+d:n[t+1][s]-e[s]:h[t]+f}).map(a);return{slideSizes:h,slideSizesWithGaps:g,startGap:f,endGap:d}}(er,et,en,n,V||!!W,o),ed=function(e,t,n,r,o,i,s,l,c){let{startEdge:f,endEdge:h,direction:g}=e,v=u(n);return{groupSlides:function(e){return v?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,u,c)=>{let d=p(n)||0,v=u===m(e),y=o[f]-i[d][f],x=o[f]-i[u][h],b=r||0!==d?0:g(s),w=a(x-(!r&&v?g(l):0)-(y+b));return c&&w>t+2&&n.push(u),v&&n.push(e.length),n},[]).map((t,n,r)=>{let o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}}}(er,eo,Y,V,et,en,ea,ef,0),{snaps:ep,snapsAligned:em}=function(e,t,n,r,o){let{startEdge:i,endEdge:u}=e,{groupSlides:s}=o,l=s(r).map(e=>p(e)[u]-e[0][i]).map(a).map(t.measure),c=r.map(e=>n[i]-e[i]).map(e=>-a(e)),f=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:f}}
9(er,eu,et,en,ed),eh=-p(ep)+p(ec),{snapsContained:eg,scrollContainLimit:ev}=function(e,t,n,r,o){let i,u,s=x(-t+e,0),l=n.map((e,t)=>{let{min:r,max:o}=s,i=s.constrain(e),u=t===m(n);return t?u||function(e,t){return 1>=a(e-t)}(r,i)?r:function(e,t){return 1>=a(e-t)}(o,i)?o:i:o}).map(e=>parseFloat(e.toFixed(3))),c=(i=l[0],u=p(l),x(l.lastIndexOf(i),l.indexOf(u)+1));return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===r)return l;let{min:n,max:o}=c;return l.slice(n,o)}(),scrollContainLimit:c}}(eo,eh,em,W,0),ey=es?eg:em,{limit:ex}=(N=ey[0],{limit:x(V?N-eh:p(ey),N)}),eb=function e(t,n,r){let{constrain:o}=x(0,t),i=t+1,u=s(n);function s(e){return r?a((i+e)%i):o(e)}function l(){return e(t,u,r)}let c={get:function(){return u},set:function(e){return u=s(e),c},add:function(e){return l().set(u+e)},clone:l};return c}(m(ey),B,V),ew=eb.clone(),eC=d(n),eE=function(e,t,n,r){let o=y(),i=1e3/60,u=null,s=0,l=0;function c(e){if(!l)return;u||(u=e,n(),n());let o=e-u;for(u=e,s+=o;s>=i;)n(),s-=i;r(s/i),l&&(l=t.requestAnimationFrame(c))}function a(){t.cancelAnimationFrame(l),u=null,s=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(u=null,s=0)})},destroy:function(){a(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:a,update:n,render:r}}(r,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eT),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:u,dragHandler:s,animation:l,eventHandler:c,scrollBounds:a,options:{loop:f}},d)=>{let p=e.settled(),m=!a.shouldConstrain(),h=f?p:p&&m,g=h&&!s.pointerDown();g&&l.stop();let v=n.get()*d+o.get()*(1-d);r.set(v),f&&(i.loop(e.direction()),u.loop()),t.to(r.get()),g&&c.emit("settle"),h||c.emit("scroll")})(eT,e)),eS=ey[eb.get()],eI=b(eS),eP=b(eS),ej=b(eS),ek=b(eS),eL=function(e,t,n,r,o,i){let u=0,s=0,l=o,c=.68,d=e.get(),p=0;function m(e){return l=e,g}function h(e){return c=e,g}let g={direction:function(){return s},duration:function(){return l},velocity:function(){return u},seek:function(){let t=r.get()-e.get(),o=0;return l?(n.set(e),u+=t/l,u*=c,d+=u,e.add(u),o=d-p):(u=0,n.set(r),e.set(r),o=t),s=f(o),p=d,g},settled:function(){return .001>a(r.get()-t.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return m(o)},useFriction:h,useDuration:m};return g}(eI,ej,eP,ek,U,0),eN=function(e,t,n,r,o){let{reachedAny:i,removeOffset:u,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>a(e)-a(t))[0]}function c(t,r){let o=[t,t+n,t-n];if(!e)return t;if(!r)return l(o);let i=o.filter(e=>f(e)===r);return i.length?l(i):p(o)-n}return{byDistance:function(n,r){let l=o.get()+n,{index:f,distance:d}=function(n){let r=e?u(n):s(n),{index:o}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>a(e.diff)-a(t.diff))[0];return{index:o,distance:r}}(l),p=!e&&i(l);if(!r||p)return{index:f,distance:n};let m=n+c(t[f]-d,0);return{index:f,distance:m}},byIndex:function(e,n){let r=c(t[e]-o.get(),n);return{index:e,distance:r}},shortcut:c}}(V,ey,eh,ex,ek),eD=function(e,t,n,r,o,i,u){function s(o){let s=o.distance,l=o.index!==t.get();
9i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(o.index),u.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(o.byIndex(r.get(),n))}}}(eE,eb,ew,eL,eN,ek,c),eO=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ex),eM=y(),eR=(O={},M=null,R=null,A=!1,{init:function(){D=new IntersectionObserver(e=>{A||(e.forEach(e=>{O[n.indexOf(e.target)]=e}),M=null,R=null,c.emit("slidesInView"))},{root:t.parentElement,threshold:K}),n.forEach(e=>D.observe(e))},destroy:function(){D&&D.disconnect(),A=!0},get:function(e=!0){if(e&&M)return M;if(!e&&R)return R;let t=g(O).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:o}=O[r];return(e&&o||!e&&!o)&&t.push(r),t},[]);return e&&(M=t),e||(R=t),t}}),{slideRegistry:eA}=function(e,t,n,r,o,i){let u,{groupSlides:s}=o,{min:l,max:c}=r;return{slideRegistry:(u=s(i),1===n.length?[i]:e&&"keepSnaps"!==t?u.slice(l,c).map((e,t,n)=>{let r=t===m(n);return t?r?h(m(i)-p(n)[0]+1,p(n)[0]):e:h(p(n[0])+1)}):u)}}(es,W,ey,ev,ed,eC),ez=function(e,t,n,r,o,i,s,c){let a={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){c&&(i.add(document,"keydown",d,!1),t.forEach((t,d)=>{i.add(t,"focus",t=>{(l(c)||c(p,t))&&function(t){if(new Date().getTime()-f>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));u(i)&&(o.useDuration(0),r.index(i,0),s.emit("slideFocus"))}(d)},a)}))}}}(e,n,eA,eD,eL,eM,c,_),eT={ownerDocument:r,ownerWindow:o,eventHandler:c,containerRect:et,slideRects:en,animation:eE,axis:er,dragHandler:function(e,t,n,r,o,i,u,s,c,d,p,m,h,g,b,w,C,E,S){let{cross:I,direction:P}=e,j=["INPUT","SELECT","TEXTAREA"],k={passive:!1},L=y(),N=y(),D=x(50,225).constrain(g.measure(20)),O={mouse:300,touch:400},M={mouse:500,touch:600},R=b?43:25,A=!1,z=0,T=0,F=!1,$=!1,H=!1,B=!1;function V(e){if(!v(e,r)&&e.touches.length>=2)return U(e);let t=i.readPoint(e),n=i.readPoint(e,I),u=a(t-z),l=a(n-T);if(!$&&!B&&(!e.cancelable||!($=u>l)))return U(e);let c=i.pointerMove(e);u>w&&(H=!0),d.useFriction(.3).useDuration(.75),s.start(),o.add(P(c)),e.preventDefault()}function U(e){var t;let n,r,o=p.byDistance(0,!1).index!==m.get(),u=i.pointerUp(e)*(b?M:O)[B?"mouse":"touch"],s=(t=P(u),n=m.add(-1*f(t)),r=p.byDistance(t,!b).distance,b||a(t)<D?r:C&&o?.5*r:p.byIndex(n.get(),0).distance),l=function(e,t){var n,r;if(0===e||0===t||a(e)<=a(t))return 0;let o=(n=a(e),r=a(t),a(n-r));return a(o/e)}(u,s);$=!1,F=!1,N.clear(),d.useDuration(R-10*l).useFriction(.68+l/50),c.distance(s,!b),B=!1,h.emit("pointerUp")}function q(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){S&&L.add(t,"dragstart",e=>e.preventDefault(),k).add(t,"touchmove",()=>void 0,k).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",U).add(t,"contextmenu",U).add(t,"click",q,!0);function s(s){(l(S)||S(e,s))&&function(e){let s,l=v(e,r);if((B=l,H=b&&l&&!e.buttons&&A,A=a(o.get()-u.get())>=2,!l||0===e.button)&&(s=e.target.nodeName||"",!j.includes(s))){let r;F=!0,i.pointerDown(e),d.useFriction(0).useDuration(0),o.set(u),r=B?n:t,N.add(r,"touchmove",V,k).add(r,"touchend",U).add(r,"mousemove",V,k).add(r,"mouseup",U),z=i.readPoint(e),T=i.readPoint(e,I),h.emit("pointerDown")}}(s)}},destroy:function(){L.clear(),N.clear()},pointerDown:function(){return F}}}(er,e,r,o,ek,function(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){let o=r||e.scroll,i=`client${"x"===o?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[i]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){let t=i(e)-i(r),u=o(e)-o(n)>170;return r=e,u&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=i(r)-i(n),u=o(e)-o(n),s=o(e)-o(r)>170,l=t/u;return u&&!s&&a(l)>.1?l:0},readPoint:i}}(er,o),eI,eE,eD,eL,eN,eb,c,ei,q,X,J,0,Z),eventStore:eM,percentOfView:ei,index:eb,indexPrevious:ew,limit:ex,location:eI,offsetLocation:ej,previousLocation:eP,options:i,resizeHandler:function(e,t,n,r,o,i,u){let s,c,f=[e].concat(r),d=[],p=!1;function m(e){return o.measureSize(u.measure(e))}
9return{init:function(o){i&&(c=m(e),d=r.map(m),s=new ResizeObserver(n=>{(l(i)||i(o,n))&&function(n){for(let i of n){if(p)return;let n=i.target===e,u=r.indexOf(i.target),s=n?c:d[u];if(a(m(n?e:r[u])-s)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{f.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,c,o,n,er,G,ee),scrollBody:eL,scrollBounds:function(e,t,n,r,o){let i=o.measure(10),u=o.measure(50),s=x(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(o){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",f=a(e[l]-t.get()),d=n.get()-t.get(),p=s.constrain(f/u);n.subtract(d*p),!o&&a(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ex,ej,ek,eL,ei),scrollLooper:function(e,t,n,r){let{reachedMin:o,reachedMax:i}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?i(n.get()):-1===t&&o(n.get())))return;let u=-1*t*e;r.forEach(e=>e.add(u))}}}(eh,ex,ej,[eI,ej,eP,ek]),scrollProgress:eO,scrollSnapList:ey.map(eO.get),scrollSnaps:ey,scrollTarget:eN,scrollTo:eD,slideLooper:function(e,t,n,r,o,i,u,s,l){let c=d(o),a=d(o).reverse(),f=h(m(a,u[0]),n,!1).concat(h(m(c,t-u[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-o[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(o,u,c){let a=i.map((e,n)=>({start:e-r[n]+.5+u,end:e+t-.5+u}));return o.map(t=>{let r=c?0:-n,o=c?n:0,i=a[t][c?"end":"start"];return{index:t,loopPoint:i,slideLocation:b(-1),translate:w(e,l[t]),target:()=>s.get()>i?r:o}})}return{canLoop:function(){return f.every(({index:e})=>.1>=p(c.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:f}}(er,eo,eh,el,ec,ep,ey,ej,n),slideFocus:ez,slidesHandler:(T=!1,{init:function(e){Q&&(z=new MutationObserver(t=>{!T&&(l(Q)||Q(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),c.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){z&&z.disconnect(),T=!0}}),slidesInView:eR,slideIndexes:eC,slideRegistry:eA,slidesToScroll:ed,target:ek,translate:w(er,t)};return eT}(e,P,j,L,N,n,R);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(U),T([V,...q.map(({options:e})=>e)]).forEach(e=>M.add(e,"change",K)),U.active&&(S.translate.to(S.location.get()),S.animation.init(),S.slidesInView.init(),S.slideFocus.init(G),S.eventHandler.init(G),S.resizeHandler.init(G),S.slidesHandler.init(G),S.options.loop&&S.slideLooper.loop(),P.offsetParent&&j.length&&S.dragHandler.init(G),I=O.init(G,q)))}function K(e,t){let n=W();Y(),X(A({startIndex:n},e),t),R.emit("reInit")}function Y(){S.dragHandler.destroy(),S.eventStore.clear(),S.translate.clear(),S.slideLooper.clear(),S.resizeHandler.destroy(),S.slidesHandler.destroy(),S.slidesInView.destroy(),S.animation.destroy(),O.destroy(),M.clear()}function J(e,t,n){U.active&&!B&&(S.scrollBody.useBaseFriction().useDuration(!0===t?0:U.duration),S.scrollTo.index(e,n||0))}function W(){return S.index.get()}let G={canScrollNext:function(){return S.index.add(1).get()!==W()},canScrollPrev:function(){return S.index.add(-1).get()!==W()},containerNode:function(){return P},internalEngine:function(){return S},destroy:function(){B||(B=!0,M.clear(),Y(),R.emit("destroy"),R.clear())},off:$,on:F,emit:H,plugins:function(){return I},previousScrollSnap:function(){return S.indexPrevious.get()},reInit:K,rootNode:function(){return e},scrollNext:function(e){J(S.index.add(1).get(),e,-1)},scrollPrev:function(e){J(S.index.add(-1).get(),e,1)},scrollProgress:function(){return S.scrollProgress.get(S.offsetLocation.get())},scrollSnapList:function(){return S.scrollSnapList},scrollTo:J,selectedScrollSnap:W,slideNodes:function(){return j},slidesInView:function(){return S.slidesInView.get()},slidesNotInView:function(){return S.slidesInView.get(!1)}};return X(t,n),setTimeout(()=>R.emit("init"),0),G}function S(e={}
9,t=[]){let r=(0,n.useRef)(e),u=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[c,a]=(0,n.useState)(),f=(0,n.useCallback)(()=>{s&&s.reInit(r.current,u.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,f())},[e,f]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=i(e),r=i(t);return n.every((e,t)=>o(e,r[t]))}(u.current,t)&&(u.current=t,f())},[t,f]),(0,n.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&c){E.globalOptions=S.globalOptions;let e=E(c,r.current,u.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[a,s]}E.globalOptions=void 0,S.globalOptions=void 0;var I=e.i(990188),P=e.i(765950),j=e.i(519455),k=e.i(975157);let L=n.createContext(null);function N(){let e=n.useContext(L);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let D=n.forwardRef(({orientation:e="horizontal",opts:r,setApi:o,plugins:i,className:u,children:s,...l},c)=>{let[a,f]=S({...r,axis:"horizontal"===e?"x":"y"},i),[d,p]=n.useState(!1),[m,h]=n.useState(!1),g=n.useCallback(e=>{e&&(p(e.canScrollPrev()),h(e.canScrollNext()))},[]),v=n.useCallback(()=>{f?.scrollPrev()},[f]),y=n.useCallback(()=>{f?.scrollNext()},[f]),x=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),y())},[v,y]);return n.useEffect(()=>{f&&o&&o(f)},[f,o]),n.useEffect(()=>{if(f)return g(f),f.on("reInit",g),f.on("select",g),()=>{f?.off("select",g)}},[f,g]),(0,t.jsx)(L.Provider,{value:{carouselRef:a,api:f,opts:r,orientation:e||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:y,canScrollPrev:d,canScrollNext:m},children:(0,t.jsx)("div",{ref:c,onKeyDownCapture:x,className:(0,k.cn)("relative",u),role:"region","aria-roledescription":"carousel",...l,children:s})})});D.displayName="Carousel";let O=n.forwardRef(({className:e,...n},r)=>{let{carouselRef:o,orientation:i}=N();return(0,t.jsx)("div",{ref:o,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:r,className:(0,k.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",e),...n})})});O.displayName="CarouselContent";let M=n.forwardRef(({className:e,...n},r)=>{let{orientation:o}=N();return(0,t.jsx)("div",{ref:r,role:"group","aria-roledescription":"slide",className:(0,k.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===o?"pl-4":"pt-4",e),...n})});M.displayName="CarouselItem";let R=n.forwardRef(({className:e,variant:n="outline",size:r="icon",...o},i)=>{let{orientation:u,scrollPrev:s,canScrollPrev:l}=N();return(0,t.jsxs)(j.Button,{ref:i,variant:n,size:r,className:(0,k.cn)("absolute h-8 w-8 rounded-full","horizontal"===u?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...o,children:[(0,t.jsx)(I.ChevronLeftIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});R.displayName="CarouselPrevious";let A=n.forwardRef(({className:e,variant:n="outline",size:r="icon",...o},i)=>{let{orientation:u,scrollNext:s,canScrollNext:l}=N();return(0,t.jsxs)(j.Button,{ref:i,variant:n,size:r,className:(0,k.cn)("absolute h-8 w-8 rounded-full","horizontal"===u?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...o,children:[(0,t.jsx)(P.ChevronRightIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});A.displayName="CarouselNext",e.s(["Carousel",()=>D,"CarouselContent",()=>O,"CarouselItem",()=>M,"CarouselNext",()=>A,"CarouselPrevious",()=>R,"useCarousel",()=>N],323211)}]);
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.