1import{r as W}from"./index-U_Q2k23_.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"felleskjopet-web@db2b0462a3eb2da9ee89aae961df6c97cc3c4cb1"}}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])}return n})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:felleskjopet-web":!0})}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="e0f2718d-555c-4a32-bfdb-3d6e222607c2",t._sentryDebugIdIdentifier="sentry-dbid-e0f2718d-555c-4a32-bfdb-3d6e222607c2")})()}catch{}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vt(t){return Wt(t)||Array.isArray(t)}function tn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tt(t,n){const o=Object.keys(t),r=Object.keys(n);if(o.length!==r.length)return!1;const i=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return i!==s?!1:o.every(e=>{const f=t[e],c=n[e];return typeof f=="function"?`${f}`==`${c}`:!Vt(f)||!Vt(c)?f===c:Tt(f,c)})}function jt(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function nn(t,n){if(t.length!==n.length)return!1;const o=jt(t),r=jt(n);return o.every((i,s)=>{const e=r[s];return Tt(i,e)})}function vt(t){return typeof t=="number"}function Lt(t){return typeof t=="string"}function wt(t){return typeof t=="boolean"}function zt(t){return Object.prototype.toString.call(t)==="[object Object]"}function O(t){return Math.abs(t)}function Mt(t){return Math.sign(t)}function ft(t,n){return O(t-n)}function en(t,n){if(t===0||n===0||O(t)<=O(n))return 0;const o=ft(O(t),O(n));return O(o/t)}function at(t){return lt(t).map(Number)}function z(t){return t[pt(t)]}function pt(t){return Math.max(0,t.length-1)}function At(t,n){return n===pt(t)}function Ht(t,n=0){return Array.from(Array(t),(o,r)=>n+r)}function lt(t){return Object.keys(t)}function Gt(t,n){return[t,n].reduce((o,r)=>(lt(r).forEach(i=>{const s=o[i],e=r[i],f=zt(s)&&zt(e);o[i]=f?Gt(s,e):e}),o),{})}function It(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function on(t,n){const o={start:r,center:i,end:s};function r(){return 0}function i(c){return s(c)/2}function s(c){return n-c}function e(c,u){return Lt(t)?o[t](c):t(n,c,u)}return{measure:e}}function dt(){let t=[];function n(i,s,e,f={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(s,e,f),c=()=>i.removeEventListener(s,e,f);else{const u=i;u.addListener(e),c=()=>u.removeListener(e)}return t.push(c),r}function o(){t=t.filter(i=>i())}const r={add:n,clear:o};return r}function rn(t,n,o,r){const i=dt(),s=1e3/60;let e=null,f=0,c=0;function u(){i.add(t,"visibilitychange",()=>{t.hidden&&d()})}function h(){E(),i.clear()}function l(m){if(!c)return;e||(e=m);const a=m-e;for(e=m,f+=a;f>=s;)o(s),f-=s;const y=f/s;r(y),c&&n.requestAnimationFrame(l)}function p(){c||(c=n.requestAnimationFrame(l))}function E(){n.cancelAnimationFrame(c),e=null,f=0,c=0}function d(){e=null,f=0}return{init:u,destroy:h,start:p,stop:E,update:()=>o(s),render:r}}function sn(t,n){const o=n==="rtl",r=t==="y",i=r?"y":"x",s=r?"x":"y",e=!r&&o?-1:1,f=h(),c=l();function u(d){const{height:g,width:m}=d;return r?g:m}function h(){return r?"top":o?"right":"left"}function l(){return r?"bottom":o?"left":"right"}function p(d){return d*e}return{scroll:i,cross:s,startEdge:f,endEdge:c,measureSize:u,direction:p}}function et(t=0,n=0){const o=O(t-n);function r(u){return u<t}function i(u){return u>n}function s(u){return r(u)||i(u)}function e(u){return s(u)?r(u)?t:n:u}function f(u){return o?u-o*Math.ceil((u-n)/o):u}return{length:o,max:n,min:t,constrain:e,reachedAny:s,reachedMax:i,reachedMin:r,removeOffset:f}}function Rt(t,n,o){const{constrain:r}=et(0,t),i=t+1;let s=e(n);function e(p){return o?O((i+p)%i):r(p)}function f(){return s}function c(p){return s=e(p),l}function u(p){return h().set(f()+p)}function h(){return Rt(t,f(),o)}const l={get:f,set:c,add:u,clone:h};return l}function cn(t,n,o,r,i,s,e,f,c,u,h,l,p,E,d,g,m,a,y){const{cross:S,direction:T}=t,A=["INPUT","SELECT","TEXTAREA"],v={passive:!1},x=dt(),L=dt(),I=et(50,225).constrain(E.measure(20)),w={mouse:300,touch:400},D={mouse:500,touch:600},N=d?43:25;let X=!1,V=0,_=0,tt=!1,q=!1,Y=!1,$=!1;function nt(b){if(!y)return;function M(k){(wt(y)||y(b,k))&&B(k)}const F=n;x.add(F,"dragstart",k=>k.preventDefault(),v).add(F,"touchmove",()=>{},v).add(F,"touchend",()=>{}).add(F,"touchstart",M).add(F,"mousedown",M).add(F,"touchcancel",C).add(F,"contextmenu",C).add(F,"click",rt,!0)}function U(){x.clear(),L.clear()}function ot(){const b=$?o:n;
vendor: 5,633 bytes, line 1
1L.add(b,"touchmove",H,v).add(b,"touchend",C).add(b,"mousemove",H,v).add(b,"mouseup",C)}function K(b){const M=b.nodeName||"";return A.includes(M)}function st(){return(d?D:w)[$?"mouse":"touch"]}function it(b,M){const F=l.add(Mt(b)*-1),k=h.byDistance(b,!d).distance;return d||O(b)<I?k:m&&M?k*.5:h.byIndex(F.get(),0).distance}function B(b){const M=It(b,r);$=M,Y=d&&M&&!b.buttons&&X,X=ft(i.get(),e.get())>=2,!(M&&b.button!==0)&&(K(b.target)||(tt=!0,s.pointerDown(b),u.useFriction(0).useDuration(0),i.set(e),ot(),V=s.readPoint(b),_=s.readPoint(b,S),p.emit("pointerDown")))}function H(b){if(!It(b,r)&&b.touches.length>=2)return C(b);const F=s.readPoint(b),k=s.readPoint(b,S),G=ft(F,V),Q=ft(k,_);if(!q&&!$&&(!b.cancelable||(q=G>Q,!q)))return C(b);const R=s.pointerMove(b);G>g&&(Y=!0),u.useFriction(.3).useDuration(.75),f.start(),i.add(T(R)),b.preventDefault()}function C(b){const F=h.byDistance(0,!1).index!==l.get(),k=s.pointerUp(b)*st(),G=it(T(k),F),Q=en(k,G),R=N-10*Q,J=a+Q/50;q=!1,tt=!1,L.clear(),u.useDuration(R).useFriction(J),c.distance(G,!d),$=!1,p.emit("pointerUp")}function rt(b){Y&&(b.stopPropagation(),b.preventDefault(),Y=!1)}function j(){return tt}return{init:nt,destroy:U,pointerDown:j}}function un(t,n){let r,i;function s(l){return l.timeStamp}function e(l,p){const d=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(It(l,n)?l:l.touches[0])[d]}function f(l){return r=l,i=l,e(l)}function c(l){const p=e(l)-e(i),E=s(l)-s(r)>170;return i=l,E&&(r=l),p}function u(l){if(!r||!i)return 0;const p=e(i)-e(r),E=s(l)-s(r),d=s(l)-s(i)>170,g=p/E;return E&&!d&&O(g)>.1?g:0}return{pointerDown:f,pointerMove:c,pointerUp:u,readPoint:e}}function fn(){function t(o){const{offsetTop:r,offsetLeft:i,offsetWidth:s,offsetHeight:e}=o;return{top:r,right:i+s,bottom:r+e,left:i,width:s,height:e}}return{measure:t}}function an(t){function n(r){return t*(r/100)}return{measure:n}}function ln(t,n,o,r,i,s,e){const f=[t].concat(r);let c,u,h=[],l=!1;function p(m){return i.measureSize(e.measure(m))}function E(m){if(!s)return;u=p(t),h=r.map(p);function a(y){for(const S of y){if(l)return;const T=S.target===t,A=r.indexOf(S.target),v=T?u:h[A],x=p(T?t:r[A]);if(O(x-v)>=.5){m.reInit(),n.emit("resize");break}}}c=new ResizeObserver(y=>{(wt(s)||s(m,y))&&a(y)}),o.requestAnimationFrame(()=>{f.forEach(y=>c.observe(y))})}function d(){l=!0,c&&c.disconnect()}return{init:E,destroy:d}}function dn(t,n,o,r,i,s){let e=0,f=0,c=i,u=s,h=t.get(),l=0;function p(v){const x=v/1e3,L=c*x,I=r.get()-t.get(),w=!c;let D=0;return w?(e=0,o.set(r),t.set(r),D=I):(o.set(t),e+=I/L,e*=u,h+=e,t.add(e*x),D=h-l),f=Mt(D),l=h,A}function E(){const v=r.get()-n.get();return O(v)<.001}function d(){return c}function g(){return f}function m(){return e}function a(){return S(i)}function y(){return T(s)}function S(v){return c=v,A}function T(v){return u=v,A}const A={direction:g,duration:d,velocity:m,seek:p,settled:E,useBaseFriction:y,useBaseDuration:a,useFriction:T,useDuration:S};return A}function pn(t,n,o,r,i){const s=i.measure(10),e=i.measure(50),f=et(.1,.99);let c=!1;function u(){return!(c||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function h(E){if(!u())return;const d=t.reachedMin(n.get())?"min":"max",g=O(t[d]-n.get()),m=o.get()-n.get(),a=f.constrain(g/e);o.subtract(m*a),!E&&O(m)<s&&(o.set(t.constrain(o.get())),r.useDuration(25).useBaseFriction())}function l(E){c=!E}return{shouldConstrain:u,constrain:h,toggleActive:l}}function gn(t,n,o,r,i){const s=et(-n+t,0),e=l(),f=h(),c=p();function u(d,g){return ft(d,g)<1}function h(){const d=e[0],g=z(e),m=e.lastIndexOf(d),a=e.indexOf(g)+1;return et(m,a)}function l(){return o.map((d,g)=>{const{min:m,max:a}=s,y=s.constrain(d),S=!g,T=At(o,g);return S?a:T||u(m,y)?m:u(a,y)?a:y}).map(d=>parseFloat(d.toFixed(3)))}function p(){if(n<=t+i)return[s.max];if(r==="keepSnaps")return e;const{min:d,max:g}=f;return e.slice(d,g)}return{snapsContained:c,scrollContainLimit:f}}function mn(t,n,o){const r=n[0],i=o?r-t:z(n);return{limit:et(i,r)}}function hn(t,n,o,r){const s=n.min+.1,e=n.max+.1,{reachedMin:f,reachedMax:c}=et(s,e);function u(p){return p===1?c(o.get()):p===-1?f(o.get()):!1}function h(p){if(!u(p))return;const E=t*(p*-1);r.forEach(d=>d.add(E))}return{loop:h}}function yn(t){const{max:n,length:o}=t;function r(s){const e=s-n;return o?e/-o:0}return{get:r}}function bn(t,n,o,r,i){const{startEdge:s,endEdge:e}=t,{groupSlides:f}=i,c=l().map(n.measure),u=p(),h=E();function l(){return f(r).map(g=>z(g)[e]-g[0][s]).map(O)}function p(){return r.map(g=>o[s]-g[s]).map(g=>-O(g))}function E(){return f(u).map(g=>g[0]).map((g,m)=>g+c[m])}return{snaps:u,snapsAligned:h}}function Sn(t,n,o,r,i,s){const{groupSlides:e}=i,{min:f,max:c}=r,u=h();function h(){const p=e(s),E=!t||n==="keepSnaps";return o.length===1?[s]:E?p:p.slice(f,c).map((d,g,m)=>{const a=!g,y=At(m,g);if(a){const S=z(m[0])+1;return Ht(S)}if(y){const S=pt(s)-z(m)[0]+1;return Ht(S,z(m)[0])}return d})}return{slideRegistry:u}}function En(t,n,o,r,i){const{reachedAny:s,removeOffset:e,constrain:f}=r;function c(d){return d.concat().sort((g,m)=>O(g)-O(m))[0]}function u(d){const g=t?e(d):f(d),m=n.map((y,S)=>({diff:h(y-g,0),index:S})).sort((y,S)=>O(y.diff)-O(S.diff)),{index:a}=m[0];return{index:a,distance:g}}function h(d,g){const m=[d,d+o,d-o];if(!t)return d;if(!g)return c(m);const a=m.filter(y=>Mt(y)===g);return a.length?c(a):z(m)-o}function l(d,g){const m=n[d]-i.get(),a=h(m,g);return{index:d,distance:a}}function p(d,g){const m=i.get()+d,{index:a,distance:y}=u(m),S=!t&&s(m);if(!g||S)return{index:a,distance:d};const T=n[a]-y,A=d+h(T,0);return{index:a,distance:A}}return{byDistance:p,byIndex:l,shortcut:h}}function xn(t,n,o,r,i,s,e){function f(l){const p=l.distance,E=l.index!==n.get();
1s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),E&&(o.set(n.get()),n.set(l.index),e.emit("select"))}function c(l,p){const E=i.byDistance(l,p);f(E)}function u(l,p){const E=n.clone().set(l),d=i.byIndex(E.get(),p);f(d)}return{distance:c,index:u}}function Ln(t,n,o,r,i,s,e){let f=0;function c(){s.add(document,"keydown",u,!1),n.forEach(h)}function u(p){p.code==="Tab"&&(f=new Date().getTime())}function h(p){const E=()=>{if(new Date().getTime()-f>10)return;t.scrollLeft=0;const m=n.indexOf(p),a=o.findIndex(y=>y.includes(m));vt(a)&&(i.useDuration(0),r.index(a,0),e.emit("slideFocus"))};s.add(p,"focus",E,{passive:!0,capture:!0})}return{init:c}}function ut(t){let n=t;function o(){return n}function r(c){n=e(c)}function i(c){n+=e(c)}function s(c){n-=e(c)}function e(c){return vt(c)?c:c.get()}return{get:o,set:r,add:i,subtract:s}}function _t(t,n){const o=t.scroll==="x"?s:e,r=n.style;let i=!1;function s(l){return`translate3d(${l}px,0px,0px)`}function e(l){return`translate3d(0px,${l}px,0px)`}function f(l){i||(r.transform=o(t.direction(l)))}function c(l){i=!l}function u(){i||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:u,to:f,toggleActive:c}}function In(t,n,o,r,i,s,e,f,c){const h=at(i),l=at(i).reverse(),p=a().concat(y());function E(x,L){return x.reduce((I,w)=>I-i[w],L)}function d(x,L){return x.reduce((I,w)=>E(I,L)>0?I.concat([w]):I,[])}function g(x){return s.map((L,I)=>({start:L-r[I]+.5+x,end:L+n-.5+x}))}function m(x,L,I){const w=g(L);return x.map(D=>{const N=I?0:-o,X=I?o:0,V=I?"end":"start",_=w[D][V];return{index:D,loopPoint:_,slideLocation:ut(-1),translate:_t(t,c[D]),target:()=>f.get()>_?N:X}})}function a(){const x=e[0],L=d(l,x);return m(L,o,!1)}function y(){const x=n-e[0]-1,L=d(h,x);return m(L,-o,!0)}function S(){return p.every(({index:x})=>{const L=h.filter(I=>I!==x);return E(L,n)<=.1})}function T(){p.forEach(x=>{const{target:L,translate:I,slideLocation:w}=x,D=L();D!==w.get()&&(I.to(D),w.set(D))})}function A(){p.forEach(x=>x.translate.clear())}return{canLoop:S,clear:A,loop:T,loopPoints:p}}function Tn(t,n,o){let r,i=!1;function s(c){if(!o)return;function u(h){for(const l of h)if(l.type==="childList"){c.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(h=>{i||(wt(o)||o(c,h))&&u(h)}),r.observe(t,{childList:!0})}function e(){r&&r.disconnect(),i=!0}return{init:s,destroy:e}}function vn(t,n,o,r){const i={};let s=null,e=null,f,c=!1;function u(){f=new IntersectionObserver(d=>{c||(d.forEach(g=>{const m=n.indexOf(g.target);i[m]=g}),s=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:r}
vendor: 4,240 bytes, line 1
1),n.forEach(d=>f.observe(d))}function h(){f&&f.disconnect(),c=!0}function l(d){return lt(i).reduce((g,m)=>{const a=parseInt(m),{isIntersecting:y}=i[a];return(d&&y||!d&&!y)&&g.push(a),g},[])}function p(d=!0){if(d&&s)return s;if(!d&&e)return e;const g=l(d);return d&&(s=g),d||(e=g),g}return{init:u,destroy:h,get:p}}function wn(t,n,o,r,i,s){const{measureSize:e,startEdge:f,endEdge:c}=t,u=o[0]&&i,h=d(),l=g(),p=o.map(e),E=m();function d(){if(!u)return 0;const y=o[0];return O(n[f]-y[f])}function g(){if(!u)return 0;const y=s.getComputedStyle(z(r));return parseFloat(y.getPropertyValue(`margin-${c}`))}function m(){return o.map((y,S,T)=>{const A=!S,v=At(T,S);return A?p[S]+h:v?p[S]+l:T[S+1][f]-y[f]}).map(O)}return{slideSizes:p,slideSizesWithGaps:E,startGap:h,endGap:l}}function Mn(t,n,o,r,i,s,e,f,c){const{startEdge:u,endEdge:h,direction:l}=t,p=vt(o);function E(a,y){return at(a).filter(S=>S%y===0).map(S=>a.slice(S,S+y))}function d(a){return a.length?at(a).reduce((y,S,T)=>{const A=z(y)||0,v=A===0,x=S===pt(a),L=i[u]-s[A][u],I=i[u]-s[S][h],w=!r&&v?l(e):0,D=!r&&x?l(f):0,N=O(I-D-(L+w));return T&&N>n+c&&y.push(S),x&&y.push(a.length),y},[]).map((y,S,T)=>{const A=Math.max(T[S-1]||0);return a.slice(A,y)}):[]}function g(a){return p?E(a,o):d(a)}return{groupSlides:g}}function An(t,n,o,r,i,s,e){const{align:f,axis:c,direction:u,startIndex:h,loop:l,duration:p,dragFree:E,dragThreshold:d,inViewThreshold:g,slidesToScroll:m,skipSnaps:a,containScroll:y,watchResize:S,watchSlides:T,watchDrag:A}=s,v=2,x=fn(),L=x.measure(n),I=o.map(x.measure),w=sn(c,u),D=w.measureSize(L),N=an(D),X=on(f,D),V=!l&&!!y,_=l||!!y,{slideSizes:tt,slideSizesWithGaps:q,startGap:Y,endGap:$}=wn(w,L,I,o,_,i),nt=Mn(w,D,m,l,L,I,Y,$,v),{snaps:U,snapsAligned:ot}=bn(w,X,L,I,nt),K=-z(U)+z(q),{snapsContained:st,scrollContainLimit:it}=gn(D,K,ot,y,v),B=V?st:ot,{limit:H}=mn(K,B,l),C=Rt(pt(B),h,l),rt=C.clone(),j=at(o),P=({dragHandler:Z,scrollBody:St,scrollBounds:Et,options:{loop:gt}},xt)=>{gt||Et.constrain(Z.pointerDown()),St.seek(xt)},b=({scrollBody:Z,translate:St,location:Et,offsetLocation:gt,scrollLooper:xt,slideLooper:Kt,dragHandler:Qt,animation:Jt,eventHandler:Ft,scrollBounds:Xt,options:{loop:kt}},Ct)=>{const Nt=Z.settled(),Yt=!Xt.shouldConstrain(),Bt=kt?Nt:Nt&&Yt;Bt&&!Qt.pointerDown()&&(Jt.stop(),Ft.emit("settle")),Bt||Ft.emit("scroll");const Zt=Et.get()*Ct+Q.get()*(1-Ct);gt.set(Zt),kt&&(xt.loop(Z.direction()),Kt.loop()),St.to(gt.get())},M=rn(r,i,Z=>P(bt,Z),Z=>b(bt,Z)),F=.68,k=B[C.get()],G=ut(k),Q=ut(k),R=ut(k),J=ut(k),ct=dn(G,R,Q,J,p,F),ht=En(l,B,K,H,J),yt=xn(M,C,rt,ct,ht,J,e),Dt=yn(H),Ot=dt(),$t=vn(n,o,e,g),{slideRegistry:Pt}=Sn(V,y,B,it,nt,j),Ut=Ln(t,o,Pt,yt,ct,Ot,e),bt={ownerDocument:r,ownerWindow:i,eventHandler:e,containerRect:L,slideRects:I,animation:M,axis:w,dragHandler:cn(w,t,r,i,J,un(w,i),G,M,yt,ct,ht,C,e,N,E,d,a,F,A),eventStore:Ot,percentOfView:N,index:C,indexPrevious:rt,limit:H,location:G,offsetLocation:R,previousLocation:Q,options:s,resizeHandler:ln(n,e,i,o,w,S,x),scrollBody:ct,scrollBounds:pn(H,R,J,ct,N),scrollLooper:hn(K,H,R,[G,R,Q,J]),scrollProgress:Dt,scrollSnapList:B.map(Dt.get),scrollSnaps:B,scrollTarget:ht,scrollTo:yt,slideLooper:In(w,D,K,tt,q,U,B,R,o),slideFocus:Ut,slidesHandler:Tn(n,e,T),slidesInView:$t,slideIndexes:j,slideRegistry:Pt,slidesToScroll:nt,target:J,translate:_t(w,n)};return bt}function Dn(){let t={},n;function o(u){n=u}function r(u){return t[u]||[]}function i(u){return r(u).forEach(h=>h(n,u)),c}function s(u,h){return t[u]=r(u).concat([h]),c}function e(u,h){return t[u]=r(u).filter(l=>l!==h),c}function f(){t={}}const c={init:o,emit:i,off:e,on:s,clear:f};return c}const On={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};function Pn(t){function n(s,e){return Gt(s,e||{})}function o(s){const e=s.breakpoints||{},f=lt(e).filter(c=>t.matchMedia(c).matches).map(c=>e[c]).reduce((c,u)=>n(c,u),{});return n(s,f)}function r(s){return s.map(e=>lt(e.breakpoints||{})).reduce((e,f)=>e.concat(f),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:r}}function Fn(t){let n=[];
vendor: 3,107 bytes, lines 1-2
1function o(s,e){return n=e.filter(({options:f})=>t.optionsAtMedia(f).active!==!1),n.forEach(f=>f.init(s,t)),e.reduce((f,c)=>Object.assign(f,{[c.name]:c}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:o,destroy:r}}function mt(t,n,o){const r=t.ownerDocument,i=r.defaultView,s=Pn(i),e=Fn(s),f=dt(),c=Dn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:l}=s,{on:p,off:E,emit:d}=c,g=D;let m=!1,a,y=u(On,mt.globalOptions),S=u(y),T=[],A,v,x;function L(){const{container:P,slides:b}=S;v=(Lt(P)?t.querySelector(P):P)||t.children[0];const F=Lt(b)?v.querySelectorAll(b):b;x=[].slice.call(F||v.children)}function I(P){const b=An(t,v,x,r,i,P,c);if(P.loop&&!b.slideLooper.canLoop()){const M=Object.assign({},P,{loop:!1});return I(M)}return b}function w(P,b){m||(y=u(y,P),S=h(y),T=b||T,L(),a=I(S),l([y,...T.map(({options:M})=>M)]).forEach(M=>f.add(M,"change",D)),S.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(),a.eventHandler.init(j),a.resizeHandler.init(j),a.slidesHandler.init(j),a.options.loop&&a.slideLooper.loop(),v.offsetParent&&x.length&&a.dragHandler.init(j),A=e.init(j,T)))}function D(P,b){const M=U();N(),w(u({startIndex:M},P),b),c.emit("reInit")}function N(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),e.destroy(),f.clear()}function X(){m||(m=!0,f.clear(),N(),c.emit("destroy"),c.clear())}function V(P,b,M){!S.active||m||(a.scrollBody.useBaseFriction().useDuration(b===!0?0:S.duration),a.scrollTo.index(P,M||0))}function _(P){const b=a.index.add(1).get();V(b,P,-1)}function tt(P){const b=a.index.add(-1).get();V(b,P,1)}function q(){return a.index.add(1).get()!==U()}function Y(){return a.index.add(-1).get()!==U()}function $(){return a.scrollSnapList}function nt(){return a.scrollProgress.get(a.location.get())}function U(){return a.index.get()}function ot(){return a.indexPrevious.get()}function K(){return a.slidesInView.get()}function st(){return a.slidesInView.get(!1)}function it(){return A}function B(){return a}function H(){return t}function C(){return v}function rt(){return x}const j={canScrollNext:q,canScrollPrev:Y,containerNode:C,internalEngine:B,destroy:X,off:E,on:p,emit:d,plugins:it,previousScrollSnap:ot,reInit:g,rootNode:H,scrollNext:_,scrollPrev:tt,scrollProgress:nt,scrollSnapList:$,scrollTo:V,selectedScrollSnap:U,slideNodes:rt,slidesInView:K,slidesNotInView:st};return w(n,o),setTimeout(()=>c.emit("init"),0),j}mt.globalOptions=void 0;function qt(t={},n=[]){const o=W.useRef(t),r=W.useRef(n),[i,s]=W.useState(),[e,f]=W.useState(),c=W.useCallback(()=>{i&&i.reInit(o.current,r.current)},[i]);return W.useEffect(()=>{if(tn()&&e){mt.globalOptions=qt.globalOptions;const u=mt(e,o.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[e,s]),W.useEffect(()=>{Tt(o.current,t)||(o.current=t,c())},[t,c]),W.useEffect(()=>{nn(r.current,n)||(r.current=n,c())},[n,c]),[f,i]}qt.globalOptions=void 0;export{qt as u}; 2//# sourceMappingURL=embla-carousel-react.esm-IJ4XojCc.js.map
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.