PageSourceSearch

https://devsloom.ca/build/assets/embla-carousel-autoplay.esm-CMSTqRGZ.js

js devsloom.ca collected 2026-10-05 06:57:37 UTC 24,422 bytes, 1 lines download raw bytes

1import{r as k,a3 as ze,a4 as Pe,j as K,a6 as je,am as Ge,aq as Ue,ap as pe,al as xe,ar as Se,as as Ke,a5 as $e,au as We,ab as ye,a7 as Je}from"./app-B2VYTbHN.js";import{c as Xe}from"./create-safe-context-Bs2ORtLf.js";import{g as Me}from"./get-base-value-vY1p4YUi.js";import{g as Ye,u as Qe}from"./use-floating-auto-update-DVu5Qdjt.js";import{c as Ze}from"./clamp-DiO07i0g.js";import{A as Ne}from"./AccordionChevron-BdKL2FOD.js";function en(e,n,i,t,a){return t+(a-t)*((e-n)/(i-n))}function we(e){return typeof e=="number"}function De(e){return typeof e=="string"}function Ee(e){return Object.prototype.toString.call(e)==="[object Object]"}function nn(e){return Array.isArray(e)}function Le(e){return Ee(e)||nn(e)}function D(e){return Math.abs(e)}function be(e){return e?e/D(e):0}function ce(e,n){return D(e-n)}function rn(e,n){if(e===0||n===0||D(e)<=D(n))return 0;var i=ce(D(e),D(n));return D(i/e)}function tn(e){var n=Math.pow(10,e);return function(i){return Math.round(i*n)/n}}function le(e){return oe(e).map(Number)}function ee(e){return e[ge(e)]}function ge(e){return Math.max(0,e.length-1)}function oe(e){return Object.keys(e)}function Ve(e,n){return[e,n].reduce(function(i,t){return oe(t).forEach(function(a){var s=i[a],o=t[a],l=Ee(s)&&Ee(o);i[a]=l?Ve(s,o):o}),i},{})}function Re(e,n){var i=oe(e),t=oe(n);return i.length!==t.length?!1:i.every(function(a){var s=e[a],o=n[a];return typeof s=="function"?"".concat(s)==="".concat(o):!Le(s)||!Le(o)?s===o:Re(s,o)})}function an(e,n){var i={start:t,center:a,end:s};function t(){return 0}function a(u){return s(u)/2}function s(u){return n-u}function o(){return n*Number(e)}function l(u){return we(e)?o():i[e](u)}var f={measure:l};return f}function on(e){var n=0;function i(o,l){return function(){o===!!n&&l()}}function t(){n=window.requestAnimationFrame(e)}function a(){window.cancelAnimationFrame(n),n=0}var s={proceed:i(!0,t),start:i(!1,t),stop:i(!0,a)};return s}function sn(e,n){var i=e==="y"?"y":"x",t=e==="y"?"x":"y",a=l(),s=f();function o(c){var r=c.width,d=c.height;return i==="x"?r:d}function l(){return i==="y"?"top":n==="rtl"?"right":"left"}function f(){return i==="y"?"bottom":n==="rtl"?"left":"right"}var u={scroll:i,cross:t,startEdge:a,endEdge:s,measureSize:o};return u}function se(e,n){var i=D(e-n);function t(u){return u<e}function a(u){return u>n}function s(u){return t(u)||a(u)}function o(u){return s(u)?t(u)?e:n:u}function l(u){return i?u-i*Math.ceil((u-n)/i):u}var f={length:i,max:n,min:e,constrain:o,reachedAny:s,reachedMax:a,reachedMin:t,removeOffset:l};return f}function _e(e,n,i){var t=se(0,e),a=t.min,s=t.constrain,o=e+1,l=f(n);function f(v){return i?D((o+v)%o):s(v)}function u(){return l}function c(v){return l=f(v),p}function r(v){return c(u()+v)}function d(){return _e(e,u(),i)}var p={add:r,clone:d,get:u,set:c,min:a,max:e};return p}function un(e){var n=e==="rtl"?-1:1;function i(a){return a*n}var t={apply:i};return t}function me(){var e=[];function n(a,s,o,l){return l===void 0&&(l={passive:!0}),a.addEventListener(s,o,l),e.push(function(){return a.removeEventListener(s,o,l)}),t}function i(){return e=e.filter(function(a){return a()}),t}var t={add:n,removeAll:i};return t}function te(e){var n=e;function i(){return n}function t(r){return n=u(r),c}function a(r){return n+=u(r),c}function s(r){return n-=u(r),c}function o(r){return n*=r,c}function l(r){return n/=r,c}function f(){return n!==0&&l(n),c}function u(r){return we(r)?r:r.get()}var c={add:a,divide:l,get:i,multiply:o,normalize:f,set:t,subtract:s};return c}function cn(e,n,i,t,a,s,o,l,f,u,c,r,d,p,v,m){var x=e.cross,g=["INPUT","SELECT","TEXTAREA"],h={passive:!1},b=te(0),S=me(),w=me(),I=d.measure(20),C={mouse:300,touch:400},T={mouse:500,touch:600},z=v?5:16,q=1,_=0,W=0,$=!1,U=!1,V=!1,L=!1;function Q(){var y=i;S.add(y,"dragstart",function(N){return N.preventDefault()},h).add(y,"touchmove",function(){},h).add(y,"touchend",function(){}).add(y,"touchstart",re).add(y,"mousedown",re).add(y,"touchcancel",B).add(y,"contextmenu",B).add(y,"click",R,!0)}function P(){var y=L?document:i;w.add(y,"touchmove",X,h).add(y,"touchend",B).add(y,"mousemove",X,h).add(y,"mouseup",B)}function F(){S.removeAll(),w.removeAll()}function J(y){var N=y.nodeName||"";return g.indexOf(N)>-1}function ne(){var y=v?T:C,N=L?"mouse":"touch";return y[N]}function ie(y,N){var G=c.clone().add(be(y)*-1),M=G.get()===c.min||G.get()===c.max,H=u.byDistance(y,!v).distance;return v||D(y)<I?H:!p&&M?H*.4:m&&N?H*.5:u.byIndex(G.get(),0).distance}function re(y){if(L=!a.isTouchEvent(y),!(L&&y.button!==0)&&!J(y.target)){var N=ce(t.get(),s.get())>=2,G=L||!N;$=!0,a.pointerDown(y),b.set(t),t.set(s),f.useBaseMass().useSpeed(80),P(),_=a.readPoint(y),W=a.readPoint(y,x),r.emit("pointerDown"),G&&(V=!1)}}function X(y){if(!U&&!L){if(!y.cancelable)return B(y);var N=a.readPoint(y),G=a.readPoint(y,x),M=ce(N,_),H=ce(G,W);if(U=M>H,!U&&!V)return B(y)}var Y=a.pointerMove(y);!V&&Y&&(V=!0),o.start(),t.add(n.apply(Y)),y.preventDefault()}function B(y){var N=u.byDistance(0,!1),G=N.index!==c.get(),M=a.pointerUp(y)*ne(),H=ie(n.apply(M),G),Y=rn(M,H),fe=ce(t.get(),b.get())>=.5,ue=G&&Y>.75,he=D(M)<I,de=ue?10:z,ve=ue?q+2.5*Y:q;fe&&!L&&(V=!0),U=!1,$=!1,w.removeAll(),f.useSpeed(he?9:de).useMass(ve),l.distance(H,!v),L=!1,r.emit("pointerUp")}function R(y){V&&(y.stopPropagation(),y.preventDefault())}function A(){return!V}function O(){return $}var E={addActivationEvents:Q,clickAllowed:A,pointerDown:O,removeAllEvents:F};return E}function ln(e){var n=170,i,t;function a(r){return typeof TouchEvent<"u"&&r instanceof TouchEvent}function s(r){return r.timeStamp}function o(r,d){var p=d||e.scroll,v="client".concat(p==="x"?"X":"Y");return(a(r)?r.touches[0]:r)[v]}function l(r){return i=r,t=r,o(r)}function f(r){var d=o(r)-o(t),p=s(r)-s(i)>n;return t=r,p&&(i=r),d}function u(r){if(!i||!t)return 0;var d=o(t)-o(i),p=s(r)-s(i),v=s(r)-s(t)>n,m=d/p,x=p&&!v&&D(m)>.1;return x?m:0}var c={isTouchEvent:a,pointerDown:l,pointerMove:f,pointerUp:u,readPoint:o};return c}function fn(e){function n(t){return e*(t/100)}var i={measure:n};return i}function dn(e,n,i){var t=tn(2),a=te(0),s=te(0),o=te(0),l=0,f=n,u=i;function c(){a.add(s),e.add(a),s.multiply(0)}function r(S){S.divide(u),s.add(S)}function d(S){o.set(S).subtract(e);var w=en(o.get(),0,100,0,f);return l=be(o.get()),o.normalize().multiply(w).subtract(a),r(o),b}function p(S){var w=S.get()-e.get(),I=!t(w);return I&&e.set(S),I}function v(){return l}function m(){return g(n)}function x(){return h(i)}function g(S){return f=S,b}function h(S){return u=S,b}var b={direction:v,seek:d,settle:p,update:c,useBaseMass:x,useBaseSpeed:m,useMass:h,useSpeed:g};return b}function vn(e,n,i,t,a){var s=a.measure(10),o=a.measure(50),l=.85,f=!1;function u(){return!(f||!e.reachedAny(i.get())||!e.reachedAny(n.get()))}function c(p){if(u()){var v=e.reachedMin(n.get())?"min":"max",m=D(e[v]-n.get()),x=i.get()-n.get(),g=Math.min(m/o,l);i.subtract(x*g),!p&&D(x)<s&&(i.set(e.constrain(i.get())),t.useSpeed(10).useMass(3))}}function r(p){f=!p}var d={constrain:c,toggleActive:r};return d}function pn(e,n,i,t){var a=se(-n+e,i[0]),s=i.map(a.constrain),o=f();function l(){var c=s[0],r=ee(s),d=s.lastIndexOf(c),p=s.indexOf(r)+1;return se(d,p)}function f(){if(n<=e)return[a.max];if(t==="keepSnaps")return s;var c=l(),r=c.min,d=c.max;return s.slice(r,d)}var u={snapsContained:o};return u}function mn(e,n,i){var t=a();function a(){var o=n[0],l=ee(n),f=i?o-e:l,u=o;return se(f,u)}var s={limit:t};return s}function gn(e,n,i,t){var a=.1,s=n.min+a,o=n.max+a,l=se(s,o),f=l.reachedMin,u=l.reachedMax;function c(p){return p===1?u(i.get()):p===-1?f(i.get()):!1}function r(p){if(c(p)){var v=e*(p*-1);t.forEach(function(m){return m.add(v)})}}var d={loop:r};return d}function hn(e){var n=e.max,i=e.length;function t(s){var o=s-n;return o/-i}var a={get:t};return a}function Sn(e,n,i,t,a,s,o){var l=e.startEdge,f=e.endEdge,u=s.groupSlides,c=p().map(n.measure),r=v(),d=m();function p(){return u(t).map(function(g){return ee(g)[f]-g[0][l]}).map(D)}function v(){return t.map(function(g){return i[l]-g[l]}).map(function(g){return-D(g)})}
1function m(){var g=0,h=ee(r)-ee(a);return u(r).map(function(b){return b[0]}).map(function(b,S,w){var I=!S,C=S===ge(w);return o&&I?g:o&&C?h:b+c[S]})}var x={snaps:r,snapsAligned:d};return x}function yn(e,n,i,t,a){var s=t.reachedAny,o=t.removeOffset,l=t.constrain;function f(v){return v.concat().sort(function(m,x){return D(m)-D(x)})[0]}function u(v){var m=e?o(v):l(v),x=n.map(function(h){return h-m}).map(function(h){return c(h,0)}).map(function(h,b){return{diff:h,index:b}}).sort(function(h,b){return D(h.diff)-D(b.diff)}),g=x[0].index;return{index:g,distance:m}}function c(v,m){var x=[v,v+i,v-i];if(!e)return x[0];if(!m)return f(x);var g=x.filter(function(h){return be(h)===m});return f(g)}function r(v,m){var x=n[v]-a.get(),g=c(x,m);return{index:v,distance:g}}function d(v,m){var x=a.get()+v,g=u(x),h=g.index,b=g.distance,S=!e&&s(x);if(!m||S)return{index:h,distance:v};var w=n[h]-b,I=v+c(w,0);return{index:h,distance:I}}var p={byDistance:d,byIndex:r,shortcut:c};return p}function xn(e,n,i,t,a,s){function o(c){var r=c.distance,d=c.index!==n.get();r&&(e.start(),a.add(r)),d&&(i.set(n.get()),n.set(c.index),s.emit("select"))}function l(c,r){var d=t.byDistance(c,r);o(d)}function f(c,r){var d=n.clone().set(c),p=t.byIndex(d.get(),r);o(p)}var u={distance:l,index:f};return u}function Fe(e,n,i){var t=e.scroll==="x"?o:l,a=i.style,s=!1;function o(d){return"translate3d(".concat(d,"px,0px,0px)")}function l(d){return"translate3d(0px,".concat(d,"px,0px)")}function f(d){s||(a.transform=t(n.apply(d.get())))}function u(d){s=!d}function c(){s||(a.transform="",i.getAttribute("style")||i.removeAttribute("style"))}var r={clear:c,to:f,toggleActive:u};return r}function En(e,n,i,t,a,s,o,l,f){var u=le(a),c=le(a).reverse(),r=m().concat(x());function d(w,I){return w.reduce(function(C,T){return C-a[T]},I)}function p(w,I){return w.reduce(function(C,T){var z=d(C,I);return z>0?C.concat([T]):C},[])}function v(w,I){var C=I==="start",T=C?-t:t,z=o.findSlideBounds([T]);return w.map(function(q){var _=C?0:-t,W=C?t:0,$=z.filter(function(F){return F.index===q})[0],U=$[C?"end":"start"],V=te(-1),L=te(-1),Q=Fe(e,n,f[q]),P=function(){return V.set(l.get()>U?_:W)};return{index:q,location:L,translate:Q,target:P}})}function m(){var w=s[0]-1,I=p(c,w);return v(I,"end")}function x(){var w=i-s[0]-1,I=p(u,w);return v(I,"start")}function g(){return r.every(function(w){var I=w.index,C=u.filter(function(T){return T!==I});return d(C,i)<=.1})}function h(){r.forEach(function(w){var I=w.target,C=w.translate,T=w.location,z=I();z.get()!==T.get()&&(z.get()===0?C.clear():C.to(z),T.set(z))})}function b(){r.forEach(function(w){return w.translate.clear()})}var S={canLoop:g,clear:b,loop:h,loopPoints:r};return S}function wn(e,n,i,t,a,s,o){var l=a.removeOffset,f=a.constrain,u=.5,c=s?[0,n,-n]:[0],r=p(c,o);function d(x){var g=x||0;return i.map(function(h){var b=se(u,h-u);return b.constrain(h*g)})}function p(x,g){var h=x||c,b=d(g);return h.reduce(function(S,w){var I=t.map(function(C,T){return{start:C-i[T]+b[T]+w,end:C+e-b[T]+w,index:T}});
1return S.concat(I)},[])}function v(x,g){var h=s?l(x):f(x),b=g||r;return b.reduce(function(S,w){var I=w.index,C=w.start,T=w.end,z=S.indexOf(I)!==-1,q=C<h&&T>h;return!z&&q?S.concat([I]):S},[])}var m={check:v,findSlideBounds:p};return m}function bn(e,n,i,t,a){var s=e.measureSize,o=e.startEdge,l=e.endEdge,f=i[0]&&a,u=p(),c=v(),r=i.map(s),d=m();function p(){if(!f)return 0;var g=i[0];return D(n[o]-g[o])}function v(){if(!f)return 0;var g=window.getComputedStyle(ee(t));return parseFloat(g.getPropertyValue("margin-".concat(l)))}function m(){return i.map(function(g,h,b){var S=!h,w=h===ge(b);return S?r[h]+u:w?r[h]+c:b[h+1][o]-g[o]}).map(D)}var x={slideSizes:r,slideSizesWithGaps:d};return x}function An(e,n,i){var t=we(i);function a(f,u){return le(f).filter(function(c){return c%u===0}).map(function(c){return f.slice(c,c+u)})}function s(f){return le(f).reduce(function(u,c){var r=n.slice(ee(u),c+1),d=r.reduce(function(p,v){return p+v},0);return!c||d>e?u.concat(c):u},[]).map(function(u,c,r){return f.slice(u,r[c+1])})}function o(f){return t?a(f,i):s(f)}var l={groupSlides:o};return l}function In(e,n,i,t,a){var s=t.align,o=t.axis,l=t.direction,f=t.startIndex,u=t.inViewThreshold,c=t.loop,r=t.speed,d=t.dragFree,p=t.slidesToScroll,v=t.skipSnaps,m=t.containScroll,x=n.getBoundingClientRect(),g=i.map(function(H){return H.getBoundingClientRect()}),h=un(l),b=sn(o,l),S=b.measureSize(x),w=fn(S),I=an(s,S),C=!c&&m!=="",T=c||m!=="",z=bn(b,x,g,i,T),q=z.slideSizes,_=z.slideSizesWithGaps,W=An(S,_,p),$=Sn(b,I,x,g,_,W,C),U=$.snaps,V=$.snapsAligned,L=-ee(U)+ee(_),Q=pn(S,L,V,m).snapsContained,P=C?Q:V,F=mn(L,P,c).limit,J=_e(ge(P),f,c),ne=J.clone(),ie=le(i),re=function(){c||M.scrollBounds.constrain(M.dragHandler.pointerDown()),M.scrollBody.seek(A).update();var H=M.scrollBody.settle(A);H&&!M.dragHandler.pointerDown()&&(M.animation.stop(),a.emit("settle")),H||a.emit("scroll"),c&&(M.scrollLooper.loop(M.scrollBody.direction()),M.slideLooper.loop()),M.translate.to(R),M.animation.proceed()},X=on(re),B=P[J.get()],R=te(B),A=te(B),O=dn(R,r,1),E=yn(c,P,L,F,A),y=xn(X,J,ne,E,A,a),N=wn(S,L,q,U,F,c,u),G=cn(b,h,e,A,ln(b),R,X,y,O,E,J,a,w,c,d,v),M={containerRect:x,slideRects:g,animation:X,axis:b,direction:h,dragHandler:G,eventStore:me(),percentOfView:w,index:J,indexPrevious:ne,limit:F,location:R,options:t,scrollBody:O,scrollBounds:vn(F,R,A,O,w),scrollLooper:gn(L,F,R,[R,A]),scrollProgress:hn(F),scrollSnaps:P,scrollTarget:E,scrollTo:y,slideLooper:En(b,h,S,L,_,P,N,R,i),slidesToScroll:W,slidesInView:N,slideIndexes:ie,target:A,translate:Fe(b,h,n)};return M}function Cn(){var e={};function n(o){return e[o]||[]}function i(o){return n(o).forEach(function(l){return l(o)}),s}function t(o,l){return e[o]=n(o).concat([l]),s}function a(o,l){return e[o]=n(o).filter(function(f){return f!==l}),s}var s={emit:i,off:a,on:t};return s}var On={align:"center",axis:"x",container:null,slides:null,containScroll:"",direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,draggable:!0,inViewThreshold:0,loop:!1,skipSnaps:!1,speed:10,startIndex:0,active:!0};function Ae(){function e(a,s){return Ve(a,s||{})}function n(a,s){var o=JSON.stringify(oe(a.breakpoints||{})),l=JSON.stringify(oe(s.breakpoints||{}));return o!==l?!1:Re(a,s)}function i(a){var s=a.breakpoints||{},o=oe(s).filter(function(l){return window.matchMedia(l).matches}).map(function(l){return s[l]}).reduce(function(l,f){return e(l,f)},{});return e(a,o)}var t={merge:e,areEqual:n,atMedia:i};return t}function Tn(){var e=Ae(),n=e.atMedia,i=e.areEqual,t=[],a=[];function s(){return a.some(function(c){return c()})}function o(c){var r=n(c.options);return function(){return!i(r,n(c.options))}}function l(c,r){return a=c.map(o),t=c.filter(function(d){return n(d.options).active}),t.forEach(function(d){return d.init(r)}),c.reduce(function(d,p){var v;return Object.assign(d,(v={},v[p.name]=p,v))},{})}function f(){t=t.filter(function(c){return c.destroy()})}var u={init:l,destroy:f,haveChanged:s};return u}function ae(e,n,i){var t=me(),a=Ae(),s=Tn(),o=Cn(),l=o.on,f=o.off,u=w,c=!1,r,d=a.merge(On,ae.globalOptions),p=a.merge(d),v=[],m,x=0,g,h;function b(){var A=p.container,O=p.slides,E=De(A)?e.querySelector(A):A;g=E||e.children[0];var y=De(O)?g.querySelectorAll(O):O;h=[].slice.call(y||g.children)}
1function S(A,O){if(!c){if(d=a.merge(d,A),p=a.atMedia(d),b(),r=In(e,g,h,p,o),x=r.axis.measureSize(e.getBoundingClientRect()),!p.active)return I();if(r.translate.to(r.location),v=O||v,m=s.init(v,R),p.loop){if(!r.slideLooper.canLoop()){I(),S({loop:!1},O),d=a.merge(d,{loop:!0});return}r.slideLooper.loop()}p.draggable&&g.offsetParent&&h.length&&r.dragHandler.addActivationEvents()}}function w(A,O){var E=P();I(),S(a.merge({startIndex:E},A),O),o.emit("reInit")}function I(){r.dragHandler.removeAllEvents(),r.animation.stop(),r.eventStore.removeAll(),r.translate.clear(),r.slideLooper.clear(),s.destroy()}function C(){c||(c=!0,t.removeAll(),I(),o.emit("destroy"))}function T(){var A=a.atMedia(d),O=!a.areEqual(A,p),E=r.axis.measureSize(e.getBoundingClientRect()),y=x!==E,N=s.haveChanged();(y||O||N)&&w(),o.emit("resize")}function z(A){var O=r[A?"target":"location"].get(),E=p.loop?"removeOffset":"constrain";return r.slidesInView.check(r.limit[E](O))}function q(A){var O=z(A);return r.slideIndexes.filter(function(E){return O.indexOf(E)===-1})}function _(A,O,E){!p.active||c||(r.scrollBody.useBaseMass().useSpeed(O?100:p.speed),r.scrollTo.index(A,E||0))}function W(A){var O=r.index.clone().add(1);_(O.get(),A===!0,-1)}function $(A){var O=r.index.clone().add(-1);_(O.get(),A===!0,1)}function U(){var A=r.index.clone().add(1);return A.get()!==P()}function V(){var A=r.index.clone().add(-1);return A.get()!==P()}function L(){return r.scrollSnaps.map(r.scrollProgress.get)}function Q(){return r.scrollProgress.get(r.location.get())}function P(){return r.index.get()}function F(){return r.indexPrevious.get()}function J(){return r.dragHandler.clickAllowed()}function ne(){return m}function ie(){return r}function re(){return e}function X(){return g}function B(){return h}var R={canScrollNext:U,canScrollPrev:V,clickAllowed:J,containerNode:X,internalEngine:ie,destroy:C,off:f,on:l,plugins:ne,previousScrollSnap:F,reInit:u,rootNode:re,scrollNext:W,scrollPrev:$,scrollProgress:Q,scrollSnapList:L,scrollTo:_,selectedScrollSnap:P,slideNodes:B,slidesInView:z,slidesNotInView:q};return S(n,i),t.add(window,"resize",T),setTimeout(function(){return o.emit("init")},0),R}ae.globalOptions=void 0;ae.optionsHandler=Ae;function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Be(e){return e.concat().sort(function(n,i){return n.name>i.name?1:-1}).map(function(n){return n.options})}function Nn(e,n){if(e.length!==n.length)return!1;var i=ae.optionsHandler().areEqual,t=Be(e),a=Be(n);return t.every(function(s,o){var l=a[o];return i(s,l)})}function Ie(e,n){e===void 0&&(e={}),n===void 0&&(n=[]);var i=k.useRef(ae.optionsHandler()),t=k.useRef(e),a=k.useRef(n),s=k.useState(),o=s[0],l=s[1],f=k.useState(),u=f[0],c=f[1],r=k.useCallback(function(){o&&o.reInit(t.current,a.current)},[o]);return k.useEffect(function(){if(Mn()&&u){ae.globalOptions=Ie.globalOptions;var d=ae(u,t.current,a.current);return l(d),function(){return d.destroy()}}else l(void 0)},[u,l]),k.useEffect(function(){i.current.areEqual(t.current,e)||(t.current=e,r())},[e,r]),k.useEffect(function(){Nn(a.current,n)||(a.current=n,r())},[n,r]),[c,o]}Ie.globalOptions=void 0;const[Dn,Ln]=Xe("Carousel component was not found in tree");var Ce={root:"m_17884d0f",viewport:"m_a2dae653",container:"m_fcd81474",controls:"m_39bc3463",control:"m_64f58e10",indicators:"m_71ea3ab1",indicator:"m_eae68602",slide:"m_d98df724"};const Bn={},Oe=ze((e,n)=>{const{classNames:i,className:t,style:a,styles:s,vars:o,mod:l,...f}=Pe("CarouselSlide",Bn,e),u=Ln();return K.jsx(je,{ref:n,mod:[{orientation:u.orientation},l],...u.getStyles("slide",{className:t,style:a,classNames:i,styles:s}),...f})});Oe.classes=Ce;Oe.displayName="@mantine/carousel/CarouselSlide";function kn({slideGap:e,slideSize:n,selector:i}
1){const t=Ge(),a=Ue({"--carousel-slide-gap":pe(Me(e)),"--carousel-slide-size":xe(Me(n))}),s=Se(t.breakpoints).reduce((f,u)=>(f[u]||(f[u]={}),typeof e=="object"&&e[u]!==void 0&&(f[u]["--carousel-slide-gap"]=pe(e[u])),typeof n=="object"&&n[u]!==void 0&&(f[u]["--carousel-slide-size"]=pe(n[u])),f),{}),l=Ye(Se(s),t.breakpoints).filter(f=>Se(s[f.value]).length>0).map(f=>({query:`(min-width: ${t.breakpoints[f.value]})`,styles:s[f.value]}));return K.jsx(Ke,{styles:a,media:l,selector:i})}function ke({dir:e,orientation:n,direction:i}){return i==="previous"?n==="horizontal"?90*(e==="ltr"?1:-1):-180:n==="horizontal"?90*(e==="ltr"?-1:1):0}const zn={controlSize:26,controlsOffset:"sm",slideSize:"100%",slideGap:0,orientation:"horizontal",align:"center",slidesToScroll:1,includeGapInSize:!0,draggable:!0,dragFree:!1,loop:!1,speed:10,initialSlide:0,inViewThreshold:0,withControls:!0,withIndicators:!1,skipSnaps:!1,containScroll:"",withKeyboardEvents:!0},Pn=Je((e,{height:n,controlSize:i,controlsOffset:t})=>({root:{"--carousel-height":xe(n),"--carousel-control-size":xe(i),"--carousel-controls-offset":pe(t)}})),Te=ze((e,n)=>{const i=Pe("Carousel",zn,e),{classNames:t,className:a,style:s,styles:o,unstyled:l,vars:f,children:u,getEmblaApi:c,onNextSlide:r,onPreviousSlide:d,onSlideChange:p,nextControlProps:v,previousControlProps:m,controlSize:x,controlsOffset:g,slideSize:h,slideGap:b,orientation:S,height:w,align:I,slidesToScroll:C,includeGapInSize:T,draggable:z,dragFree:q,loop:_,speed:W,initialSlide:$,inViewThreshold:U,withControls:V,withIndicators:L,plugins:Q,nextControlIcon:P,previousControlIcon:F,skipSnaps:J,containScroll:ne,withKeyboardEvents:ie,mod:re,...X}=i,B=$e({name:"Carousel",classes:Ce,props:i,className:a,style:s,classNames:t,styles:o,unstyled:l,vars:f,varsResolver:Pn}),R=We(),{dir:A}=Qe(),[O,E]=Ie({axis:S==="horizontal"?"x":"y",direction:S==="horizontal"?A:void 0,startIndex:$,loop:_,align:I,slidesToScroll:C,draggable:z,dragFree:q,speed:W,inViewThreshold:U,skipSnaps:J,containScroll:ne},Q),[y,N]=k.useState(0),[G,M]=k.useState(0),H=k.useCallback(j=>E&&E.scrollTo(j),[E]),Y=k.useCallback(()=>{if(!E)return;const j=E.selectedScrollSnap();N(j),j!==y&&(p==null||p(j))},[E,N,p,y]),fe=k.useCallback(()=>{E==null||E.scrollPrev(),d==null||d()},[E]),ue=k.useCallback(()=>{E==null||E.scrollNext(),r==null||r()},[E]),he=k.useCallback(j=>{ie&&(j.key==="ArrowRight"&&(j.preventDefault(),ue()),j.key==="ArrowLeft"&&(j.preventDefault(),fe()))},[E]);k.useEffect(()=>{if(E)return c==null||c(E),Y(),M(E.scrollSnapList().length),E.on("select",Y),()=>{E.off("select",Y)}},[E,C,Y]),k.useEffect(()=>{E&&(E.reInit(),M(E.scrollSnapList().length),N(j=>Ze(j,0,k.Children.toArray(u).length-1)))},[k.Children.toArray(u).length,C]);const de=(E==null?void 0:E.canScrollPrev())||!1,ve=(E==null?void 0:E.canScrollNext())||!1,qe=Array(G).fill(0).map((j,Z)=>k.createElement(ye,{...B("indicator"),key:Z,"data-active":Z===y||void 0,"aria-hidden":!0,tabIndex:-1,onClick:()=>H(Z),"data-orientation":S}));return K.jsxs(Dn,{value:{getStyles:B,orientation:S},children:[K.jsx(kn,{...i,selector:`.${R}`}),K.jsxs(je,{ref:n,...B("root",{className:R}),...X,mod:[{orientation:S,"include-gap-in-size":T},re],onKeyDownCapture:he,children:[K.jsx("div",{...B("viewport"),ref:O,children:K.jsx("div",{...B("container"),"data-orientation":S,children:u})}),L&&K.jsx("div",{...B("indicators"),"data-orientation":S,children:qe}),V&&K.jsxs("div",{...B("controls"),"data-orientation":S,children:[K.jsx(ye,{...m,...B("control",{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),onClick:j=>{var Z;fe(),(Z=m==null?void 0:m.onClick)==null||Z.call(m,j)},"data-inactive":!de||void 0,tabIndex:de?0:-1,children:typeof F<"u"?F:K.jsx(Ne,{style:{transform:`rotate(${ke({dir:A,orientation:S,direction:"previous"})}deg)`}})}),K.jsx(ye,{...B("control",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),...v,onClick:j=>{var Z;ue(),(Z=v==null?void 0:v.onClick)==null||Z.call(v,j)},"data-inactive":!ve||void 0,tabIndex:ve?0:-1,children:typeof P<"u"?P:K.jsx(Ne,{style:{transform:`rotate(${ke({dir:A,orientation:S,direction:"next"})}deg)`}})})]})]})]})});Te.classes=Ce;Te.displayName="@mantine/carousel/Carousel";Te.Slide=Oe;var jn={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};
1function He(e){var n=ae.optionsHandler(),i=n.merge(jn,He.globalOptions),t,a,s,o=0,l=!1;function f(m){a=m,t=n.atMedia(v.options),l=t.jump,s=t.stopOnInteraction?u:r;var x=a.internalEngine().eventStore,g=a.rootNode(),h=t.rootNode&&t.rootNode(g)||g;a.on("pointerDown",s),t.stopOnInteraction||a.on("pointerUp",d),t.stopOnMouseEnter&&(x.add(h,"mouseenter",s),t.stopOnInteraction||x.add(h,"mouseleave",d)),x.add(document,"visibilitychange",function(){if(document.visibilityState==="hidden")return r();d()}),x.add(window,"pagehide",function(b){b.persisted&&r()}),t.playOnInit&&c()}function u(){a.off("pointerDown",s),t.stopOnInteraction||a.off("pointerUp",d),r(),o=0}function c(m){r(),typeof m<"u"&&(l=m),o=window.setTimeout(p,t.delay)}function r(){o&&window.clearTimeout(o)}function d(){o&&(r(),c())}function p(){var m=a.internalEngine().index,x=t.stopOnLastSnap&&m.get()===m.max;if(x)return u();a.canScrollNext()?a.scrollNext(l):a.scrollTo(0,l),c()}var v={name:"autoplay",options:n.merge(i,e),init:f,destroy:u,play:c,stop:r,reset:d};return v}He.globalOptions=void 0;export{He as A,Te as C};

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.