vendor: 20,896 bytes, line 1
1import{r as n}from"./vendor-react-DImdwm7e.js";function t(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)||Array.isArray(n)}function e(n,o){const r=Object.keys(n),i=Object.keys(o);if(r.length!==i.length)return!1;return JSON.stringify(Object.keys(n.breakpoints||{}))===JSON.stringify(Object.keys(o.breakpoints||{}))&&r.every(r=>{const i=n[r],c=o[r];return"function"==typeof i?`${i}`==`${c}`:t(i)&&t(c)?e(i,c):i===c})}function o(n){return n.concat().sort((n,t)=>n.name>t.name?1:-1).map(n=>n.options)}function r(n){return"number"==typeof n}function i(n){return"string"==typeof n}function c(n){return"boolean"==typeof n}function s(n){return"[object Object]"===Object.prototype.toString.call(n)}function u(n){return Math.abs(n)}function a(n){return Math.sign(n)}function l(n,t){return u(n-t)}function d(n){return h(n).map(Number)}function f(n){return n[p(n)]}function p(n){return Math.max(0,n.length-1)}function g(n,t){return t===p(n)}function m(n,t=0){return Array.from(Array(n),(n,e)=>t+e)}function h(n){return Object.keys(n)}function y(n,t){return[n,t].reduce((n,t)=>(h(t).forEach(e=>{const o=n[e],r=t[e],i=s(o)&&s(r);n[e]=i?y(o,r):r}),n),{})}function S(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function b(){let n=[];const t={add:function(e,o,r,i={passive:!0}){let c;if("addEventListener"in e)e.addEventListener(o,r,i),c=()=>e.removeEventListener(o,r,i);else{const n=e;n.addListener(r),c=()=>n.removeListener(r)}return n.push(c),t},clear:function(){n=n.filter(n=>n())}};return t}function v(n,t,e,o){const r=b(),i=1e3/60;let c=null,s=0,u=0;function a(n){if(!u)return;c||(c=n,e(),e());const r=n-c;for(c=n,s+=r;s>=i;)e(),s-=i;o(s/i),u&&(u=t.requestAnimationFrame(a))}function l(){t.cancelAnimationFrame(u),c=null,s=0,u=0}return{init:function(){r.add(n,"visibilitychange",()=>{n.hidden&&(c=null,s=0)})},destroy:function(){l(),r.clear()},start:function(){u||(u=t.requestAnimationFrame(a))},stop:l,update:e,render:o}}function x(n=0,t=0){const e=u(n-t);function o(t){return t<n}function r(n){return n>t}function i(n){return o(n)||r(n)}return{length:e,max:t,min:n,constrain:function(e){return i(e)?o(e)?n:t:e},reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function E(n,t,e){const{constrain:o}=x(0,n),r=n+1;let i=c(t);function c(n){return e?u((r+n)%r):o(n)}function s(){return i}function a(){return E(n,s(),e)}const l={get:s,set:function(n){return i=c(n),l},add:function(n){return a().set(s()+n)},clone:a};return l}function w(n,t,e,o,r,i,s,d,f,p,g,m,h,y,v,E,w,O,D){const{cross:L,direction:I}=n,M=["INPUT","SELECT","TEXTAREA"],A={passive:!1},F=b(),N=b(),T=x(50,225).constrain(y.measure(20)),k={mouse:300,touch:400},P={mouse:500,touch:600},V=v?43:25;let H=!1,j=0,B=0,R=!1,z=!1,C=!1,U=!1;function $(n){if(!S(n,o)&&n.touches.length>=2)return G(n);const t=i.readPoint(n),e=i.readPoint(n,L),c=l(t,j),s=l(e,B);if(!z&&!U){if(!n.cancelable)return G(n);if(z=c>s,!z)return G(n)}const u=i.pointerMove(n);c>E&&(C=!0),p.useFriction(.3).useDuration(.75),d.start(),r.add(I(u)),n.preventDefault()}function G(n){const t=g.byDistance(0,!1).index!==m.get(),e=i.pointerUp(n)*(v?P:k)[U?"mouse":"touch"],o=function(n,t){const e=m.add(-1*a(n)),o=g.byDistance(n,!v).distance;return v||u(n)<T?o:w&&t?.5*o:g.byIndex(e.get(),0).distance}(I(e),t),r=function(n,t){if(0===n||0===t)return 0;if(u(n)<=u(t))return 0;const e=l(u(n),u(t));return u(e/n)}(e,o),c=V-10*r,s=O+r/50;z=!1,R=!1,N.clear(),p.useDuration(c).useFriction(s),f.distance(o,!v),U=!1,h.emit("pointerUp")}function W(n){C&&(n.stopPropagation(),n.preventDefault(),C=!1)}return{init:function(n){if(!D)return;function u(u){(c(D)||D(n,u))&&function(n){const c=S(n,o);if(U=c,C=v&&c&&!n.buttons&&H,H=l(r.get(),s.get())>=2,c&&0!==n.button)return;if(function(n){const t=n.nodeName||"";return M.includes(t)}(n.target))return;R=!0,i.pointerDown(n),p.useFriction(0).useDuration(0),r.set(s),function(){const n=U?e:t;N.add(n,"touchmove",$,A).add(n,"touchend",G).add(n,"mousemove",$,A).add(n,"mouseup",G)}(),j=i.readPoint(n),B=i.readPoint(n,L),h.emit("pointerDown")}(u)}const a=t;F.add(a,"dragstart",n=>n.preventDefault(),A).add(a,"touchmove",()=>{},A).add(a,"touchend",()=>{}).add(a,"touchstart",u).add(a,"mousedown",u).add(a,"touchcancel",G).add(a,"contextmenu",G).add(a,"click",W,!0)},destroy:function(){F.clear(),N.clear()},pointerDown:function(){return R}}}function O(n,t){let e,o;function r(n){return n.timeStamp}function i(e,o){const r="client"+("x"===(o||n.scroll)?"X":"Y");return(S(e,t)?e:e.touches[0])[r]}return{pointerDown:function(n){return e=n,o=n,i(n)},pointerMove:function(n){const t=i(n)-i(o),c=r(n)-r(e)>170;return o=n,c&&(e=n),t},pointerUp:function(n){if(!e||!o)return 0;const t=i(o)-i(e),c=r(n)-r(e),s=r(n)-r(o)>170,a=t/c;return c&&!s&&u(a)>.1?a:0},readPoint:i}}function D(n,t,e,o,r,i,s){const a=[n].concat(o);let l,d,f=[],p=!1;function g(n){return r.measureSize(s.measure(n))}return{init:function(r){i&&(d=g(n),f=o.map(g),l=new ResizeObserver(e=>{(c(i)||i(r,e))&&function(e){for(const i of e){if(p)return;const e=i.target===n,c=o.indexOf(i.target),s=e?d:f[c];if(u(g(e?n:o[c])-s)>=.5){r.reInit(),t.emit("resize");break}}}(e)}),e.requestAnimationFrame(()=>{a.forEach(n=>l.observe(n))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function L(n,t,e,o,r){const i=r.measure(10),c=r.measure(50),s=x(.1,.99);let a=!1;function l(){return!a&&(!!n.reachedAny(e.get())&&!!n.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(r){if(!l())return;const a=n.reachedMin(t.get())?"min":"max",d=u(n[a]-t.get()),f=e.get()-t.get(),p=s.constrain(d/c);e.subtract(f*p),!r&&u(f)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(n){a=!n}}}function I(n,t,e,o){const r=t.min+.1,i=t.max+.1,{reachedMin:c,reachedMax:s}=x(r,i);return{loop:function(t){if(!function(n){return 1===n?s(e.get()):-1===n&&c(e.get())}(t))return;const r=n*(-1*t);o.forEach(n=>n.add(r))}}}function M(n,t,e,o,r){const{reachedAny:i,removeOffset:c,constrain:s}=o;function l(n){return n.concat().sort((n,t)=>u(n)-u(t))[0]}function d(t,o){const r=[t,t+e,t-e];if(!n)return t;if(!o)return l(r);const i=r.filter(n=>a(n)===o);return i.length?l(i):f(r)-e}return{byDistance:function(e,o){const a=r.get()+e,{index:l,distance:f}=function(e){const o=n?c(e):s(e),r=t.map((n,t)=>({diff:d(n-o,0),index:t})).sort((n,t)=>u(n.diff)-u(t.diff)),{index:i}=r[0];return{index:i,distance:o}}(a),p=!n&&i(a);return!o||p?{index:l,distance:e}:{index:l,distance:e+d(t[l]-f,0)}},byIndex:function(n,e){return{index:n,distance:d(t[n]-r.get(),e)}},shortcut:d}}function A(n,t,e,o,i,s,u,a){const l={passive:!0,capture:!0};let d=0;function f(n){"Tab"===n.code&&(d=(new Date).getTime())}return{init:function(p){a&&(s.add(document,"keydown",f,!1),t.forEach((t,f)=>{s.add(t,"focus",t=>{(c(a)||a(p,t))&&function(t){if((new Date).getTime()-d>10)return;u.emit("slideFocusStart"),n.scrollLeft=0;const c=e.findIndex(n=>n.includes(t));r(c)&&(i.useDuration(0),o.index(c,0),u.emit("slideFocus"))}(f)},l)}))}}}function F(n){let t=n;function e(n){return r(n)?n:n.get()}return{get:function(){return t},set:function(n){t=e(n)},add:function(n){t+=e(n)},subtract:function(n){t-=e(n)}}}function N(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},o=t.style;let r=null,i=!1;return{clear:function(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const c=(s=n.direction(t),Math.round(100*s)/100);var s;c!==r&&(o.transform=e(c),r=c)},toggleActive:function(n){i=!n}}}function T(n,t,e,o,r,i,c,s,u){const a=d(r),l=d(r).reverse(),f=function(){const n=c[0];return m(g(l,n),e,!1)}().concat(function(){const n=t-c[0]-1;return m(g(a,n),-e,!0)}());function p(n,t){return n.reduce((n,t)=>n-r[t],t)}function g(n,t){return n.reduce((n,e)=>p(n,t)>0?n.concat([e]):n,[])}function m(r,c,a){const l=function(n){return i.map((e,r)=>({start:e-o[r]+.5+n,end:e+t-.5+n}))}(c);return r.map(t=>{const o=a?0:-e,r=a?e:0,i=a?"end":"start",c=l[t][i];return{index:t,loopPoint:c,slideLocation:F(-1),translate:N(n,u[t]),target:()=>s.get()>c?o:r}})}return{canLoop:function(){return f.every(({index:n})=>p(a.filter(t=>t!==n),t)<=.1)},clear:function(){f.forEach(n=>n.translate.clear())},loop:function(){f.forEach(n=>{const{target:t,translate:e,slideLocation:o}=n,r=t();r!==o.get()&&(e.to(r),o.set(r))})},loopPoints:f}}function k(n,t,e){let o,r=!1;return{init:function(i){e&&(o=new MutationObserver(n=>{r||(c(e)||e(i,n))&&function(n){for(const e of n)if("childList"===e.type){i.reInit(),t.emit("slidesChanged");break}}(n)}),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),r=!0}}}function P(n,t,e,o){const r={};let i,c=null,s=null,u=!1;return{init:function(){i=new IntersectionObserver(n=>{u||(n.forEach(n=>{const e=t.indexOf(n.target);r[e]=n}),c=null,s=null,e.emit("slidesInView"))},{root:n.parentElement,threshold:o}),t.forEach(n=>i.observe(n))},destroy:function(){i&&i.disconnect(),u=!0},get:function(n=!0){if(n&&c)return c;if(!n&&s)return s;const t=function(n){return h(r).reduce((t,e)=>{const o=parseInt(e),{isIntersecting:i}=r[o];return(n&&i||!n&&!i)&&t.push(o),t},[])}(n);return n&&(c=t),n||(s=t),t}}}function V(n,t,e,o,i,c,s,a,l){const{startEdge:g,endEdge:m,direction:h}=n,y=r(e);return{groupSlides:function(n){return y?function(n,t){return d(n).filter(n=>n%t===0).map(e=>n.slice(e,e+t))}(n,e):function(n){return n.length?d(n).reduce((e,r,d)=>{const y=f(e)||0,S=0===y,b=r===p(n),v=i[g]-c[y][g],x=i[g]-c[r][m],E=!o&&S?h(s):0,w=u(x-(!o&&b?h(a):0)-(v+E));return d&&w>t+l&&e.push(r),b&&e.push(n.length),e},[]).map((t,e,o)=>{const r=Math.max(o[e-1]||0);return n.slice(r,t)}):[]}(n)}}}function H(n,t,e,o,r,c,s){const{align:h,axis:y,direction:S,startIndex:H,loop:j,duration:B,dragFree:R,dragThreshold:z,inViewThreshold:C,slidesToScroll:U,skipSnaps:$,containScroll:G,watchResize:W,watchSlides:q,watchDrag:J,watchFocus:Q}=c,X={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:o,offsetHeight:r}=n;return{top:t,right:e+o,bottom:t+r,left:e,width:o,height:r}}},Y=X.measure(t),K=e.map(X.measure),Z=function(n,t){const e="rtl"===t,o="y"===n,r=!o&&e?-1:1;return{scroll:o?"y":"x",cross:o?"x":"y",startEdge:o?"top":e?"right":"left",endEdge:o?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return o?t:e},direction:function(n){return n*r}}}(y,S),_=Z.measureSize(Y),nn=function(n){return{measure:function(t){return n*(t/100)}}}(_),tn=function(n,t){const e={start:function(){return 0},center:function(n){return o(n)/2},end:o};function o(n){return t-n}return{measure:function(o,r){return i(n)?e[n](o):n(t,o,r)}}}(h,_),en=!j&&!!G,on=j||!!G,{slideSizes:rn,slideSizesWithGaps:cn,startGap:sn,endGap:un}=function(n,t,e,o,r,i){const{measureSize:c,startEdge:s,endEdge:a}=n,l=e[0]&&r,d=function(){if(!l)return 0;const n=e[0];return u(t[s]-n[s])}(),p=function(){if(!l)return 0;const n=i.getComputedStyle(f(o));return parseFloat(n.getPropertyValue(`margin-${a}`))}(),m=e.map(c),h=e.map((n,t,e)=>{const o=!t,r=g(e,t);return o?m[t]+d:r?m[t]+p:e[t+1][s]-n[s]}).map(u);return{slideSizes:m,slideSizesWithGaps:h,startGap:d,endGap:p}}(Z,Y,K,e,on,r),an=V(Z,_,U,j,Y,K,sn,un,2),{snaps:ln,snapsAligned:dn}=function(n,t,e,o,r){const{startEdge:i,endEdge:c}=n,{groupSlides:s}=r,a=s(o).map(n=>f(n)[c]-n[0][i]).map(u).map(t.measure),l=o.map(n=>e[i]-n[i]).map(n=>-u(n)),d=s(l).map(n=>n[0]).map((n,t)=>n+a[t]);return{snaps:l,snapsAligned:d}}(Z,tn,Y,K,an),fn=-f(ln)+f(cn),{snapsContained:pn,scrollContainLimit:gn}=function(n,t,e,o,r){const i=x(-t+n,0),c=e.map((n,t)=>{const{min:o,max:r}=i,c=i.constrain(n),s=!t,a=g(e,t);return s?r:a||u(o,c)?o:u(r,c)?r:c}).map(n=>parseFloat(n.toFixed(3))),s=function(){const n=c[0],t=f(c);return x(c.lastIndexOf(n),c.indexOf(t)+1)}();function u(n,t){return l(n,t)<=1}return{snapsContained:function(){if(t<=n+r)return[i.max];if("keepSnaps"===o)return c;const{min:e,max:u}=s;return c.slice(e,u)}(),scrollContainLimit:s}}(_,fn,dn,G,2),mn=en?pn:dn,{limit:hn}=function(n,t,e){const o=t[0];return{limit:x(e?o-n:f(t),o)}}(fn,mn,j),yn=E(p(mn),H,j),Sn=yn.clone(),bn=d(e),vn=v(o,r,()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:o}})=>{o||e.constrain(n.pointerDown()),t.seek()})(Pn),n=>(({scrollBody:n,translate:t,location:e,offsetLocation:o,previousLocation:r,scrollLooper:i,slideLooper:c,dragHandler:s,animation:u,eventHandler:a,scrollBounds:l,options:{loop:d}},f)=>{const p=n.settled(),g=!l.shouldConstrain(),m=d?p:p&&g,h=m&&!s.pointerDown();h&&u.stop();const y=e.get()*f+r.get()*(1-f);o.set(y),d&&(i.loop(n.direction()),c.loop()),t.to(o.get()),h&&a.emit("settle"),m||a.emit("scroll")})(Pn,n)),xn=mn[yn.get()],En=F(xn),wn=F(xn),On=F(xn),Dn=F(xn),Ln=function(n,t,e,o,r,i){let c=0,s=0,l=r,d=i,f=n.get(),p=0;function g(n){return l=n,h}function m(n){return d=n,h}const h={direction:function(){return s},duration:function(){return l},velocity:function(){return c},seek:function(){const t=o.get()-n.get();let r=0;return l?(e.set(n),c+=t/l,c*=d,f+=c,n.add(c),r=f-p):(c=0,e.set(o),n.set(o),r=t),s=a(r),p=f,h},settled:function(){return u(o.get()-t.get())<.001},useBaseFriction:function(){return m(i)},useBaseDuration:function(){return g(r)},useFriction:m,useDuration:g};return h}(En,On,wn,Dn,B,.68),In=M(j,mn,fn,hn,Dn),Mn=function(n,t,e,o,r,i,c){function s(r){const s=r.distance,u=r.index!==t.get();i.add(s),s&&(o.duration()?n.start():(n.update(),n.render(1),n.update())),u&&(e.set(t.get()),t.set(r.index),c.emit("select"))}return{distance:function(n,t){s(r.byDistance(n,t))},index:function(n,e){const o=t.clone().set(n);s(r.byIndex(o.get(),e))}}}(vn,yn,Sn,Ln,In,Dn,s),An=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(hn),Fn=b(),Nn=P(t,e,s,C),{slideRegistry:Tn}=function(n,t,e,o,r,i){const{groupSlides:c}=r,{min:s,max:u}=o;return{slideRegistry:function(){const o=c(i),r=!n||"keepSnaps"===t;return 1===e.length?[i]:r?o:o.slice(s,u).map((n,t,e)=>{const o=!t,r=g(e,t);return o?m(f(e[0])+1):r?m(p(i)-f(e)[0]+1,f(e)[0]):n})}()}}(en,G,mn,gn,an,bn),kn=A(n,e,Tn,Mn,Ln,Fn,s,Q),Pn={ownerDocument:o,ownerWindow:r,eventHandler:s,containerRect:Y,slideRects:K,animation:vn,axis:Z,dragHandler:w(Z,n,o,r,Dn,O(Z,r),En,vn,Mn,Ln,In,yn,s,nn,R,z,$,.68,J),eventStore:Fn,percentOfView:nn,index:yn,indexPrevious:Sn,limit:hn,location:En,offsetLocation:On,previousLocation:wn,options:c,resizeHandler:D(t,s,r,e,Z,W,X),scrollBody:Ln,scrollBounds:L(hn,On,Dn,Ln,nn),scrollLooper:I(fn,hn,On,[En,On,wn,Dn]),scrollProgress:An,scrollSnapList:mn.map(An.get),scrollSnaps:mn,scrollTarget:In,scrollTo:Mn,slideLooper:T(Z,_,fn,rn,cn,ln,mn,On,e),slideFocus:kn,slidesHandler:k(t,s,q),slidesInView:Nn,slideIndexes:bn,slideRegistry:Tn,slidesToScroll:an,target:Dn,translate:N(Z,t)};return Pn}const j={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 B(n){function t(n,t){return y(n,t||{})}return{mergeOptions:t,optionsAtMedia:function(e){const o=e.breakpoints||{},r=h(o).filter(t=>n.matchMedia(t).matches).map(n=>o[n]).reduce((n,e)=>t(n,e),{});return t(e,r)},optionsMediaQueries:function(t){return t.map(n=>h(n.breakpoints||{})).reduce((n,t)=>n.concat(t),[]).map(n.matchMedia)}}}function R(n,t,e){const o=n.ownerDocument,r=o.defaultView,c=B(r),s=function(n){let t=[];return{init:function(e,o){return t=o.filter(({options:t})=>!1!==n.optionsAtMedia(t).active),t.forEach(t=>t.init(e,n)),o.reduce((n,t)=>Object.assign(n,{[t.name]:t}),{})},destroy:function(){t=t.filter(n=>n.destroy())}}}(c),u=b(),a=function(){let n,t={};function e(n){return t[n]||[]}const o={init:function(t){n=t},emit:function(t){return e(t).forEach(e=>e(n,t)),o},off:function(n,r){return t[n]=e(n).filter(n=>n!==r),o},on:function(n,r){return t[n]=e(n).concat([r]),o},clear:function(){t={}}};return o}(),{mergeOptions:l,optionsAtMedia:d,optionsMediaQueries:f}=c,{on:p,off:g,emit:m}=a,h=M;let y,S,v,x,E=!1,w=l(j,R.globalOptions),O=l(w),D=[];function L(t){const e=H(n,v,x,o,r,t,a);if(t.loop&&!e.slideLooper.canLoop()){return L(Object.assign({},t,{loop:!1}))}return e}function I(t,e){E||(w=l(w,t),O=d(w),D=e||D,function(){const{container:t,slides:e}=O,o=i(t)?n.querySelector(t):t;v=o||n.children[0];const r=i(e)?v.querySelectorAll(e):e;x=[].slice.call(r||v.children)}(),y=L(O),f([w,...D.map(({options:n})=>n)]).forEach(n=>u.add(n,"change",M)),O.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(T),y.eventHandler.init(T),y.resizeHandler.init(T),y.slidesHandler.init(T),y.options.loop&&y.slideLooper.loop(),v.offsetParent&&x.length&&y.dragHandler.init(T),S=s.init(T,D)))}function M(n,t){const e=N();A(),I(l({startIndex:e},n),t),a.emit("reInit")}function A(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),s.destroy(),u.clear()}function F(n,t,e){O.active&&!E&&(y.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),y.scrollTo.index(n,e||0))}function N(){return y.index.get()}const T={canScrollNext:function(){return y.index.add(1).get()!==N()},canScrollPrev:function(){return y.index.add(-1).get()!==N()},containerNode:function(){return v},internalEngine:function(){return y},destroy:function(){E||(E=!0,u.clear(),A(),a.emit("destroy"),a.clear())},off:g,on:p,emit:m,plugins:function(){return S},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:h,rootNode:function(){return n},scrollNext:function(n){F(y.index.add(1).get(),n,-1)},scrollPrev:function(n){F(y.index.add(-1).get(),n,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:F,selectedScrollSnap:N,slideNodes:function(){return x},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return I(t,e),setTimeout(()=>a.emit("init"),0),T}function z(t={},r=[]){const i=n.useRef(t),c=n.useRef(r),[s,u]=n.useState(),[a,l]=n.useState(),d=n.useCallback(()=>{s&&s.reInit(i.current,c.current)},[s]);return n.useEffect(()=>{e(i.current,t)||(i.current=t,d())},[t,d]),n.useEffect(()=>{(function(n,t){if(n.length!==t.length)return!1;const r=o(n),i=o(t);return r.every((n,t)=>e(n,i[t]))})(c.current,r)||(c.current=r,d())},[r,d]),n.useEffect(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){R.globalOptions=z.globalOptions;const n=R(a,i.current,c.current);return u(n),()=>n.destroy()}u(void 0)},[a,u]),[l,s]}function C(n={}){let t,e=[];const o=["select","slideFocus"];function r(){const{slideRegistry:n}=t.internalEngine(),o=n[t.selectedScrollSnap()];return o?o.map(n=>e[n]).reduce((n,t)=>Math.max(n,t),0):null}function i(){null!==r()&&(t.containerNode().style.height=`${r()}px`)}return{name:"autoHeight",options:n,init:function(n){t=n;const{options:{axis:r},slideRects:c}=t.internalEngine();"y"!==r&&(e=c.map(n=>n.height),o.forEach(n=>t.on(n,i)),i())},destroy:function(){o.forEach(n=>t.off(n,i));const n=t.containerNode();n.style.height="",n.getAttribute("style")||n.removeAttribute("style")}}}R.globalOptions=void 0,z.globalOptions=void 0,C.globalOptions=void 0;const U={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function $(n={}){let t,e,o,r,i=null,c=0,s=!1,u=!1,a=!1,l=!1;function d(){o||(g()?a=!0:(s||e.emit("autoplay:play"),function(){const{ownerWindow:n}=e.internalEngine();n.clearTimeout(c),c=n.setTimeout(b,r[e.selectedScrollSnap()]),i=(new Date).getTime(),e.emit("autoplay:timerset")}(),s=!0))}function f(){o||(s&&e.emit("autoplay:stop"),function(){const{ownerWindow:n}=e.internalEngine();n.clearTimeout(c),c=0,i=null,e.emit("autoplay:timerstopped")}(),s=!1)}function p(){if(g())return a=s,f();a&&d()}function g(){const{ownerDocument:n}=e.internalEngine();return"hidden"===n.visibilityState}function m(){u||f()}function h(){u||d()}function y(){u=!0,f()}function S(){u=!1,d()}function b(){const{index:n}=e.internalEngine(),o=n.clone().add(1).get(),r=e.scrollSnapList().length-1,i=t.stopOnLastSnap&&o===r;if(e.canScrollNext()?e.scrollNext(l):e.scrollTo(0,l),e.emit("autoplay:select"),i)return f();d()}return{name:"autoplay",options:n,init:function(i,c){e=i;const{mergeOptions:s,optionsAtMedia:u}=c,a=s(U,$.globalOptions),g=s(a,n);if(t=u(g),e.scrollSnapList().length<=1)return;l=t.jump,o=!1,r=function(n,t){const e=n.scrollSnapList();return"number"==typeof t?e.map(()=>t):t(e,n)}(e,t.delay);const{eventStore:b,ownerDocument:v}=e.internalEngine(),x=!!e.internalEngine().options.watchDrag,E=function(n,t){const e=n.rootNode();return t&&t(e)||e}(e,t.rootNode);b.add(v,"visibilitychange",p),x&&e.on("pointerDown",m),x&&!t.stopOn
1Interaction&&e.on("pointerUp",h),t.stopOnMouseEnter&&b.add(E,"mouseenter",y),t.stopOnMouseEnter&&!t.stopOnInteraction&&b.add(E,"mouseleave",S),t.stopOnFocusIn&&e.on("slideFocusStart",f),t.stopOnFocusIn&&!t.stopOnInteraction&&b.add(e.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){e.off("pointerDown",m).off("pointerUp",h).off("slideFocusStart",f),f(),o=!0,s=!1},play:function(n){void 0!==n&&(l=n),d()},stop:function(){s&&f()},reset:function(){s&&d()},isPlaying:function(){return s},timeUntilNext:function(){return i?r[e.selectedScrollSnap()]-((new Date).getTime()-i):null}}}$.globalOptions=void 0;const G={active:!0,breakpoints:{},snapped:"is-snapped",inView:"is-in-view",draggable:"is-draggable",dragging:"is-dragging",loop:"is-loop"};function W(n){return(Array.isArray(n)?n:[n]).filter(Boolean)}function q(n,t){n&&t.length&&n.classList.remove(...t)}function J(n,t){n&&t.length&&n.classList.add(...t)}function Q(n={}){let t,e,o,r,i=[],c=[];const s=["select"],u=["pointerDown","pointerUp"],a=["slidesInView"],l={snapped:[],inView:[],draggable:[],dragging:[],loop:[]};function d(n,t){("pointerDown"===t?J:q)(o,l.dragging)}function f(n=[],t=[],e){const o=t.map(n=>r[n]),i=n.map(n=>r[n]);return o.forEach(n=>q(n,e)),i.forEach(n=>J(n,e)),n}function p(){const{slideRegistry:n}=e.internalEngine(),t=n[e.selectedScrollSnap()];i=f(t,i,l.snapped)}function g(){const n=e.slidesInView();c=f(n,c,l.inView)}return{name:"classNames",options:n,init:function(i,c){e=i;const{mergeOptions:f,optionsAtMedia:m}=c,h=f(G,Q.globalOptions),y=f(h,n);t=m(y),o=e.rootNode(),r=e.slideNodes();const{watchDrag:S,loop:b}=e.internalEngine().options,v=!!S;t.loop&&b&&(l.loop=W(t.loop),J(o,l.loop)),t.draggable&&v&&(l.draggable=W(t.draggable),J(o,l.draggable)),t.dragging&&(l.dragging=W(t.dragging),u.forEach(n=>
1e.on(n,d))),t.snapped&&(l.snapped=W(t.snapped),s.forEach(n=>e.on(n,p)),p()),t.inView&&(l.inView=W(t.inView),a.forEach(n=>e.on(n,g)),g())},destroy:function(){u.forEach(n=>e.off(n,d)),s.forEach(n=>e.off(n,p)),a.forEach(n=>e.off(n,g)),q(o,l.loop),q(o,l.draggable),q(o,l.dragging),f([],i,l.snapped),f([],c,l.inView),Object.keys(l).forEach(n=>{l[n]=[]})}}}function X(n,t,e){return Math.min(Math.max(n,t),e)}function Y(n){return"number"==typeof n&&!isNaN(n)}function K(n={}){let t,e,o,r,i=[],c=0,s=0,u=0,a=!1;function l(){g(t.selectedScrollSnap(),1)}function d(){a=!1}function f(){a=!1,c=0,s=0}function p(){const n=t.internalEngine().scrollBody.duration();s=n?0:1,a=!0,n||l()}function g(n,e){t.scrollSnapList().forEach((o,r)=>{const s=Math.abs(e),l=i[r],d=r===n,f=X(d?l+s:l-s,0,1);i[r]=f;const p=d&&a,g=t.previousScrollSnap();p&&(i[g]=1-f),d&&function(n,e){const{index:o,dragHandler:r,scrollSnaps:i}=t.internalEngine(),s=r.pointerDown(),a=1/(i.length-1);let l=n,d=s?t.selectedScrollSnap():t.previousScrollSnap();if(s&&l===d){const n=-1*Math.sign(c);l=d,d=o.clone().set(d).add(n).get()}const f=d*a,p=(l-d)*a;u=f+p*e}(n,f),function(n){const e=t.internalEngine().slideRegistry[n],{scrollSnaps:o,containerRect:r}=t.internalEngine(),c=i[n];e.forEach(e=>{const i=t.slideNodes()[e].style,s=parseFloat(c.toFixed(2)),u=s>0,a=function(n){const{axis:e}=t.internalEngine();return`translate${e.scroll.toUpperCase()}(${e.direction(n)}px)`}(u?o[n]:r.width+2);u&&(i.transform=a),i.opacity=s.toString(),i.pointerEvents=c>.5?"auto":"none",u||(i.transform=a)})}(r)})}function m(){const{dragHandler:n,index:e,scrollBody:o}=t.internalEngine(),r=t.selectedScrollSnap();if(!n.pointerDown())return r;const i=Math.sign(o.velocity()),s=Math.sign(c),u=e.clone().set(r).add(-1*i).get();return i&&s?s===i?u:r:null}function h(n){const{dragHandler:o,scrollBody:r}=n.internalEngine(),u=o.pointerDown(),a=r.velocity(),l=r.duration(),d=m(),f=!Y(d);if(u){if(!a)return;c+=a,s=Math.abs(a/e),function(n){const{scrollSnaps:e,location:o,target:r}=t.internalEngine();!Y(n)||i[n]<.5||(o.set(e[n]),r.set(o))}(d)}if(!u){if(!l||f)return;s+=(1-i[d])/l,s*=.68}f||g(d,s)}function y(){const{target:n,location:e}=t.internalEngine(),o=n.get()-e.get(),r=Math.abs(o)>=1,c=m(),s=!Y(c);return h(t),!s&&!r&&i[c]>.999}function S(){return u}return{name:"fade",options:n,init:function(n){t=n;const c=t.selectedScrollSnap(),{scrollBody:s,containerRect:u,axis:g}=t.internalEngine(),m=g.measureSize(u);e=X(.75*m,200,500),a=!1,i=t.scrollSnapList().map((n,t)=>t===c?1:0),o=s.settled,r=t.scrollProgress,s.settled=y,t.scrollProgress=S,t.on("select",p).on("slideFocus",l).on("pointerDown",f).on("pointerUp",d),function(){const{translate:n,slideLooper:e}=t.internalEngine();n.clear(),n.toggleActive(!1),e.loopPoints.forEach(({translate:n})=>{n.clear(),n.toggleActive(!1)})}(),l()},destroy:function(){const{scrollBody:n}=t.internalEngine();n.settled=o,t.scrollProgress=r,t.off("select",p).off("slideFocus",l).off("pointerDown",f).off("pointerUp",d),t.slideNodes().forEach(n=>{const t=n.style;t.opacity="",t.transform="",t.pointerEvents="",n.getAttribute("style")||n.removeAttribute("style")})}}}Q.globalOptions=void 0,K.globalOptions=void 0;export{C as A,Q as C,K as F,$ as a,z 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.