1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9395],{98095:function(e,t,i){"use strict";i.d(t,{default:function(){return r.a}});var s=i(93354),r=i.n(s)},93354:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return o}});let s=i(46118),r=i(12628),n=i(23815),a=s._(i(99737));function o(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=n.Image},47515:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let s=i(46058);function r(e){let{reason:t,children:i}=e;if("undefined"==typeof window)throw new s.BailoutToCSRError(t);return i}},17852:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return n}});let s=i(83959),r=i(7679);function n(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let i=(0,r.getExpectedRequestStore)("next/dynamic css"),n=[];if(i.reactLoadableManifest&&t){let e=i.reactLoadableManifest;for(let i of t){if(!e[i])continue;let t=e[i].files.filter(e=>e.endsWith(".css"));n.push(...t)}}return 0===n.length?null:(0,s.jsx)(s.Fragment,{children:n.map(e=>(0,s.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:i.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},60017:function(){},62890:function(e,t,i){"use strict";i.d(t,{p:function(){return s}});let s=(0,i(67394).createContext)({})},70847:function(e,t,i){"use strict";i.d(t,{O:function(){return s}});let s=(0,i(67394).createContext)(null)},11117:function(e,t,i){"use strict";i.d(t,{_:function(){return n}});var s=i(97943);let r=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function n(e,t,i,n){if(e===t&&i===n)return s.Z;let a=t=>(function(e,t,i,s,n){let a,o;let l=0;do(a=r(o=t+(i-t)/2,s,n)-e)>0?i=o:t=o;while(Math.abs(a)>1e-7&&++l<12);return o})(t,0,1,e,i);return e=>0===e||1===e?e:r(a(e),t,n)}},69210:function(e,t,i){"use strict";i.d(t,{Pn:function(){return o},Wi:function(){return a},frameData:function(){return l},S6:function(){return u}});var s=i(97943);class r{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let n=["prepare","read","update","preRender","render","postRender"],{schedule:a,cancel:o,state:l,steps:u}=function(e,t){let i=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},o=n.reduce((e,t)=>(e[t]=function(e){let t=new r,i=new r,s=0,n=!1,a=!1,o=new WeakSet,l={schedule:(e,r=!1,a=!1)=>{let l=a&&n,u=l?t:i;return r&&o.add(e),u.add(e)&&l&&n&&(s=t.order.length),e},cancel:e=>{i.remove(e),o.delete(e)},process:r=>{if(n){a=!0;return}if(n=!0,[t,i]=[i,t],i.clear(),s=t.order.length)for(let i=0;i<s;i++){let s=t.order[i];s(r),o.has(s)&&(l.schedule(s),e())}n=!1,a&&(a=!1,l.process(r))}};return l}(()=>i=!0),e),{}),l=e=>o[e].process(a),u=()=>{let r=performance.now();i=!1,a.delta=s?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,n.forEach(l),a.isProcessing=!1,i&&t&&(s=!1,e(u))},d=()=>{i=!0,s=!0,a.isProcessing||e(u)};return{schedule:n.reduce((e,t)=>{let s=o[t];return e[t]=(e,t=!1,r=!1)=>(i||d(),s.schedule(e,t,r)),e},{}),cancel:e=>n.forEach(t=>o[t].cancel(e)),state:a,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.Z,!0)},47463:function(e,t,i){"use strict";let s;i.d(t,{E:function(){return rW}});var r,n,a=i(67394);let o=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),l=(0,a.createContext)({});var u=i(70847),d=i(40683);let h=(0,a.createContext)({strict:!1}),c=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p="data-"+c("framerAppearId");function m(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function f(e){return"string"==typeof e||Array.isArray(e)}function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let v=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...v];function b(e){return g(e.animate)||y.some(t=>f(e[t]))}function w(e){return!!(b(e)||e.variants)}function x(e){return Array.isArray(e)?e.join(" "):e}let S={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},T={};for(let e in S)T[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var E=i(41123),P=i(62890);let C=(0,a.createContext)({}),M=Symbol.for("motionComponentSymbol"),A=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function L(e){if("string"!=typeof e||e.includes("-"));else if(A.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let k={},V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],O=new Set(V);function D(e,{layout:t,layoutId:i}){return O.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!k[e]||"opacity"===e)}let I=e=>!!(e&&e.getVelocity),j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R=V.length,B=e=>t=>"string"==typeof t&&t.startsWith(e),F=B("--"),z=B("var(--"),_=(e,t)=>
1t&&"number"==typeof e?t.transform(e):e,$=(e,t,i)=>Math.min(Math.max(i,e),t),N={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},G={...N,transform:e=>$(0,1,e)},W={...N,default:1},H=e=>Math.round(1e5*e)/1e5,U=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Y=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function X(e){return"string"==typeof e}let Z=e=>({test:t=>X(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),K=Z("deg"),J=Z("%"),Q=Z("px"),ee=Z("vh"),et=Z("vw"),ei={...J,parse:e=>J.parse(e)/100,transform:e=>J.transform(100*e)},es={...N,transform:Math.round},er={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:K,skewX:K,skewY:K,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:G,originX:ei,originY:ei,originZ:Q,zIndex:es,fillOpacity:G,strokeOpacity:G,numOctaves:es};function en(e,t,i,s){let{style:r,vars:n,transform:a,transformOrigin:o}=e,l=!1,u=!1,d=!0;for(let e in t){let i=t[e];if(F(e)){n[e]=i;continue}let s=er[e],h=_(i,s);if(O.has(e)){if(l=!0,a[e]=h,!d)continue;i!==(s.default||0)&&(d=!1)}else e.startsWith("origin")?(u=!0,o[e]=h):r[e]=h}if(!t.transform&&(l||s?r.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:i=!0},s,r){let n="";for(let t=0;t<R;t++){let i=V[t];if(void 0!==e[i]){let t=j[i]||i;n+=`${t}(${e[i]}) `}}return t&&!e.z&&(n+="translateZ(0)"),n=n.trim(),r?n=r(e,s?"":n):i&&s&&(n="none"),n}(e.transform,i,d,s):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:i=0}=o;r.transformOrigin=`${e} ${t} ${i}`}}let ea=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eo(e,t,i){for(let s in t)I(t[s])||D(s,i)||(e[s]=t[s])}let el=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eu(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||el.has(e)}let ed=e=>!eu(e);try{(r=require("@emotion/is-prop-valid").default)&&(ed=e=>e.startsWith("on")?!eu(e):r(e))}catch(e){}function eh(e,t,i){return"string"==typeof e?e:Q.transform(t+i*e)}let ec={offset:"stroke-dashoffset",array:"stroke-dasharray"},ep={offset:"strokeDashoffset",array:"strokeDasharray"};function em(e,{attrX:t,attrY:i,attrScale:s,originX:r,originY:n,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},d,h,c){if(en(e,u,d,c),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:f}=e;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==n||m.transform)&&(m.transformOrigin=function(e,t,i){let s=eh(t,e.x,e.width),r=eh(i,e.y,e.height);return`${s} ${r}`}(f,void 0!==r?r:.5,void 0!==n?n:.5)),void 0!==t&&(p.x=t),void 0!==i&&(p.y=i),void 0!==s&&(p.scale=s),void 0!==a&&function(e,t,i=1,s=0,r=!0){e.pathLength=1;let n=r?ec:ep;e[n.offset]=Q.transform(-s);let a=Q.transform(t),o=Q.transform(i);e[n.array]=`${a} ${o}`}(p,a,o,l,!1)}let ef=()=>({...ea(),attrs:{}}),eg=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ev(e,{style:t,vars:i},s,r){for(let n in Object.assign(e.style,t,r&&r.getProjectionStyles(s)),i)e.style.setProperty(n,i[n])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,i,s){for(let i in ev(e,t,void 0,s),t.attrs)e.setAttribute(ey.has(i)?i:c(i),t.attrs[i])}function ew(e,t){let{style:i}=e,s={};for(let r in i)(I(i[r])||t.style&&I(t.style[r])||D(r,e))&&(s[r]=i[r]);return s}function ex(e,t){let i=ew(e,t);for(let s in e)(I(e[s])||I(t[s]))&&(i[-1!==V.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s
1]=e[s]);return i}function eS(e,t,i,s={},r={}){return"function"==typeof t&&(t=t(void 0!==i?i:e.custom,s,r)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==i?i:e.custom,s,r)),t}var eT=i(13263);let eE=e=>Array.isArray(e),eP=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eC=e=>eE(e)?e[e.length-1]||0:e;function eM(e){let t=I(e)?e.get():e;return eP(t)?t.toValue():t}let eA=e=>(t,i)=>{let s=(0,a.useContext)(l),r=(0,a.useContext)(u.O),n=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:i},s,r,n){let a={latestValues:function(e,t,i,s){let r={},n=s(e,{});for(let e in n)r[e]=eM(n[e]);let{initial:a,animate:o}=e,l=b(e),u=w(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let d=!!i&&!1===i.initial,h=(d=d||!1===a)?o:a;return h&&"boolean"!=typeof h&&!g(h)&&(Array.isArray(h)?h:[h]).forEach(t=>{let i=eS(e,t);if(!i)return;let{transitionEnd:s,transition:n,...a}=i;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let e in s)r[e]=s[e]}),r}(s,r,n,e),renderState:t()};return i&&(a.mount=e=>i(s,e,a)),a})(e,t,s,r);return i?n():(0,eT.h)(n)};var eL=i(69210);let ek={useVisualState:eA({scrapeMotionValuesFromProps:ex,createRenderState:ef,onMount:(e,t,{renderState:i,latestValues:s})=>{eL.Wi.read(()=>{try{i.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){i.dimensions={x:0,y:0,width:0,height:0}}}),eL.Wi.render(()=>{em(i,s,{enableHardwareAcceleration:!1},eg(t.tagName),e.transformTemplate),eb(t,i)})}})},eV={useVisualState:eA({scrapeMotionValuesFromProps:ew,createRenderState:ea})};function eO(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}let eD=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eI(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let ej=e=>t=>eD(t)&&e(t,eI(t));function eR(e,t,i,s){return eO(e,t,ej(i),s)}let eB=(e,t)=>i=>t(e(i)),eF=(...e)=>e.reduce(eB);function ez(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let e_=ez("dragHorizontal"),e$=ez("dragVertical");function eN(e){let t=!1;if("y"===e)t=e$();else if("x"===e)t=e_();else{let e=e_(),i=e$();e&&i?t=()=>{e(),i()}:(e&&e(),i&&i())}return t}function eG(){let e=eN(!0);return!e||(e(),!1)}class eW{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eH(e,t){let i="onHover"+(t?"Start":"End");return eR(e.current,"pointer"+(t?"enter":"leave"),(s,r)=>{if("touch"===s.pointerType||eG())return;let n=e.getProps();e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",t),n[i]&&eL.Wi.update(()=>n[i](s,r))},{passive:!e.getProps()[i]})}class eU extends eW{mount(){this.unmount=eF(eH(this.node,!0),eH(this.node,!1))}unmount(){}}class eq extends eW{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eF(eO(this.node.current,"focus",()=>this.onFocus()),eO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eY=(e,t)=>!!t&&(e===t||eY(e,t.parentElement));var eX=i(97943);function eZ(e,t){if(!t)return;let i=new PointerEvent("pointer"+e);t(i,eI(i))}class eK extends eW{constructor(){super(...arguments),this.removeStartListeners=eX.Z,this.removeEndListeners=eX.Z,this.removeAccessibleListeners=eX.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=eR(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:r}=this.node.getProps();eL.Wi.update(()=>{r||eY(this.node.current,e.target)?i&&i(e,t):s&&s(e,t)})},{passive:!(i.onTap||i.onPointerUp)}),r=eR(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=eF(s,r),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eO(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eO(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eZ("up",(e,t)=>{let{onTap:i}=this.node.getProps();i&&eL.Wi.update(()=>i(e,t))})}),eZ("down",(e,t)=>{this.startPress(e,t)}))}),t=eO(this.node.current,"blur",()=>{this.isPressing&&eZ("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eF(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&eL.Wi.update(()=>i(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eG()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&eL.Wi.update(()=>i(e,t))}mount(){let e=this.node.getProps(),t=eR(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=eO(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eF(t,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eJ=new WeakMap,eQ=new WeakMap,e0=e=>{let t=eJ.get(e.target);t&&t(e)},e1=e=>{e.forEach(e0)},e2={some:0,all:1};class e3 extends eW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:s="some",once:r}=e,n={root:t?t.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:e2[s]};return function(e,t,i){let s=function({root:e,...t}){let i=e||document;eQ.has(i)||eQ.set(i,{});
1let s=eQ.get(i),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(e1,{root:e,...t})),s[r]}(t);return eJ.set(e,i),s.observe(e),()=>{eJ.delete(e),s.unobserve(e)}}(this.node.current,n,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}function e5(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}function e4(e,t,i){let s=e.getProps();return eS(s,t,void 0!==i?i:s.custom,function(e){let t={};return e.values.forEach((e,i)=>t[i]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,i)=>t[i]=e.getVelocity()),t}(e))}var e6=i(60163);let e9=e=>1e3*e,e8=e=>e/1e3,e7={current:!1},te=e=>Array.isArray(e)&&"number"==typeof e[0],tt=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,ti={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])};var ts=i(11117);let tr=(0,ts._)(.42,0,1,1),tn=(0,ts._)(0,0,.58,1),ta=(0,ts._)(.42,0,.58,1),to=e=>Array.isArray(e)&&"number"!=typeof e[0],tl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tu=e=>t=>1-e(1-t),td=e=>1-Math.sin(Math.acos(e)),th=tu(td),tc=tl(td),tp=(0,ts._)(.33,1.53,.69,.99),tm=tu(tp),tf=tl(tm),tg={linear:eX.Z,easeIn:tr,easeInOut:ta,easeOut:tn,circIn:td,circInOut:tc,circOut:th,backIn:tm,backInOut:tf,backOut:tp,anticipate:e=>(e*=2)<1?.5*tm(e):.5*(2-Math.pow(2,-10*(e-1)))},tv=e=>{if(Array.isArray(e)){(0,e6.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,i,s,r]=e;return(0,ts._)(t,i,s,r)}return"string"==typeof e?((0,e6.k)(void 0!==tg[e],`Invalid easing type '${e}'`),tg[e]):e},ty=(e,t)=>i=>!!(X(i)&&Y.test(i)&&i.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(i,t)),tb=(e,t,i)=>s=>{if(!X(s))return s;let[r,n,a,o]=s.match(U);return{[e]:parseFloat(r),[t]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tw=e=>$(0,255,e),tx={...N,transform:e=>Math.round(tw(e))},tS={test:ty("rgb","red"),parse:tb("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+tx.transform(e)+", "+tx.transform(t)+", "+tx.transform(i)+", "+H(G.transform(s))+")"},tT={test:ty("#"),parse:function(e){let t="",i="",s="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:tS.transform},tE={test:ty("hsl","hue"),parse:tb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+J.transform(H(t))+", "+J.transform(H(i))+", "+H(G.transform(s))+")"},tP={test:e=>tS.test(e)||tT.test(e)||tE.test(e),parse:e=>tS.test(e)?tS.parse(e):tE.test(e)?tE.parse(e):tT.parse(e),transform:e=>X(e)?e:e.hasOwnProperty("red")?tS.transform(e):tE.transform(e)},tC=(e,t,i)=>-i*e+i*t+e;function tM(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}let tA=(e,t,i)=>{let s=e*e;return Math.sqrt(Math.max(0,i*(t*t-s)+s))},tL=[tT,tS,tE],tk=e=>tL.find(t=>t.test(e));function tV(e){let t=tk(e);(0,e6.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let i=t.parse(e);return t===tE&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let r=0,n=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;r=tM(o,s,e+1/3),n=tM(o,s,e),a=tM(o,s,e-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let tO=(e,t)=>{let i=tV(e),s=tV(t),r={...i};return e=>(r.red=tA(i.red,s.red,e),r.green=tA(i.green,s.green,e),r.blue=tA(i.blue,s.blue,e),r.alpha=tC(i.alpha,s.alpha,e),tS.transform(r))}
1,tD={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eX.Z},tI={regex:q,countKey:"Colors",token:"${c}",parse:tP.parse},tj={regex:U,countKey:"Numbers",token:"${n}",parse:N.parse};function tR(e,{regex:t,countKey:i,token:s,parse:r}){let n=e.tokenised.match(t);n&&(e["num"+i]=n.length,e.tokenised=e.tokenised.replace(t,s),e.values.push(...n.map(r)))}function tB(e){let t=e.toString(),i={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&tR(i,tD),tR(i,tI),tR(i,tj),i}function tF(e){return tB(e).values}function tz(e){let{values:t,numColors:i,numVars:s,tokenised:r}=tB(e),n=t.length;return e=>{let t=r;for(let r=0;r<n;r++)t=r<s?t.replace(tD.token,e[r]):r<s+i?t.replace(tI.token,tP.transform(e[r])):t.replace(tj.token,H(e[r]));return t}}let t_=e=>"number"==typeof e?0:e,t$={test:function(e){var t,i;return isNaN(e)&&X(e)&&((null===(t=e.match(U))||void 0===t?void 0:t.length)||0)+((null===(i=e.match(q))||void 0===i?void 0:i.length)||0)>0},parse:tF,createTransformer:tz,getAnimatableNone:function(e){let t=tF(e);return tz(e)(t.map(t_))}},tN=(e,t)=>i=>`${i>0?t:e}`;function tG(e,t){return"number"==typeof e?i=>tC(e,t,i):tP.test(e)?tO(e,t):e.startsWith("var(")?tN(e,t):tU(e,t)}let tW=(e,t)=>{let i=[...e],s=i.length,r=e.map((e,i)=>tG(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=r[t](e);return i}},tH=(e,t)=>{let i={...e,...t},s={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(s[r]=tG(e[r],t[r]));return e=>{for(let t in s)i[t]=s[t](e);return i}},tU=(e,t)=>{let i=t$.createTransformer(t),s=tB(e),r=tB(t);return s.numVars===r.numVars&&s.numColors===r.numColors&&s.numNumbers>=r.numNumbers?eF(tW(s.values,r.values),i):((0,e6.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tN(e,t))},tq=(e,t,i)=>{let s=t-e;return 0===s?1:(i-e)/s},tY=(e,t)=>i=>tC(e,t,i);function tX(e,t,{clamp:i=!0,ease:s,mixer:r}={}){let n=e.length;if((0,e6.k)(n===t.length,"Both input and output ranges must be the same length"),1===n)return()=>t[0];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let s=[],r=i||function(e){if("number"==typeof e);else if("string"==typeof e)return tP.test(e)?tO:tU;else if(Array.isArray(e))return tW;else if("object"==typeof e)return tH;return tY}(e[0]),n=e.length-1;for(let i=0;i<n;i++){let n=r(e[i],e[i+1]);t&&(n=eF(Array.isArray(t)?t[i]||eX.Z:t,n)),s.push(n)}return s}(t,s,r),o=a.length,l=t=>{let i=0;if(o>1)for(;i<e.length-2&&!(t<e[i+1]);i++);let s=tq(e[i],e[i+1],t);return a[i](s)};return i?t=>l($(e[0],e[n-1],t)):l}function tZ({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){let r=to(s)?s.map(tv):tv(s),n={done:!1,value:t[0]},a=tX((i&&i.length===t.length?i:function(e){let t=[0];return function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let r=tq(0,t,s);e.push(tC(i,1,r))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(r)?r:t.map(()=>r||ta).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(n.value=a(t),n.done=t>=e,n)}}function tK(e,t,i){var s,r;let n=Math.max(t-5,0);return s=i-e(n),(r=t-n)?1e3/r*s:0}function tJ(e,t){return e*Math.sqrt(1-t*t)}let tQ=["duration","bounce"],t0=["stiffness","damping","mass"];function t1(e,t){return t.some(t=>void 0!==e[t])}function t2({keyframes:e,restDelta:t,restSpeed:i,...s}){let r;let n=e[0],a=e[e.length-1],o={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:h,velocity:c,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t1(e,t0)&&t1(e,tQ)){let i=function({duration:e=800,bounce:t=.25,velocity:i=0,mass:s=1}){let r,n;(0,e6.K)(e<=e9(10),"Spring duration must be 10 seconds or less");let a=1-t;a=$(.05,1,a),e=$(.01,10,e8(e)),a<1?(r=t=>{let s=t*a,r=s*e;return .001-(s-i)/tJ(t,a)*Math.exp(-r)},n=t=>{let s=t*a*e,n=Math.pow(a,2)*Math.pow(t,2)*e,o=tJ(Math.pow(t,2),a);return(s*i+i-n)*Math.exp(-s)*(-r(t)+.001>0?-1:1)/o}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),n=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(r,n,5/e);if(e=e9(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*s;
1return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...s,velocity:-e8(s.velocity||0)}),m=c||0,f=u/(2*Math.sqrt(l*d)),g=a-n,v=e8(Math.sqrt(l/d)),y=5>Math.abs(g);if(i||(i=y?.01:2),t||(t=y?.005:.5),f<1){let e=tJ(v,f);r=t=>a-Math.exp(-f*v*t)*((m+f*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===f)r=e=>a-Math.exp(-v*e)*(g+(m+v*g)*e);else{let e=v*Math.sqrt(f*f-1);r=t=>{let i=Math.exp(-f*v*t),s=Math.min(e*t,300);return a-i*((m+f*v*g)*Math.sinh(s)+e*g*Math.cosh(s))/e}}return{calculatedDuration:p&&h||null,next:e=>{let s=r(e);if(p)o.done=e>=h;else{let n=m;0!==e&&(n=f<1?tK(r,e,s):0);let l=Math.abs(n)<=i,u=Math.abs(a-s)<=t;o.done=l&&u}return o.value=o.done?a:s,o}}}function t3({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){let h,c;let p=e[0],m={done:!1,value:p},f=e=>void 0!==o&&e<o||void 0!==l&&e>l,g=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,v=i*t,y=p+v,b=void 0===a?y:a(y);b!==y&&(v=b-p);let w=e=>-v*Math.exp(-e/s),x=e=>b+w(e),S=e=>{let t=w(e),i=x(e);m.done=Math.abs(t)<=u,m.value=m.done?b:i},T=e=>{f(m.value)&&(h=e,c=t2({keyframes:[m.value,g(m.value)],velocity:tK(x,e,m.value),damping:r,stiffness:n,restDelta:u,restSpeed:d}))};return T(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==h||(t=!0,S(e),T(e)),void 0!==h&&e>h)?c.next(e-h):(t||S(e),m)}}}let t5=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eL.Wi.update(t,!0),stop:()=>(0,eL.Pn)(t),now:()=>eL.frameData.isProcessing?eL.frameData.timestamp:performance.now()}};function t4(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let t6={decay:t3,inertia:t3,tween:tZ,keyframes:tZ,spring:t2};function t9({autoplay:e=!0,delay:t=0,driver:i=t5,keyframes:s,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:o="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:h,...c}){let p,m,f,g,v,y=1,b=!1,w=()=>{m=new Promise(e=>{p=e})};w();let x=t6[r]||tZ;x!==tZ&&"number"!=typeof s[0]&&(g=tX([0,100],s,{clamp:!1}),s=[0,100]);let S=x({...c,keyframes:s});"mirror"===o&&(v=x({...c,keyframes:[...s].reverse(),velocity:-(c.velocity||0)}));let T="idle",E=null,P=null,C=null;null===S.calculatedDuration&&n&&(S.calculatedDuration=t4(S));let{calculatedDuration:M}=S,A=1/0,L=1/0;null!==M&&(L=(A=M+a)*(n+1)-a);let k=0,V=e=>{if(null===P)return;y>0&&(P=Math.min(P,e)),y<0&&(P=Math.min(e-L/y,P));let i=(k=null!==E?E:Math.round(e-P)*y)-t*(y>=0?1:-1),r=y>=0?i<0:i>L;k=Math.max(i,0),"finished"===T&&null===E&&(k=L);let l=k,u=S;if(n){let e=Math.min(k,L)/A,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,n+1))%2&&("reverse"===o?(i=1-i,a&&(i-=a/A)):"mirror"===o&&(u=v)),l=$(0,1,i)*A}let d=r?{done:!1,value:s[0]}:u.next(l);g&&(d.value=g(d.value));let{done:c}=d;r||null===M||(c=y>=0?k>=L:k<=0);let p=null===E&&("finished"===T||"running"===T&&c);return h&&h(d.value),p&&I(),d},O=()=>{f&&f.stop(),f=void 0},D=()=>{T="idle",O(),p(),w(),P=C=null},I=()=>{T="finished",d&&d(),O(),p()},j=()=>
1{if(b)return;f||(f=i(V));let e=f.now();l&&l(),null!==E?P=e-E:P&&"finished"!==T||(P=e),"finished"===T&&w(),C=P,E=null,T="running",f.start()};e&&j();let R={then:(e,t)=>m.then(e,t),get time(){return e8(k)},set time(newTime){k=newTime=e9(newTime),null===E&&f&&0!==y?P=f.now()-newTime/y:E=newTime},get duration(){return e8(null===S.calculatedDuration?t4(S):S.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,R.time=e8(k)},get state(){return T},play:j,pause:()=>{T="paused",E=k},stop:()=>{b=!0,"idle"!==T&&(T="idle",u&&u(),D())},cancel:()=>{null!==C&&V(C),D()},complete:()=>{T="finished"},sample:e=>(P=0,V(e))};return R}let t8=(n=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===s&&(s=n()),s)),t7=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ie=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&ti[t]||te(t)||Array.isArray(t)&&t.every(e))}(t.ease),it={type:"spring",stiffness:500,damping:25,restSpeed:10},ii=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),is={type:"keyframes",duration:.8},ir={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ia=(e,{keyframes:t})=>t.length>2?is:O.has(e)?e.startsWith("scale")?ii(t[1]):it:ir,io=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),il=new Set(["brightness","contrast","saturate","opacity"]);function iu(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(U)||[];if(!s)return e;let r=i.replace(s,""),n=il.has(t)?1:0;return s!==i&&(n*=100),t+"("+n+r+")"}let id=/([a-z-]*)\(.*?\)/g,ih={...t$,getAnimatableNone:e=>{let t=e.match(id);return t?t.map(iu).join(" "):e}},ic={...er,color:tP,backgroundColor:tP,outlineColor:tP,fill:tP,stroke:tP,borderColor:tP,borderTopColor:tP,borderRightColor:tP,borderBottomColor:tP,borderLeftColor:tP,filter:ih,WebkitFilter:ih},ip=e=>ic[e];function im(e,t){let i=ip(e);return i!==ih&&(i=t$),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let ig=e=>/^0[^.\s]+$/.test(e);function iv(e,t){return e[t]||e.default||e}let iy={skipAnimations:!1},ib=(e,t,i,s={})=>r=>{let n=iv(s,e)||{},a=n.delay||s.delay||0,{elapsed:o=0}=s;o-=e9(a);let l=function(e,t,i,s){let r,n;let a=io(t,i);r=Array.isArray(i)?[...i]:[null,i];let o=void 0!==s.from?s.from:e.get(),l=[];for(let e=0;e<r.length;e++){var u;null===r[e]&&(r[e]=0===e?o:r[e-1]),("number"==typeof(u=r[e])?0===u:null!==u?"none"===u||"0"===u||ig(u):void 0)&&l.push(e),"string"==typeof r[e]&&"none"!==r[e]&&"0"!==r[e]&&(n=r[e])}if(a&&l.length&&n)for(let e=0;e<l.length;e++)r[l[e]]=im(t,n);return r}(t,e,i,n),u=l[0],d=l[l.length-1],h=io(e,u),c=io(e,d);(0,e6.K)(h===c,`You are trying to animate ${e} from "${u}" to "${d}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${d} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...n,delay:-o,onUpdate:e=>
1{t.set(e),n.onUpdate&&n.onUpdate(e)},onComplete:()=>{r(),n.onComplete&&n.onComplete()}};if(!function({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}(n)&&(p={...p,...ia(e,p)}),p.duration&&(p.duration=e9(p.duration)),p.repeatDelay&&(p.repeatDelay=e9(p.repeatDelay)),!h||!c||e7.current||!1===n.type||iy.skipAnimations)return function({keyframes:e,delay:t,onUpdate:i,onComplete:s}){let r=()=>(i&&i(e[e.length-1]),s&&s(),{time:0,speed:1,duration:0,play:eX.Z,pause:eX.Z,stop:eX.Z,then:e=>(e(),Promise.resolve()),cancel:eX.Z,complete:eX.Z});return t?t9({keyframes:[0,1],duration:0,delay:t,onComplete:r}):r()}(e7.current?{...p,delay:0}:p);if(!s.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let i=function(e,t,{onUpdate:i,onComplete:s,...r}){let n,a;if(!(t8()&&t7.has(t)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let o=!1,l=!1,u=()=>{a=new Promise(e=>{n=e})};u();let{keyframes:d,duration:h=300,ease:c,times:p}=r;if(ie(t,r)){let e=t9({...r,repeat:0,delay:0}),t={done:!1,value:d[0]},i=[],s=0;for(;!t.done&&s<2e4;)t=e.sample(s),i.push(t.value),s+=10;p=void 0,d=i,h=s-10,c="linear"}let m=function(e,t,i,{delay:s=0,duration:r,repeat:n=0,repeatType:a="loop",ease:o,times:l}={}){let u={[t]:i};l&&(u.offset=l);let d=function e(t){if(t)return te(t)?tt(t):Array.isArray(t)?t.map(e):ti[t]}(o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,d,{...r,duration:h,ease:c,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,eL.Wi.update(f),n(),u()};return m.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:i="loop"}){let s=t&&"loop"!==i&&t%2==1?0:e.length-1;return e[s]}(d,r)),s&&s(),g())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,eX.Z),get time(){return e8(m.currentTime||0)},set time(newTime){m.currentTime=e9(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return e8(h)},play:()=>{o||(m.play(),(0,eL.Pn)(f))},pause:()=>m.pause(),stop:()=>{if(o=!0,"idle"===m.playState)return;let{currentTime:t}=m;if(t){let i=t9({...r,autoplay:!1});e.setWithVelocity(i.sample(t-10).value,i.sample(t).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}(t,e,p);if(i)return i}return t9(p)};function iw(e){return!!(I(e)&&e.add)}let ix=e=>/^\-?\d*\.?\d+$/.test(e);function iS(e,t){-1===e.indexOf(t)&&e.push(t)}function iT(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class iE{constructor(){this.subscriptions=[]}add(e){return iS(this.subscriptions,e),()=>iT(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](e,t,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(e,t,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let iP=e=>!isNaN(parseFloat(e)),iC={current:void 0};class iM{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:i,timestamp:s}=eL.frameData;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,eL.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eL.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=iP(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new iE);let i=this.events[e].add(t);return"change"===e?()=>{i(),eL.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}
1get(){return iC.current&&iC.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iA(e,t){return new iM(e,t)}let iL=e=>t=>t.test(e),ik=[N,Q,J,K,et,ee,{test:e=>"auto"===e,parse:e=>e}],iV=e=>ik.find(iL(e)),iO=[...ik,tP,t$],iD=e=>iO.find(iL(e));function iI(e,t,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n=e.getDefaultTransition(),transitionEnd:a,...o}=e.makeTargetAnimatable(t),l=e.getValue("willChange");s&&(n=s);let u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let s=e.getValue(t),r=o[t];if(!s||void 0===r||d&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(d,t))continue;let a={delay:i,elapsed:0,...iv(n||{},t)};if(window.HandoffAppearAnimations){let i=e.getProps()[p];if(i){let e=window.HandoffAppearAnimations(i,t,s,eL.Wi);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let h=!a.isHandoff&&!function(e,t){let i=e.get();if(!Array.isArray(t))return i!==t;for(let e=0;e<t.length;e++)if(t[e]!==i)return!0}(s,r);if("spring"===a.type&&(s.getVelocity()||a.velocity)&&(h=!1),s.animation&&(h=!1),h)continue;s.start(ib(t,s,r,e.shouldReduceMotion&&O.has(t)?{type:!1}:a));let c=s.animation;iw(l)&&(l.add(t),c.then(()=>l.remove(t))),u.push(c)}return a&&Promise.all(u).then(()=>{a&&function(e,t){let i=e4(e,t),{transitionEnd:s={},transition:r={},...n}=i?e.makeTargetAnimatable(i,!1):{};for(let t in n={...n,...s}){let i=eC(n[t]);e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,iA(i))}}(e,a)}),u}function ij(e,t,i={}){let s=e4(e,t,i.custom),{transition:r=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(iI(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,s=0,r=1,n){let a=[],o=(e.variantChildren.size-1)*s,l=1===r?(e=0)=>e*s:(e=0)=>o-e*s;return Array.from(e.variantChildren).sort(iR).forEach((e,s)=>{e.notify("AnimationStart",t),a.push(ij(e,t,{...n,delay:i+l(s)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,n+s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([n(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[n,a]:[a,n];return e().then(()=>t())}}function iR(e,t){return e.sortNodePosition(t)}let iB=[...v].reverse(),iF=v.length;function iz(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class i_ extends eW{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>ij(e,t,i)));else if("string"==typeof t)s=ij(e,t,i);else{let r="function"==typeof t?e4(e,t,i.custom):t;s=Promise.all(iI(e,r,i))}return s.then(()=>e.notify("AnimationComplete",t))})(e,t,i))),i={animate:iz(!0),whileInView:iz(),whileHover:iz(),whileTap:iz(),whileDrag:iz(),whileFocus:iz(),exit:iz()},s=!0,r=(t,i)=>{let s=e4(e,i);if(s){let{transition:e,transitionEnd:i,...r}=s;t={...t,...r,...i}}return t};function n(n,a){let o=e.getProps(),l=e.getVariantContext(!0)||{},u=[],d=new Set,h={},c=1/0;for(let t=0;t<iF;t++){var p;let m=iB[t],v=i[m],y=void 0!==o[m]?o[m]:l[m],b=f(y),w=m===a?v.isActive:null;!1===w&&(c=t);let x=y===l[m]&&y!==o[m]&&b;if(x&&s&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...h},!v.isActive&&null===w||!y&&!v.prevProp||g(y)||"boolean"==typeof y)continue;let S=(p=v.prevProp,("string"==typeof y?y!==p:!!Array.isArray(y)&&!e5(y,p))||m===a&&v.isActive&&!x&&b||t>c&&b),T=!1,E=Array.isArray(y)?y:[y],P=E.reduce(r,{});!1===w&&(P={});let{prevResolvedValues:C={}}=v,M={...C,...P},A=e=>{S=!0,d.has(e)&&(T=!0,d.delete(e)),v.needsAnimating[e]=!0};for(let e in M){let t=P[e],i=C[e];if(!h.hasOwnProperty(e))(eE(t)&&eE(i)?e5(t,i):t===i)?void 0!==t&&d.has(e)?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):d.add(e)}v.prevProp=y,v.prevResolvedValues=P,v.isActive&&(h={...h,...P}),s&&e.blockInitialAnimation&&(S=!1),S&&(!x||T)&&u.push(...E.map(e=>({animation:e,options:{type:m,...n}})))}if(d.size){let t={};d.forEach(i=>
1{let s=e.getBaseTarget(i);void 0!==s&&(t[i]=s)}),u.push({animation:t})}let m=!!u.length;return s&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),s=!1,m?t(u):Promise.resolve()}return{animateChanges:n,setActive:function(t,s,r){var a;if(i[t].isActive===s)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var i;return null===(i=e.animationState)||void 0===i?void 0:i.setActive(t,s)}),i[t].isActive=s;let o=n(r,t);for(let e in i)i[e].protectedKeys={};return o},setAnimateFunction:function(i){t=i(e)},getState:()=>i}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),g(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let i$=0;class iN extends eW{constructor(){super(...arguments),this.id=i$++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;let r=this.node.animationState.setActive("exit",!e,{custom:null!=i?i:this.node.getProps().custom});t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let iG=(e,t)=>Math.abs(e-t);class iW{constructor(e,t,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iq(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(iG(e.x,t.x)**2+iG(e.y,t.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:a}=eL.frameData;this.history.push({...n,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iH(t,this.transformPagePoint),eL.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iq("pointercancel"===e.type?this.lastMoveEventInfo:iH(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,n),s&&s(e,n)},!eD(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.contextWindow=s||window;let n=iH(eI(e),this.transformPagePoint),{point:a}=n,{timestamp:o}=eL.frameData;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,iq(n,this.history)),this.removeListeners=eF(eR(this.contextWindow,"pointermove",this.handlePointerMove),eR(this.contextWindow,"pointerup",this.handlePointerUp),eR(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eL.Pn)(this.updatePoint)}}function iH(e,t){return t?{point:t(e.point)}:e}function iU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iq({point:e},t){return{point:e,delta:iU(e,iY(t)),offset:iU(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null,r=iY(e);for(;i>=0&&(s=e[i],!(r.timestamp-s.timestamp>e9(.1)));)i--;if(!s)return{x:0,y:0};let n=e8(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function iY(e){return e[e.length-1]}function iX(e){return e.max-e.min}function iZ(e,t=0,i=.01){return Math.abs(e-t)<=i}function iK(e,t,i,s=.5){e.origin=s,e.originPoint=tC(t.min,t.max,e.origin),e.scale=iX(i)/iX(t),(iZ(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tC(i.min,i.max,e.origin)-e.originPoint,(iZ(e.translate)||isNaN(e.translate))&&(e.translate=0)}function iJ(e,t,i,s){iK(e.x,t.x,i.x,s?s.originX:void 0),iK(e.y,t.y,i.y,s?s.originY:void 0)}function iQ(e,t,i){e.min=i.min+t.min,e.max=e.min+iX(t)}function i0(e,t,i){e.min=t.min-i.min,e.max=e.min+iX(t)}function i1(e,t,i){i0(e.x,t.x,i.x),i0(e.y,t.y,i.y)}function i2(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function i3(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function i5(e,t,i){return{min:i4(e,t),max:i4(e,i)}}function i4(e,t){return"number"==typeof e?e:e[t]||0}let i6=()=>({translate:0,scale:1,origin:0,originPoint:0}),i9=()=>({x:i6(),y:i6()}),i8=()=>({min:0,max:0}),i7=()=>({x:i8(),y:i8()});function se(e){return[e("x"),e("y")]}function st({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function si(e){return void 0===e||1===e}function ss({scale:e,scaleX:t,scaleY:i}){return!si(e)||!si(t)||!si(i)}function sr(e){return ss(e)||sn(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sn(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function sa(e,t,i,s,r){return void 0!==r&&(e=s+r*(e-s)),s+i*(e-s)+t}function so(e,t=0,i=1,s,r){e.min=sa(e.min,t,i,s,r),e.max=sa(e.max,t,i,s,r)}function sl(e,{x:t,y:i}){so(e.x,t.translate,t.scale,t.originPoint),so(e.y,i.translate,i.scale,i.originPoint)}function su(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function sd(e,t){e.min=e.min+t,e.max=e.max+t}function sh(e,t,[i,s,r]){let n=void 0!==t[r]?t[r]:.5,a=tC(e.min,e.max,n);so(e,t[i],t[s],a,t.scale)}let sc=["x","scaleX","originX"],sp=["y","scaleY","originY"];function sm(e,t){sh(e.x,t,sc),sh(e.y,t,sp)}function sf(e,t){return st(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}let sg=({current:e})=>
1e?e.ownerDocument.defaultView:null,sv=new WeakMap;class sy{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=i7(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new iW(e,{onSessionStart:e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eI(e,"page").point)},onStart:(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eN(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),se(e=>{let t=this.getAxisMotionValue(e).get()||0;if(J.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];if(s){let e=iX(s);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),r&&eL.Wi.update(()=>r(e,t),!1,!0);let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),n&&n(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>se(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:sg(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=t;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&eL.Wi.update(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!sb(e,s,this.currentDirection))return;let r=this.getAxisMotionValue(e),n=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(n=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?tC(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?tC(i,e,s.max):Math.min(e,i)),e}(n,this.constraints[e],this.elastic[e])),r.set(n)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&m(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=function(e,{top:t,left:i,bottom:s,right:r}){return{x:i2(e.x,i,r),y:i2(e.y,t,s)}}(s.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i5(e,"left","right"),y:i5(e,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&se(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(s.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!m(t))return!1;let s=t.current;(0,e6.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=function(e,t,i){let s=sf(e,i),{scroll:r}=t;return r&&(sd(s.x,r.offset.x),sd(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),a={x:i3((e=r.layout.layoutBox).x,n.x),y:i3(e.y,n.y)};if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=st(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(se(a=>{if(!sb(a,t,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return i.start(ib(e,i,0,t))}stopAnimation(){se(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){se(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){se(t=>{let{drag:i}=this.getProps();if(!sb(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[t];r.set(e[t]-tC(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!m(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};se(e=>{let t=this.getAxisMotionValue(e);if(t){let i=t.get();s[e]=function(e,t){let i=.5,s=iX(e),r=iX(t);return r>s?i=tq(t.min,t.max-s,e.min):s>r&&(i=tq(e.min,e.max-r,t.min)),$(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),se(t=>{if(!sb(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:n}=this.constraints[t];i.set(tC(r,n,s[t]))})}addListeners(){if(!this.visualElement.current)return;sv.set(this.visualElement,this);let e=eR(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();m(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),t();let r=eO(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(se(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}
1function sb(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class sw extends eW{constructor(e){super(e),this.removeGroupControls=eX.Z,this.removeListeners=eX.Z,this.controls=new sy(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eX.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let sx=e=>(t,i)=>{e&&eL.Wi.update(()=>e(t,i))};class sS extends eW{constructor(){super(...arguments),this.removePointerDownListener=eX.Z}onPointerDown(e){this.session=new iW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sg(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sx(e),onStart:sx(t),onMove:i,onEnd:(e,t)=>{delete this.session,s&&eL.Wi.update(()=>s(e,t))}}}mount(){this.removePointerDownListener=eR(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let sT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let i=sE(e,t.target.x),s=sE(e,t.target.y);return`${i}% ${s}%`}};class sC extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;Object.assign(k,sA),r&&(t.group&&t.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),sT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||e.layoutDependency!==t||void 0===t?n.willUpdate():this.safeToRemove(),e.isPresent===r||(r?n.promote():n.relegate()||eL.Wi.postRender(()=>{let e=n.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function sM(e){let[t,i]=function(){let e=(0,a.useContext)(u.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:i,register:s}=e,r=(0,a.useId)();return(0,a.useEffect)(()=>s(r),[]),!t&&i?[!1,()=>i&&i(r)]:[!0]}(),s=(0,a.useContext)(P.p);return a.createElement(sC,{...e,layoutGroup:s,switchLayoutGroup:(0,a.useContext)(C),isPresent:t,safeToRemove:i})}let sA={borderRadius:{...sP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sP,borderTopRightRadius:sP,borderBottomLeftRadius:sP,borderBottomRightRadius:sP,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=t$.parse(e);if(s.length>5)return e;let r=t$.createTransformer(e),n="number"!=typeof s[0]?1:0,a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+n]/=a,s[1+n]/=o;let l=tC(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}},sL=["TopLeft","TopRight","BottomLeft","BottomRight"],sk=sL.length,sV=e=>"string"==typeof e?parseFloat(e):e,sO=e=>"number"==typeof e||Q.test(e);function sD(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let sI=sR(0,.5,th),sj=sR(.5,.95,eX.Z);function sR(e,t,i){return s=>s<e?0:s>t?1:i(tq(e,t,s))}function sB(e,t){e.min=t.min,e.max=t.max}function sF(e,t){sB(e.x,t.x),sB(e.y,t.y)}function sz(e,t,i,s,r){return e-=t,e=s+1/i*(e-s),void 0!==r&&(e=s+1/r*(e-s)),e}function s_(e,t,[i,s,r],n,a){!function(e,t=0,i=1,s=.5,r,n=e,a=e){if(J.test(t)&&(t=parseFloat(t),t=tC(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tC(n.min,n.max,s);e===n&&(o-=t),e.min=sz(e.min,t,i,o,r),e.max=sz(e.max,t,i,o,r)}(e,t[i],t[s],t[r],t.scale,n,a)}let s$=["x","scaleX","originX"],sN=["y","scaleY","originY"];function sG(e,t,i,s){s_(e.x,t,s$,i?i.x:void 0,s?s.x:void 0),s_(e.y,t,sN,i?i.y:void 0,s?s.y:void 0)}function sW(e){return 0===e.translate&&1===e.scale}function sH(e){return sW(e.x)&&sW(e.y)}function sU(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function sq(e){return iX(e.x)/iX(e.y)}class sY{constructor(){this.members=[]}add(e){iS(this.members,e),e.scheduleRender()}remove(e){if(iT(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:s}=e.options;!1===s&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sX(e,t,i){let s="",r=e.x.translate/t.x,n=e.y.translate/t.y;if((r||n)&&(s=`translate3d(${r}px, ${n}px, 0) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{rotate:e,rotateX:t,rotateY:r}=i;e&&(s+=`rotate(${e}deg) `),t&&(s+=`rotateX(${t}deg) `),r&&(s+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,o=e.y.scale*t.y;return(1!==a||1!==o)&&(s+=`scale(${a}, ${o})`),s||"none"}let sZ=(e,t)=>e.depth-t.depth;class sK{constructor(){this.children=[],this.isDirty=!1}add(e){iS(this.children,e),this.isDirty=!0}remove(e){iT(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sZ),this.isDirty=!1,this.children.forEach(e)}}let sJ=["","X","Y","Z"],sQ={visibility:"hidden"},s0=0,s1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function s2({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},i=null==t?void 0:t()){this.id=s0++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,s1.totalNodes=s1.resolvedTargetDeltas=s1.recalculatedProjection=0,this.nodes.forEach(s4),this.nodes.forEach(ri),this.nodes.forEach(rs),this.nodes.forEach(s6),window.MotionDebug&&window.MotionDebug.record(s1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new sK)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new iE),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),e){let i;let s=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=performance.now(),s=({timestamp:t})=>{let r=t-i;r>=250&&((0,eL.Pn)(s),e(r-250))};return eL.Wi.read(s,!0),()=>(0,eL.Pn)(s)}(s,0),sT.hasAnimatedSinceResize&&(sT.hasAnimatedSinceResize=!1,this.nodes.forEach(rt))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ru,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!sU(this.targetLayout,s)||i,u=!t&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...iv(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rt(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eL.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(rr),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(s8);return}this.isUpdating||this.nodes.forEach(s7),this.isUpdating=!1,this.nodes.forEach(re),this.nodes.forEach(s3),this.nodes.forEach(s5),this.clearAllSnapshots();let e=performance.now();eL.frameData.delta=$(0,1e3/60,e-eL.frameData.timestamp),eL.frameData.timestamp=e,eL.frameData.isProcessing=!0,eL.S6.update.process(eL.frameData),eL.S6.preRender.process(eL.frameData),eL.S6.render.process(eL.frameData),eL.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(s9),this.sharedNodes.forEach(rn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eL.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eL.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i7(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!sH(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;e&&(t||sr(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),rc((t=s).x),rc(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i7();let t=e.measureViewportBox(),{scroll:i}=this.root;return i&&(sd(t.x,i.offset.x),sd(t.y,i.offset.y)),t}removeElementScroll(e){let t=i7();sF(t,e);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;if(s!==this.root&&r&&n.layoutScroll){if(r.isRoot){sF(t,e);let{scroll:i}=this.root;i&&(sd(t.x,-i.offset.x),sd(t.y,-i.offset.y))}sd(t.x,r.offset.x),sd(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){let i=i7();sF(i,e);for(let e=0;e<this.path.length;e++){let s=this.path[e];!t&&s.options.layoutScroll&&s.scroll&&s!==s.root&&sm(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),sr(s.latestValues)&&sm(i,s.latestValues)}return sr(this.latestValues)&&sm(i,this.latestValues),i}removeTransform(e){let t=i7();sF(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!sr(i.latestValues))continue;ss(i.latestValues)&&i.updateSnapshot();let s=i7();sF(s,i.measurePageBox()),sG(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return sr(this.latestValues)&&sG(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eL.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let a=!!this.resumingFrom||this!==n;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=eL.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i7(),this.relativeTargetOrigin=i7(),i1(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),sF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i7(),this.targetWithTransforms=i7()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,iQ(i.x,s.x,r.x),iQ(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sF(this.target,this.layout.layoutBox),sl(this.target,this.targetDelta)):sF(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i7(),this.relativeTargetOrigin=i7(),i1(this.relativeTargetOrigin,this.target,e.target),sF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}s1.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ss(this.parent.latestValues)||sn(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),i=!!this.resumingFrom||this!==t,s=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===eL.frameData.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;sF(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,s=!1){let r,n;let a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let a=r.instance;(!a||!a.style||"contents"!==a.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&sm(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(t.x*=n.x.scale,t.y*=n.y.scale,sl(e,n)),s&&sr(r.latestValues)&&sm(e,r.latestValues))}t.x=su(t.x),t.y=su(t.y)}}(this.layoutCorrected,this.treeScale,this.path,i),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=i9(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=i9(),this.projectionDeltaWithTransform=i9());let u=this.projectionTransform;iJ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=sX(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==o)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),s1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let i;let s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=i9();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=i7(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(rl));this.animationProgress=0,this.mixTargetDelta=t=>{let s=t/1e3;if(ra(a.x,e.x,s),ra(a.y,e.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;i1(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,ro(p.x,m.x,o.x,s),ro(p.y,m.y,o.y,s),i&&(u=this.relativeTarget,c=i,u.x.min===c.x.min&&u.x.max===c.x.max&&u.y.min===c.y.min&&u.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=i7()),sF(i,this.relativeTarget)}l&&(this.animationValues=n,function(e,t,i,s,r,n){r?(e.opacity=tC(0,void 0!==i.opacity?i.opacity:1,sI(s)),e.opacityExit=tC(void 0!==t.opacity?t.opacity:1,0,sj(s))):n&&(e.opacity=tC(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<sk;r++){let n=`border${sL[r]}Radius`,a=sD(t,n),o=sD(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sO(a)===sO(o)?(e[n]=Math.max(tC(sV(a),sV(o),s),0),(J.test(o)||J.test(a))&&(e[n]+="
1%")):e[n]=o)}(t.rotate||i.rotate)&&(e.rotate=tC(t.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,h,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eL.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eL.Wi.update(()=>{sT.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,i){let s=I(0)?0:iA(0);return s.start(ib("",s,1e3,i)),s.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:r}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&rp(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||i7();let t=iX(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=iX(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}sF(t,i),sm(t,r),iJ(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sY),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(t=!0),!t)return;let s={};for(let t=0;t<sJ.length;t++){let r="rotate"+sJ[t];i[r]&&(s[r]=i[r],e.setStaticValue(r,0))}for(let t in e.render(),s)e.setStaticValue(t,s[t]);e.scheduleRender()}getProjectionStyles(e){var t,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sQ;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=eM(null==e?void 0:e.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eM(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!sr(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}let a=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=sX(this.projectionDeltaWithTransform,this.treeScale,a),r&&(s.transform=r(a,s.transform));let{x:o,y:l}=this.projectionDelta;for(let e in s.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!==(i=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=n===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,k){if(void 0===a[e])continue;let{correct:t,applyTo:i}=k[e],r="none"===s.transform?a[e]:t(a[e],n);if(i){let e=i.length;for(let t=0;t<e;t++)s[i[t]]=r}else s[e]=r}return this.options.layoutId&&(s.pointerEvents=n===this?eM(null==e?void 0:e.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(s8),this.root.sharedNodes.clear()}}}function s3(e){e.updateLayout()}function s5(e){var t;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:s}=e.layout,{animationType:r}=e.options,n=i.source!==e.layout.source;"size"===r?se(e=>{let s=n?i.measuredBox[e]:i.layoutBox[e],r=iX(s);s.min=t[e].min,s.max=s.min+r}):rp(r,i.layoutBox,t)&&se(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],a=iX(t[s]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=i9();iJ(a,t,i.layoutBox);let o=i9();n?iJ(o,e.applyTransform(s,!0),i.measuredBox):iJ(o,t,i.layoutBox);let l=!sH(a),u=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=i7();i1(a,i.layoutBox,r.layoutBox);let o=i7();i1(o,t,n.layoutBox),sU(a,o)||(u=!0),s.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function s4(e){s1.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function s6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s9(e){e.clearSnapshot()}function s8(e){e.clearMeasurements()}function s7(e){e.isLayoutDirty=!1}function re(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rt(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ri(e){e.resolveTargetDelta()}function rs(e){e.calcProjection()}function rr(e){e.resetRotation()}function rn(e){e.removeLeadSnapshot()}function ra(e,t,i){e.translate=tC(t.translate,0,i),e.scale=tC(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function ro(e,t,i,s){e.min=tC(t.min,i.min,s),e.max=tC(t.max,i.max,s)}function rl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ru={duration:.45,ease:[.4,0,.1,1]},rd=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),rh=rd("applewebkit/")&&!rd("chrome/")?Math.round:eX.Z;function rc(e){e.min=rh(e.min),e.max=rh(e.max)}function rp(e,t,i){return"position"===e||"preserve-aspect"===e&&!iZ(sq(t),sq(i),.2)}let rm=s2({attachResizeListener:(e,t)=>eO(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rf={current:void 0},rg=s2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rf.current){let e=new rm({});e.mount(window),e.setOptions({layoutScroll:!0}),rf.current=e}return rf.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rv=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ry(e,t,i=1){(0,e6.k)(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(e){let t=rv.exec(e);if(!t)return[,];let[,i,s]=t;return[i,s]}(e);if(!s)return;let n=window.getComputedStyle(t).getPropertyValue(s);if(n){let e=n.trim();return ix(e)?parseFloat(e):e}return z(r)?ry(r,t,i+1):r}let rb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rw=e=>rb.has(e),rx=e=>Object.keys(e).some(rw),rS=e=>e===N||e===Q,rT=(e,t)=>parseFloat(e.split(", ")[t]),rE=(e,t)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/);if(r)return rT(r[1],t);{let t=s.match(/^matrix\((.+)\)$/);return t?rT(t[1],e):0}},rP=new Set(["x","y","z"]),rC=V.filter(e=>!rP.has(e)),rM={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rE(4,13),y:rE(5,14)};rM.translateX=rM.x,rM.translateY=rM.y;let rA=(e,t,i)=>{let s=t.measureViewportBox(),r=getComputedStyle(t.current),{display:n}=r,a={};"none"===n&&t.setStaticValue("display",e.display||"block"),i.forEac
1h(e=>{a[e]=rM[e](s,r)}),t.render();let o=t.measureViewportBox();return i.forEach(i=>{let s=t.getValue(i);s&&s.jump(a[i]),e[i]=rM[i](o,r)}),e},rL=(e,t,i={},s={})=>{t={...t},s={...s};let r=Object.keys(t).filter(rw),n=[],a=!1,o=[];if(r.forEach(r=>{let l;let u=e.getValue(r);if(!e.hasValue(r))return;let d=i[r],h=iV(d),c=t[r];if(eE(c)){let e=c.length,t=null===c[0]?1:0;h=iV(d=c[t]);for(let i=t;i<e&&null!==c[i];i++)l?(0,e6.k)(iV(c[i])===l,"All keyframes must be of the same type"):(l=iV(c[i]),(0,e6.k)(l===h||rS(h)&&rS(l),"Keyframes must be of the same dimension as the current value"))}else l=iV(c);if(h!==l){if(rS(h)&&rS(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof c?t[r]=parseFloat(c):Array.isArray(c)&&l===Q&&(t[r]=c.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==l?void 0:l.transform)&&(0===d||0===c)?0===d?u.set(l.transform(d)):t[r]=h.transform(c):(a||(n=function(e){let t=[];return rC.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),o.push(r),s[r]=void 0!==s[r]?s[r]:t[r],u.jump(c))}}),!o.length)return{target:t,transitionEnd:s};{let i=o.indexOf("height")>=0?window.pageYOffset:null,r=rA(t,e,o);return n.length&&n.forEach(([t,i])=>{e.getValue(t).set(i)}),e.render(),E.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:s}}},rk=(e,t,i,s)=>{var r,n;let a=function(e,{...t},i){let s=e.current;if(!(s instanceof Element))return{target:t,transitionEnd:i};for(let r in i&&(i={...i}),e.values.forEach(e=>{let t=e.get();if(!z(t))return;let i=ry(t,s);i&&e.set(i)}),t){let e=t[r];if(!z(e))continue;let n=ry(e,s);n&&(t[r]=n,i||(i={}),void 0===i[r]&&(i[r]=e))}return{target:t,transitionEnd:i}}(e,t,s);return t=a.target,s=a.transitionEnd,r=t,n=s,rx(r)?rL(e,r,i,n):{target:r,transitionEnd:n}},rV={current:null},rO={current:!1},rD=new WeakMap,rI=Object.keys(T),rj=rI.length,rR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rB=y.length;class rF{constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,visualState:r},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eL.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=o,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=n,this.isControllingVariants=b(t),this.isVariantNode=w(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==a[e]&&I(t)&&(t.set(a[e],!1),iw(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,rD.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rO.current||function(){if(rO.current=!0,E.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rV.current=e.matches;e.addListener(t),t()}else rV.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rV.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rD.delete(this.current),this.projection&&this.projection.unmount(),(0,eL.Pn)(this.notifyUpdate),(0,eL.Pn)(this.render),this.valueSubscriptions.forEach(e
1=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let i=O.has(e),s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eL.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},i,s,r){let n,a;for(let e=0;e<rj;e++){let i=rI[e],{isEnabled:s,Feature:r,ProjectionNode:o,MeasureLayout:l}=T[i];o&&(n=o),s(t)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&n){this.projection=new n(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:i,drag:s,dragConstraints:a,layoutScroll:o,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:i,alwaysMeasureLayout:!!s||a&&m(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:o,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i7()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<rR.length;t++){let i=rR[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){let{willChange:s}=t;for(let r in t){let n=t[r],a=i[r];if(I(n))e.addValue(r,n),iw(s)&&s.add(r);else if(I(a))e.addValue(r,iA(n,{owner:e})),iw(s)&&s.remove(r);else if(a!==n){if(e.hasValue(r)){let t=e.getValue(r);t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,iA(void 0!==t?t:n,{owner:e}))}}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<rB;e++){let i=y[e],s=this.props[i];(f(s)||!1===s)&&(t[i]=s)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=iA(t,{owner:this}),this.addValue(e,i)),i}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:i}=this.props,s="string"==typeof i||"object"==typeof i?null===(t=eS(this.props,i))||void 0===t?void 0:t[e]:void 0;if(i&&void 0!==s)return s;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||I(r)?void 0!==this.initialValues[e]&&void 0===s?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new iE),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class rz extends rF{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...i},{transformValues:s},r){let n=function(e,t,i){let s={};for(let r in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(r,t);if(void 0!==e)s[r]=e;else{let e=i.getValue(r);e&&(s[r]=e.get())}}return s}(i,e||{},this);if(s&&(t&&(t=s(t)),i&&(i=s(i)),n&&(n=s(n))),r){!function(e,t,i){var s,r;let n=Object.keys(t).filter(t=>!e.hasValue(t)),a=n.length;if(a)for(let o=0;o<a;o++){let a=n[o],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(s=i[a])&&void 0!==s?s:e.readValue(a))&&void 0!==r?r:t[a]),null!=u&&("string"==typeof u&&(ix(u)||ig(u))?u=parseFloat(u):!iD(u)&&t$.test(l)&&(u=im(a,l)),e.addValue(a,iA(u,{owner:e})),void 0===i[a]&&(i[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,i,n);let e=rk(this,i,n,t);t=e.transitionEnd,i=e.target}return{transition:e,transitionEnd:t,...i}}}class r_ extends rz{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(O.has(t)){let e=ip(t);return e&&e.default||0}{let i=window.getComputedStyle(e),s=(F(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return sf(e,t)}build(e,t,i,s){en(e,t,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ew(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,i,s){ev(e,t,i,s)}}class r$ extends rz{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(O.has(t)){let e=ip(t);return e&&e.default||0}return t=ey.has(t)?t:c(t),e.getAttribute(t)}measureInstanceViewportBox(){return i7()}scrapeMotionValuesFromProps(e,t){return ex(e,t)}build(e,t,i,s){em(e,t,i,this.isSVGTag,s.transformTemplate)}renderInstance(e,t,i,s){eb(e,t,i,s)}mount(e){this.isSVGTag=eg(e.tagName),super.mount(e)}}let rN=(e,t)=>L(e)?new r$(t,{enableHardwareAcceleration:!1}):new r_(t,{enableHardwareAcceleration:!0}),rG={animation:{Feature:i_},exit:{Feature:iN},inView:{Feature:e3},tap:{Feature:eK},focus:{Feature:eq},hover:{Feature:eU},pan:{Feature:sS},drag:{Feature:sw,ProjectionNode:rg,MeasureLayout:sM},layout:{ProjectionNode:rg,MeasureLayout:sM}}
1,rW=function(e){function t(t,i={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:i,useVisualState:s,Component:r}){e&&function(e){for(let t in e)T[t]={...T[t],...e[t]}}(e);let n=(0,a.forwardRef)(function(n,c){var g;let v;let y={...(0,a.useContext)(o),...n,layoutId:function({layoutId:e}){let t=(0,a.useContext)(P.p).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:w}=y,S=function(e){let{initial:t,animate:i}=function(e,t){if(b(e)){let{initial:t,animate:i}=e;return{initial:!1===t||f(t)?t:void 0,animate:f(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(l));return(0,a.useMemo)(()=>({initial:t,animate:i}),[x(t),x(i)])}(n),T=s(n,w);if(!w&&E.j){S.visualElement=function(e,t,i,s){let{visualElement:r}=(0,a.useContext)(l),n=(0,a.useContext)(h),c=(0,a.useContext)(u.O),m=(0,a.useContext)(o).reducedMotion,f=(0,a.useRef)();s=s||n.renderer,!f.current&&s&&(f.current=s(e,{visualState:t,parent:r,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m}));let g=f.current;(0,a.useInsertionEffect)(()=>{g&&g.update(i,c)});let v=(0,a.useRef)(!!(i[p]&&!window.HandoffComplete));return(0,d.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(r,T,y,t);let i=(0,a.useContext)(C),s=(0,a.useContext)(h).strict;S.visualElement&&(v=S.visualElement.loadFeatures(y,s,e,i))}return a.createElement(l.Provider,{value:S},v&&S.visualElement?a.createElement(v,{visualElement:S.visualElement,...y}):null,i(r,n,(g=S.visualElement,(0,a.useCallback)(e=>{e&&T.mount&&T.mount(e),g&&(e?g.mount(e):g.unmount()),c&&("function"==typeof c?c(e):m(c)&&(c.current=e))},[g])),T,w,S.visualElement))});return n[M]=r,n}(e(t,i))}if("undefined"==typeof Proxy)return t;let i=new Map;return new Proxy(t,{get:(e,s)=>(i.has(s)||i.set(s,t(s)),i.get(s))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},i,s){return{...L(e)?ek:eV,preloadedFeatures:i,useRender:function(e=!1){return(t,i,s,{latestValues:r},n)=>{let o=(L(t)?function(e,t,i,s){let r=(0,a.useMemo)(()=>{let i=ef();return em(i,t,{enableHardwareAcceleration:!1},eg(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};eo(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t,i){let s={},r=function(e,t,i){let s=e.style||{},r={};return eo(r,s,e),Object.assign(r,function({transformTemplate:e},t,i){return(0,a.useMemo)(()=>{let s=ea();return en(s,t,{enableHardwareAcceleration:!i},e),Object.assign({},s.vars,s.style)},[t])}(e,t,i)),e.transformValues?e.transformValues(r):r}(e,t,i);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=r,s})(i,r,n,t),l={...function(e,t,i){let s={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(ed(r)||!0===i&&eu(r)||!t&&!eu(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}(i,"string"==typeof t,e),...o,ref:s},{children:u}=i,d=(0,a.useMemo)(()=>I(u)?u.get():u,[u]);return(0,a.createElement)(t,{...l,children:d})}}(t),createVisualElement:s,Component:e}})(e,t,rG,rN))},60163:function(e,t,i){"use strict";i.d(t,{K:function(){return r},k:function(){return n}});var s=i(97943);let r=s.Z,n=s.Z},41123:function(e,t,i){"use strict";i.d(t,{j:function(){return s}});let s="undefined"!=typeof document},97943:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});let s=e=>e},13263:function(e,t,i){"use strict";i.d(t,{h:function(){return r}});var s=i(67394);function r(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}},40683:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var s=i(67394);let r=i(41123).j?s.useLayoutEffect:s.useEffect},28949:function(e,t,i){"use strict";i.d(t,{tq:function(){return y},o5:function(){return w}});var s=i(67394),r=i(47188);function n(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function a(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
1i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:a(e[i],t[i]):e[i]=t[i]})}function o(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function l(e={}){return e.pagination&&void 0===e.pagination.el}function u(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function d(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}let h=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function c(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}let p=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function m(e,t){return"undefined"==typeof window?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)}let f=(0,s.createContext)(null),g=(0,s.createContext)(null);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}let y=(0,s.forwardRef)(function(e,t){let{className:i,tag:f="div",wrapperTag:y="div",children:b,onSwiper:w,...x}=void 0===e?{}:e,S=!1,[T,E]=(0,s.useState)("swiper"),[P,C]=(0,s.useState)(null),[M,A]=(0,s.useState)(!1),L=(0,s.useRef)(!1),k=(0,s.useRef)(null),V=(0,s.useRef)(null),O=(0,s.useRef)(null),D=(0,s.useRef)(null),I=(0,s.useRef)(null),j=(0,s.useRef)(null),R=(0,s.useRef)(null),B=(0,s.useRef)(null),{params:F,passedParams:z,rest:_,events:$}=function(e={},t=!0){let i={on:{}},s={},o={};a(i,r.ZP.defaults),a(i,r.ZP.extendedDefaults),i._emitClasses=!0,i.init=!1;let l={},u=h.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(r=>{void 0!==e[r]&&(u.indexOf(r)>=0?n(e[r])?(i[r]={},o[r]={},a(i[r],e[r]),a(o[r],e[r])):(i[r]=e[r],o[r]=e[r]):0===r.search(/on[A-Z]/)&&"function"==typeof e[r]?t?s[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:l[r]=e[r])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:o,rest:l,events:s}}(x),{slides:N,slots:G}=function(e){let t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};
1return s.Children.toArray(e).forEach(e=>{if(c(e))t.push(e);else if(e.props&&e.props.slot&&i[e.props.slot])i[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let i=[];return s.Children.toArray(t).forEach(t=>{c(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):i["container-end"].push(e)}else i["container-end"].push(e)}),{slides:t,slots:i}}(b),W=()=>{A(!M)};Object.assign(F.on,{_containerClasses(e,t){E(t)}});let H=()=>{Object.assign(F.on,$),S=!0;let e={...F};if(delete e.wrapperClass,V.current=new r.ZP(e),V.current.virtual&&V.current.params.virtual.enabled){V.current.virtual.slides=N;let e={cache:!1,slides:N,renderExternal:C,renderExternalUpdate:!1};a(V.current.params.virtual,e),a(V.current.originalParams.virtual,e)}};k.current||H(),V.current&&V.current.on("_beforeBreakpoint",W);let U=()=>{!S&&$&&V.current&&Object.keys($).forEach(e=>{V.current.on(e,$[e])})},q=()=>{$&&V.current&&Object.keys($).forEach(e=>{V.current.off(e,$[e])})};return(0,s.useEffect)(()=>()=>{V.current&&V.current.off("_beforeBreakpoint",W)}),(0,s.useEffect)(()=>{!L.current&&V.current&&(V.current.emitSlidesClasses(),L.current=!0)}),m(()=>{if(t&&(t.current=k.current),k.current)return V.current.destroyed&&H(),function({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:n},a){o(a)&&t&&i&&(n.params.navigation.nextEl=t,n.originalParams.navigation.nextEl=t,n.params.navigation.prevEl=i,n.originalParams.navigation.prevEl=i),l(a)&&s&&(n.params.pagination.el=s,n.originalParams.pagination.el=s),u(a)&&r&&(n.params.scrollbar.el=r,n.originalParams.scrollbar.el=r),n.init(e)}({el:k.current,nextEl:I.current,prevEl:j.current,paginationEl:R.current,scrollbarEl:B.current,swiper:V.current},F),w&&w(V.current),()=>{V.current&&!V.current.destroyed&&V.current.destroy(!0,!1)}},[]),m(()=>{U();let e=function(e,t,i,s,r){let a=[];if(!t)return a;let o=e=>{0>a.indexOf(e)&&a.push(e)};if(i&&s){let e=s.map(r),t=i.map(r);e.join("")!==t.join("")&&o("children"),s.length!==i.length&&o("children")}return h.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t){if(n(e[i])&&n(t[i])){let s=Object.keys(e[i]),r=Object.keys(t[i]);s.length!==r.length?o(i):(s.forEach(s=>{e[i][s]!==t[i][s]&&o(i)}),r.forEach(s=>{e[i][s]!==t[i][s]&&o(i)}))}else e[i]!==t[i]&&o(i)}}),a}(z,O.current,N,D.current,e=>e.key);return O.current=z,D.current=N,e.length&&V.current&&!V.current.destroyed&&function({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:o,scrollbarEl:l,paginationEl:u}){let d,h,c,p,m,f,g,v;let y=s.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:b,pagination:w,navigation:x,scrollbar:S,virtual:T,thumbs:E}=e;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&b.thumbs&&!b.thumbs.swiper&&(d=!0),s.includes("controller")&&i.controller&&i.controller.control&&b.controller&&!b.controller.control&&(h=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||u)&&(b.pagination||!1===b.pagination)&&w&&!w.el&&(c=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||l)&&(b.scrollbar||!1===b.scrollbar)&&S&&!S.el&&(p=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||o)&&(i.navigation.nextEl||r)&&(b.navigation||!1===b.navigation)&&x&&!x.prevEl&&!x.nextEl&&(m=!0);let P=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),b[t].prevEl=void 0,b[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),b[t].el=void 0,e[t].el=void 0))};s.includes("loop")&&e.isElement&&(b.loop&&!i.loop?f=!0:!b.loop&&i.loop?g=!0:v=!0),y.forEach(e=>{if(n(b[e])&&n(i[e]))a(b[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&P(e);else{let t=i[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&P(e):b[e]=i[e]}}),y.includes("controller")&&!h&&e.controller&&e.controller.control&&b.controller&&b.controller.control&&(e.controller.control=b.controller.control),s.includes("children")&&t&&T&&b.virtual.enabled&&(T.slides=t,T.update(!0)),s.includes("children")&&t&&b.loop&&(v=!0),d&&E.init()&&E.update(!0),h&&(e.controller.control=b.controller.control),c&&(e.isElement&&(!u||"string"==typeof u)&&((u=
1document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(u)),u&&(b.pagination.el=u),w.init(),w.render(),w.update()),p&&(e.isElement&&(!l||"string"==typeof l)&&((l=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(b.scrollbar.el=l),S.init(),S.updateSize(),S.setTranslate()),m&&(e.isElement&&(r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),r&&(b.navigation.nextEl=r),o&&(b.navigation.prevEl=o),x.init(),x.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(f||v)&&e.loopDestroy(),(g||v)&&e.loopCreate(),e.update()}({swiper:V.current,slides:N,passedParams:z,changedParams:e,nextEl:I.current,prevEl:j.current,scrollbarEl:B.current,paginationEl:R.current}),()=>{q()}}),m(()=>{p(V.current)},[P]),s.createElement(f,v({ref:k,className:d(`${T}${i?` ${i}`:""}`)},_),s.createElement(g.Provider,{value:V.current},G["container-start"],s.createElement(y,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(F.wrapperClass)},G["wrapper-start"],F.virtual?function(e,t,i){if(!i)return null;let r=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:a,to:o}=i,l=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,d=[];for(let e=l;e<u;e+=1)e>=a&&e<=o&&d.push(t[r(e)]);return d.map((t,i)=>s.cloneElement(t,{swiper:e,style:n,key:`slide-${i}`}))}(V.current,N,P):N.map((e,t)=>s.cloneElement(e,{swiper:V.current,swiperSlideIndex:t})),G["wrapper-end"]),o(F)&&s.createElement(s.Fragment,null,s.createElement("div",{ref:j,className:"swiper-button-prev"}),s.createElement("div",{ref:I,className:"swiper-button-next"})),u(F)&&s.createElement("div",{ref:B,className:"swiper-scrollbar"}),l(F)&&s.createElement("div",{ref:R,className:"swiper-pagination"}),G["container-end"]))});function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}y.displayName="Swiper";let w=(0,s.forwardRef)(function(e,t){let{tag:i="div",children:r,className:n="",swiper:a,zoom:o,lazy:l,virtualIndex:u,swiperSlideIndex:h,...c}=void 0===e?{}:e,p=(0,s.useRef)(null),[g,v]=(0,s.useState)("swiper-slide"),[y,w]=(0,s.useState)(!1);function x(e,t,i){t===p.current&&v(i)}m(()=>{if(void 0!==h&&(p.current.swiperSlideIndex=h),t&&(t.current=p.current),p.current&&a){if(a.destroyed){"swiper-slide"!==g&&v("swiper-slide");return}return a.on("_slideClass",x),()=>{a&&a.off("_slideClass",x)}}}),m(()=>{a&&p.current&&!a.destroyed&&v(a.getSlideClasses(p.current))},[a]);let S={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},T=()=>"function"==typeof r?r(S):r;return s.createElement(i,b({ref:p,className:d(`${g}${n?` ${n}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{w(!0)}},c),o&&s.createElement(f.Provider,{value:S},s.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},T(),l&&!y&&s.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&s.createElement(f.Provider,{value:S},T(),l&&!y&&s.createElement("div",{className:"swiper-lazy-preloader"})))});w.displayName="SwiperSlide"},47188:function(e,t,i){"use strict";let s,r,n;function a(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function o(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:a(t[i])&&a(e[i])&&Object.keys(t[i]).length>0&&o(e[i],t[i])})}i.d(t,{s5:function(){return q},pt:function(){return Y},tl:function(){return U},ZP:function(){return W}});let l={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function u(){let e="undefined"!=typeof document?document:{};return o(e,l),e}let d={document:l,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
1,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function h(){let e="undefined"!=typeof window?window:{};return o(e,d),e}function c(e,t=0){return setTimeout(e,t)}function p(){return Date.now()}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(...e){let t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s<e.length;s+=1){let r=e[s];if(null!=r&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(r instanceof HTMLElement):!r||1!==r.nodeType&&11!==r.nodeType)){let e=Object.keys(Object(r)).filter(e=>0>i.indexOf(e));for(let i=0,s=e.length;i<s;i+=1){let s=e[i],n=Object.getOwnPropertyDescriptor(r,s);void 0!==n&&n.enumerable&&(m(t[s])&&m(r[s])?r[s].__swiper__?t[s]=r[s]:f(t[s],r[s]):!m(t[s])&&m(r[s])?(t[s]={},r[s].__swiper__?t[s]=r[s]:f(t[s],r[s])):t[s]=r[s])}}}return t}function g(e,t,i){e.style.setProperty(t,i)}function v({swiper:e,targetPosition:t,side:i}){let s;let r=h(),n=-e.translate,a=null,o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);let l=t>n?"next":"prev",u=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,d=()=>{s=new Date().getTime(),null===a&&(a=s);let l=n+(.5-Math.cos(Math.max(Math.min((s-a)/o,1),0)*Math.PI)/2)*(t-n);if(u(l,t)&&(l=t),e.wrapperEl.scrollTo({[i]:l}),u(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:l})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(d)};d()}function y(e,t=""){return[...e.children].filter(e=>e.matches(t))}function b(e,t=[]){let i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function w(e,t){return h().getComputedStyle(e,null).getPropertyValue(t)}function x(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function S(e,t){let i=[],s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function T(e,t,i){let s=h();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function E(){return s||(s=function(){let e=h(),t=u();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),s}let P=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},C=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},M=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[r-t];i.push(...Array.from({length:t}).map((e,t)=>r+s+t)),e.slides.forEach((t,s)=>{i.includes(t.column)&&C(e,s)});return}let n=r+s-1;if(e.params.rewind||e.params.loop)for(let s=r-t;s<=n+t;s+=1){let t=(s%i+i)%i;(t<r||t>n)&&C(e,t)}else for(let s=Math.max(r-t,0);s<=Math.min(n+t,i-1);s+=1)s!==r&&(s>n||s<r)&&C(e,s)};function A({swiper:e,runCallbacks:t,direction:i,step:s}){let{activeIndex:r,previousIndex:n}=e,a=i;if(a||(a=r>n?"next":r<n?"prev":"reset"),e.emit(`transition${s}`),t&&r!==n){if("reset"===a){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),"next"===a?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function L(e){let t=u(),i=h(),s=this.touchEventsData;s.evCache.push(e);let{params:r,touches:n,enabled:a}=this;if(!a||!r.simulateTouch&&"mouse"===e.pointerType||this.animating&&r.preventInteractionOnTransition)return;!this.animating&&r.cssMode&&r.loop&&this.loopFix();let o=e;o.originalEvent&&(o=o.originalEvent);let l=o.target;if("wrapper"===r.touchEventsTarget&&!this.wrapperEl.contains(l)||"which"in o&&3===o.which||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;
1let d=!!r.noSwipingClass&&""!==r.noSwipingClass,c=e.composedPath?e.composedPath():e.path;d&&o.target&&o.target.shadowRoot&&c&&(l=c[0]);let m=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(r.noSwiping&&(f?function(e,t=this){return function t(i){if(!i||i===u()||i===h())return null;i.assignedSlot&&(i=i.assignedSlot);let s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(m,l):l.closest(m))){this.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;n.currentX=o.pageX,n.currentY=o.pageY;let g=n.currentX,v=n.currentY,y=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,b=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(y&&(g<=b||g>=i.innerWidth-b)){if("prevent"!==y)return;e.preventDefault()}Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=g,n.startY=v,s.touchStartTime=p(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let w=!0;l.matches(s.focusableElements)&&(w=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==l&&t.activeElement.blur();let x=w&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||x)&&!l.isContentEditable&&o.preventDefault(),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.animating&&!r.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",o)}function k(e){let t;let i=u(),s=this.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=this;if(!o||!r.simulateTouch&&"mouse"===e.pointerType)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&this.emit("touchMoveOpposite",l);return}let d=s.evCache.findIndex(e=>e.pointerId===l.pointerId);d>=0&&(s.evCache[d]=l);let h=s.evCache.length>1?s.evCache[0]:l,c=h.pageX,m=h.pageY;if(l.preventedByNestedSwiper){n.startX=c,n.startY=m;return}if(!this.allowTouchMove){l.target.matches(s.focusableElements)||(this.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:c,startY:m,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:c,currentY:m}),s.touchStartTime=p());return}if(r.touchReleaseOnEdges&&!r.loop){if(this.isVertical()){if(m<n.startY&&this.translate<=this.maxTranslate()||m>n.startY&&this.translate>=this.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(c<n.startX&&this.translate<=this.maxTranslate()||c>n.startX&&this.translate>=this.minTranslate())return}if(i.activeElement&&l.target===i.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,this.allowClick=!1;return}if(s.allowTouchCallbacks&&this.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;n.currentX=c,n.currentY=m;let f=n.currentX-n.startX,g=n.currentY-n.startY;if(this.params.threshold&&Math.sqrt(f**2+g**2)<this.params.threshold)return;if(void 0===s.isScrolling){let e;this.isHorizontal()&&n.currentY===n.startY||this.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,s.isScrolling=this.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(s.isScrolling&&this.emit("touchMoveOpposite",l),void 0===s.startMoving&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;this.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let v=this.isHorizontal()?f:g,y=this.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(v=Math.abs(v)*(a?1:-1),y=Math.abs(y)*(a?1:-1)),n.diff=v,v*=r.touchRatio,a&&(v=-v,y=-y);let b=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=y>0?"prev":"next";let w=this.params.loop&&!r.cssMode;if(!s.isMoved){if(w&&this.loopFix({direction:this.swipeDirection}),s.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
1this.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,r.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",l)}s.isMoved&&b!==this.touchesDirection&&w&&Math.abs(v)>=1&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),t=!0),this.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=v+s.startTranslate;let x=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),v>0?(w&&!t&&s.currentTranslate>(r.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>this.minTranslate()&&(x=!1,r.resistance&&(s.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+s.startTranslate+v)**S))):v<0&&(w&&!t&&s.currentTranslate<(r.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===r.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<this.maxTranslate()&&(x=!1,r.resistance&&(s.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-s.startTranslate-v)**S))),x&&(l.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),this.allowSlidePrev||this.allowSlideNext||(s.currentTranslate=s.startTranslate),r.threshold>0){if(Math.abs(v)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=this.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&this.freeMode||r.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(s.currentTranslate),this.setTranslate(s.currentTranslate))}function V(e){let t;let i=this,s=i.touchEventsData,r=s.evCache.findIndex(t=>t.pointerId===e.pointerId);if(r>=0&&s.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!("pointercancel"===e.type&&(i.browser.isSafari||i.browser.isWebView)))return;let{params:n,touches:a,rtlTranslate:o,slidesGrid:l,enabled:u}=i;if(!u||!n.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),s.allowTouchCallbacks&&i.emit("touchEnd",d),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&n.grabCursor&&i.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}n.grabCursor&&s.isMoved&&s.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);let h=p(),m=h-s.touchStartTime;if(i.allowClick){let e=d.path||d.composedPath&&d.composedPath();i.updateClickedSlide(e&&e[0]||d.target),i.emit("tap click",d),m<300&&h-s.lastClickTime<300&&i.emit("doubleTap doubleClick",d)}if(s.lastClickTime=p(),c(()=>{i.destroyed||(i.allowClick=!0)}),!s.isTouched||!s.isMoved||!i.swipeDirection||0===a.diff||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,t=n.followFinger?o?i.translate:-i.translate:-s.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:t});return}let f=0,g=i.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){let i=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==l[e+i]?t>=l[e]&&t<l[e+i]&&(f=e,g=l[e+i]-l[e]):t>=l[e]&&(f=e,g=l[l.length-1]-l[l.length-2])}let v=null,y=null;n.rewind&&(i.isBeginning?y=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(v=0));let b=(t-l[f])/g,w=f<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(m>n.longSwipesMs){if(!n.longSwipes){i.slideTo(i.activeIndex);return}"next"===i.swipeDirection&&(b>=n.longSwipesRatio?i.slideTo(n.rewind&&i.isEnd?v:f+w):i.slideTo(f)),"prev"===i.swipeDirection&&(b>1-n.longSwipesRatio?i.slideTo(f+w):null!==y&&b<0&&Math.abs(b)>n.longSwipesRatio?i.slideTo(y):i.slideTo(f))}else{if(!n.shortSwipes){i.slideTo(i.activeIndex);return}i.navigation&&(d.target===i.navigation.nextEl||d.target===i.navigation.prevEl)?d.target===i.navigation.nextEl?i.slideTo(f+w):i.slideTo(f):("next"===i.swipeDirection&&i.slideTo(null!==v?v:f+w),"prev"===i.swipeDirection&&i.slideTo(null!==y?y:f))}}function O(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let o=a&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function D(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function I(){let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let s=this.maxTranslate()-this.minTranslate();(0===s?0:(this.translate-this.minTranslate())/s)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit
1("setTranslate",this.translate,!1)}function j(e){P(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}let R=!1;function B(){}let F=(e,t)=>{let i=u(),{params:s,el:r,wrapperEl:n,device:a}=e,o=!!s.nested,l="on"===t?"addEventListener":"removeEventListener";r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",e.onClick,!0),s.cssMode&&n[l]("scroll",e.onScroll),s.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",O,!0):e[t]("observerUpdate",O,!0),r[l]("load",e.onLoad,{capture:!0})},z=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var _={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let $={eventsEmitter:{on(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;let r=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)}),s},once(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;function r(...i){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,i)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i},emit(...e){let t,i,s;let r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],i=e.slice(1,e.length),s=r):(t=e[0].events,i=e[0].data,s=e[0].context||r),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEac
1h(t=>{t.apply(s,[e,...i])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(s,i)})})),r}},update:{updateSize:function(){let e,t;let i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(w(i,"padding-left")||0,10)-parseInt(w(i,"padding-right")||0,10),t=t-parseInt(w(i,"padding-top")||0,10)-parseInt(w(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function i(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function s(e,t){return parseFloat(e.getPropertyValue(i(t))||0)}let r=t.params,{wrapperEl:n,slidesEl:a,size:o,rtlTranslate:l,wrongRTL:u}=t,d=t.virtual&&r.virtual.enabled,h=d?t.virtual.slides.length:t.slides.length,c=y(a,`.${t.params.slideClass}, swiper-slide`),p=d?t.virtual.slides.length:c.length,m=[],f=[],v=[],b=r.slidesOffsetBefore;"function"==typeof b&&(b=r.slidesOffsetBefore.call(t));let x=r.slidesOffsetAfter;"function"==typeof x&&(x=r.slidesOffsetAfter.call(t));let S=t.snapGrid.length,E=t.slidesGrid.length,P=r.spaceBetween,C=-b,M=0,A=0;if(void 0===o)return;"string"==typeof P&&P.indexOf("%")>=0?P=parseFloat(P.replace("%",""))/100*o:"string"==typeof P&&(P=parseFloat(P)),t.virtualSize=-P,c.forEach(e=>{l?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(g(n,"--swiper-centered-offset-before",""),g(n,"
1--swiper-centered-offset-after",""));let L=r.grid&&r.grid.rows>1&&t.grid;L&&t.grid.initSlides(p);let k="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let n=0;n<p;n+=1){let a;if(e=0,c[n]&&(a=c[n]),L&&t.grid.updateSlide(n,a,p,i),!c[n]||"none"!==w(a,"display")){if("auto"===r.slidesPerView){k&&(c[n].style[i("width")]="");let o=getComputedStyle(a),l=a.style.transform,u=a.style.webkitTransform;if(l&&(a.style.transform="none"),u&&(a.style.webkitTransform="none"),r.roundLengths)e=t.isHorizontal()?T(a,"width",!0):T(a,"height",!0);else{let t=s(o,"width"),i=s(o,"padding-left"),r=s(o,"padding-right"),n=s(o,"margin-left"),l=s(o,"margin-right"),u=o.getPropertyValue("box-sizing");if(u&&"border-box"===u)e=t+n+l;else{let{clientWidth:s,offsetWidth:o}=a;e=t+i+r+n+l+(o-s)}}l&&(a.style.transform=l),u&&(a.style.webkitTransform=u),r.roundLengths&&(e=Math.floor(e))}else e=(o-(r.slidesPerView-1)*P)/r.slidesPerView,r.roundLengths&&(e=Math.floor(e)),c[n]&&(c[n].style[i("width")]=`${e}px`);c[n]&&(c[n].swiperSlideSize=e),v.push(e),r.centeredSlides?(C=C+e/2+M/2+P,0===M&&0!==n&&(C=C-o/2-P),0===n&&(C=C-o/2-P),.001>Math.abs(C)&&(C=0),r.roundLengths&&(C=Math.floor(C)),A%r.slidesPerGroup==0&&m.push(C),f.push(C)):(r.roundLengths&&(C=Math.floor(C)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup==0&&m.push(C),f.push(C),C=C+e+P),t.virtualSize+=e+P,M=e,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+x,l&&u&&("slide"===r.effect||"coverflow"===r.effect)&&(n.style.width=`${t.virtualSize+P}px`),r.setWrapperSize&&(n.style[i("width")]=`${t.virtualSize+P}px`),L&&t.grid.updateWrapperSize(e,m,i),!r.centeredSlides){let e=[];for(let i=0;i<m.length;i+=1){let s=m[i];r.roundLengths&&(s=Math.floor(s)),m[i]<=t.virtualSize-o&&e.push(s)}m=e,Math.floor(t.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-o)}if(d&&r.loop){let e=v[0]+P;if(r.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),s=e*r.slidesPerGroup;for(let e=0;e<i;e+=1)m.push(m[m.length-1]+s)}for(let i=0;i<t.virtual.slidesBefore+t.virtual.slidesAfter;i+=1)1===r.slidesPerGroup&&m.push(m[m.length-1]+e),f.push(f[f.length-1]+e),t.virtualSize+=e}if(0===m.length&&(m=[0]),0!==P){let e=t.isHorizontal()&&l?"marginLeft":i("marginRight");c.filter((e,t)=>!r.cssMode||!!r.loop||t!==c.length-1).forEach(t=>{t.style[e]=`${P}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(P||0)});let t=(e-=P)-o;m=m.map(e=>e<=0?-b:e>t?t+x:e)}if(r.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(P||0)}),(e-=P)<o){let t=(o-e)/2;m.forEach((e,i)=>{m[i]=e-t}),f.forEach((e,i)=>{f[i]=e+t})}}if(Object.assign(t,{slides:c,snapGrid:m,slidesGrid:f,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){g(n,"--swiper-centered-offset-before",`${-m[0]}px`),g(n,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(p!==h&&t.emit("slidesLengthChange"),m.length!==S&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==E&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!d&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);p<=r.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let i=this,s=[],r=i.virtual&&i.params.virtual.enabled,n=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let a=e=>r?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1){if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{s.push(e)});else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){let e=i.activeIndex+t;if(e>i.slides.length&&!r)break;s.push(a(e))}}else s.push(a(i.activeIndex));for(t=0;t<s.length;t+=1)if(void 0!==s[t]){let e=s[t].offsetHeight;n=e>n?e:n}
1(n||0===n)&&(i.wrapperEl.style.height=`${n}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(this.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:i,rtlTranslate:s,snapGrid:r}=this;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();let n=-e;s&&(n=e),i.forEach(e=>{e.classList.remove(t.slideVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[];let a=t.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*this.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){let o=i[e],l=o.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=i[0].swiperSlideOffset);let u=(n+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),d=(n-r[0]+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),h=-(n-l),c=h+this.slidesSizesGrid[e];(h>=0&&h<this.size-1||c>1&&c<=this.size||h<=0&&c>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(e),i[e].classList.add(t.slideVisibleClass)),o.progress=s?-u:u,o.originalProgress=s?-d:d}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:s,isBeginning:r,isEnd:n,progressLoop:a}=this,o=r,l=n;if(0===i)s=0,r=!0,n=!0;else{s=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());r=t||s<=0,n=a||s>=1,t&&(s=0),a&&(s=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),s=this.slidesGrid[t],r=this.slidesGrid[i],n=this.slidesGrid[this.slidesGrid.length-1],o=Math.abs(e);(a=o>=s?(o-s)/n:(o+n-r)/n)>1&&(a-=1)}Object.assign(this,{progress:s,progressLoop:a,isBeginning:r,isEnd:n}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!o&&this.emit("reachBeginning toEdge"),n&&!l&&this.emit("reachEnd toEdge"),(o&&!r||l&&!n)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){let e;let{slides:t,params:i,slidesEl:s,activeIndex:r}=this,n=this.virtual&&i.virtual.enabled,a=e=>y(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];if(t.forEach(e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}),n){if(i.loop){let t=r-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=a(`[data-swiper-slide-index="${t}"]`)}else e=a(`[data-swiper-slide-index="${r}"]`)}else e=t[r];if(e){e.classList.add(i.slideActiveClass);let s=function(e,t){let i=[];for(;e.nextElementSibling;){let s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!s&&(s=t[0]),s&&s.classList.add(i.slideNextClass);let r=function(e,t){let i=[];for(;e.previousElementSibling;){let s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop,r&&r.classList.add(i.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i;let s=this,r=s.rtlTranslate?s.translate:-s.translate,{snapGrid:n,params:a,activeIndex:o,realIndex:l,snapIndex:u}=s,d=e,h=e=>{let t=e-s.virtual.slidesBefore;return t<0&&(t=s.virtual.slides.length+t),t>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===d&&(d=function(e){let t;let{slidesGrid:i,params:s}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?r>=i[e]&&r<i[e+1]-(i[e+1]-i[e])/2?t=e:r>=i[e]&&r<i[e+1]&&(t=e+1):r>=i[e]&&(t=e);return s.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(s)),n.indexOf(r)>=0)t=n.indexOf(r);else{let e=Math.min(a.slidesPerGroupSkip,d);t=e+Math.floor((d-e)/a.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),d===o){t!==u&&(s.snapIndex=t,s.emit("snapIndexChange")),s.params.loop&&s.virtual&&s.params.virtual.enabled&&(s.realIndex=h(d));return}i=s.virtual&&a.virtual.enabled&&a.loop?h(d):s.slides[d]?parseInt(s.slides[d].getAttribute("data-swiper-slide-index")||d,10):d,Object.assign(s,{previousSnapIndex:u,snapIndex:t,previousRealIndex:l,realIndex:i,previousIndex:o,activeIndex:d}),s.initialized&&M(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),l!==i&&s.emit("realIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&s.emit("slideChange")},updateClickedSlide:function(e){let t;let i=this.params,s=e.closest(`.${i.slideClass}, swiper-slide`),r=!1;if(s){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===s){r=!0,t=e;break}}if(s&&r)this.clickedSlide=s,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=t;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}i.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:i,translate:s,wrapperEl:r}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let n=function(e,t="x"){let i,s,r;let n=h(),a=function(e){let t;let i=h();return i.getComputedStyle&&(t=i.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e,null);return n.WebKitCSSMatrix?((s=a.transform||a.webkitTransform).split(",").length>6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):i=(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(r,e);return n+=this.cssOverflowAdjustment(),i&&(n=-n),n||0},setTranslate:function(e,t){let{rtlTranslate:i,params:s,wrapperEl:r,progress:n}=this,a=0,o=0;this.isHorizontal()?a=i?-e:e:o=e,s.roundLengths&&(a=Math.floor(a),o=Math.floor(o)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:o,s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-a:-o:s.virtualTranslate||(this.isHorizontal()?a-=this.cssOverflowAdjustment():o-=this.cssOverflowAdjustment(),r.style.transform=`translate3d(${a}px, ${o}px, 0px)`);let l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==n&&this.updateProgress(e),this.emit
1("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,r){let n;let a=this,{params:o,wrapperEl:l}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let u=a.minTranslate(),d=a.maxTranslate();if(n=s&&e>u?u:s&&e<d?d:e,a.updateProgress(n),o.cssMode){let e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-n;else{if(!a.support.smoothScroll)return v({swiper:a,targetPosition:-n,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-n,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(n),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(n),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:i}=this;i.cssMode||(i.autoHeight&&this.updateAutoHeight(),A({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),A({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,i=!0,s,r){let n;"string"==typeof e&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:l,snapGrid:u,slidesGrid:d,previousIndex:h,activeIndex:c,rtlTranslate:p,wrapperEl:m,enabled:f}=a;if(a.animating&&l.preventInteractionOnTransition||!f&&!s&&!r)return!1;let g=Math.min(a.params.slidesPerGroupSkip,o),y=g+Math.floor((o-g)/a.params.slidesPerGroup);y>=u.length&&(y=u.length-1);let b=-u[y];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){let t=-Math.floor(100*b),i=Math.floor(100*d[e]),s=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==c&&(!a.allowSlideNext&&(p?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate())||!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(c||0)!==o))return!1;if(o!==(h||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),n=o>c?"next":o<c?"prev":"reset",p&&-b===a.translate||!p&&b===a.translate)return a.updateActiveIndex(o),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(b),"reset"!==n&&(a.transitionStart(i,n),a.transitionEnd(i,n)),!1;if(l.cssMode){let e=a.isHorizontal(),i=p?b:-b;if(0===t){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=i})):m[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return v({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,n),0===t?a.transitionEnd(i,n):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,n))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){"string"==typeof e&&(e=parseInt(e,10));let r=e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?r+=this.virtual.slidesBefore:r=this.getSlideIndexByData(r)),this.slideTo(r,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){let{enabled:s,params:r,animating:n}=this;if(!s)return this;let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(this.slidesPerViewDynamic("current",!0),1));let o=this.activeIndex<r.slidesPerGroupSkip?1:a,l=this.virtual&&r.virtual.enabled;if(r.loop){if(n&&!l&&r.loopPreventsSliding)return!1;this.loopFix({direction:"next"}),this._clientLeft=this.wrapperEl.clientLeft}return r.rewind&&this.isEnd?this.slideTo(0,e,t,i):this.slideTo(this.activeIndex+o,e,t,i)},slidePrev:function(e=this.params.speed,t=!0,i){let{params:s,snapGrid:r,slidesGrid:n,rtlTranslate:a,enabled:o,animating:l}=this;if(!o)return this;let u=this.virtual&&s.virtual.enabled;if(s.loop){if(l&&!u&&s.loopPreventsSliding)return!1;this.loopFix({direction:"prev"}),this._clientLeft=this.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let h=d(a?this.translate:-this.translate),c=r.map(e=>d(e)),p=r[c.indexOf(h)-1];if(void 0===p&&s.cssMode){let e;r.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(p=r[e>0?e-1:e])}let m=0;if(void 0!==p&&((m=n.indexOf(p))<0&&(m=this.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(m=Math.max(m=m-this.slidesPerViewDynamic("previous",!0)+1,0))),s.rewind&&this.isBeg
1inning){let s=this.params.virtual&&this.params.virtual.enabled&&this.virtual?this.virtual.slides.length-1:this.slides.length-1;return this.slideTo(s,e,t,i)}return this.slideTo(m,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){let r=this.activeIndex,n=Math.min(this.params.slidesPerGroupSkip,r),a=n+Math.floor((r-n)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){let e=this.snapGrid[a];o-e>(this.snapGrid[a+1]-e)*s&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];o-e<=(this.snapGrid[a]-e)*s&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){let e;let t=this,{params:i,slidesEl:s}=t,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.clickedIndex,a=t.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),n=t.getSlideIndex(y(s,`${a}[data-swiper-slide-index="${e}"]`)[0]),c(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-r?(t.loopFix(),n=t.getSlideIndex(y(s,`${a}[data-swiper-slide-index="${e}"]`)[0]),c(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}},loop:{loopCreate:function(e){let{params:t,slidesEl:i}=this;!t.loop||this.virtual&&this.params.virtual.enabled||(y(i,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:n,byMousewheel:a}={}){let o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:h,params:c}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&c.virtual.enabled){t&&(c.centeredSlides||0!==o.snapIndex?c.centeredSlides&&o.snapIndex<c.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=u,o.allowSlideNext=d,o.emit("loopFix");return}let p="auto"===c.slidesPerView?o.slidesPerViewDynamic():Math.ceil(parseFloat(c.slidesPerView,10)),m=c.loopedSlides||p;m%c.slidesPerGroup!=0&&(m+=c.slidesPerGroup-m%c.slidesPerGroup),o.loopedSlides=m;let f=[],g=[],v=o.activeIndex;void 0===r?r=o.getSlideIndex(o.slides.filter(e=>e.classList.contains(c.slideActiveClass))[0]):v=r;let y="next"===i||!i,b="prev"===i||!i,w=0,x=0;if(r<m){w=Math.max(m-r,c.slidesPerGroup);for(let e=0;e<m-r;e+=1){let t=e-Math.floor(e/l.length)*l.length;f.push(l.length-t-1)}}else if(r>o.slides.length-2*m){x=Math.max(r-(o.slides.length-2*m),c.slidesPerGroup);for(let e=0;e<x;e+=1){let t=e-Math.floor(e/l.length)*l.length;g.push(t)}}if(b&&f.forEach(e=>{o.slides[e].swiperLoopMoveDOM=!0,h.prepend(o.slides[e]),o.slides[e].swiperLoopMoveDOM=!1}),y&&g.forEach(e=>{o.slides[e].swiperLoopMoveDOM=!0,h.append(o.slides[e]),o.slides[e].swiperLoopMoveDOM=!1}),o.recalcSlides(),"auto"===c.slidesPerView&&o.updateSlides(),c.watchSlidesProgress&&o.updateSlidesOffset(),t){if(f.length>0&&b){if(void 0===e){let e=o.slidesGrid[v],t=o.slidesGrid[v+w]-e;a?o.setTranslate(o.translate-t):(o.slideTo(v+w,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else s&&o.slideToLoop(e,0,!1,!0)}else if(g.length>0&&y){if(void 0===e){let e=o.slidesGrid[v],t=o.slidesGrid[v-x]-e;a?o.setTranslate(o.translate-t):(o.slideTo(v-x,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else o.slideToLoop(e,0,!1,!0)}}if(o.allowSlidePrev=u,o.allowSlideNext=d,o.controller&&o.controller.control&&!n){let t={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)}
1):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(t)}o.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let e=u(),{params:t}=this;this.onTouchStart=L.bind(this),this.onTouchMove=k.bind(this),this.onTouchEnd=V.bind(this),t.cssMode&&(this.onScroll=I.bind(this)),this.onClick=D.bind(this),this.onLoad=j.bind(this),R||(e.addEventListener("touchstart",B),R=!0),F(this,"on")},detachEvents:function(){F(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:s,el:r}=e,n=s.breakpoints;if(!n||n&&0===Object.keys(n).length)return;let a=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;let o=(a in n?n[a]:void 0)||e.originalParams,l=z(e,s),u=z(e,o),d=s.enabled;l&&!u?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&u&&(r.classList.add(`${s.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===s.grid.fill)&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===o[t])return;let i=s[t]&&s[t].enabled,r=o[t]&&o[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});let h=o.direction&&o.direction!==s.direction,c=s.loop&&(o.slidesPerView!==s.slidesPerView||h);h&&i&&e.changeDirection(),f(e.params,o);let p=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!p?e.disable():!d&&p&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",o),c&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",o)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1,r=h(),n="window"===t?r.innerHeight:i.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:n*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:n,value:o}=a[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(s=n):o<=i.clientWidth&&(s=n)}return s||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:i}=t;if(i){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*i;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:i,el:s,device:r}=this,n=function(e,t){let i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...n),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},N={};class G{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=f({},i),t&&!i.el&&(i.el=t);let s=u();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){let e=[];return s.querySelectorAll(i.el).forEach(t=>{let s=f({},i,{el:t});e.push(new G(s))}),e}let a=this;a.__swiper__=!0,a.support=E(),a.device=function(e={}){return r||(r=function({userAgent:e}={}){let t=E(),i=h(),s=i.navigator.platform,r=e||i.navigator.userAgent,n={ios:!1,android:!1},a=i.screen.width,o=i.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/),u=r.match(/(iPad).*OS\s([\d_]+)/),d=r.match(/(iPod)(.*OS\s([\d_]+))?/),c=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="MacIntel"===s;return!u&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&((u=r.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),p=!1),l&&"Win32"!==s&&(n.os="android",n.android=!0),(u||c||d)&&(n.os="ios",n.ios=!0),n}(e)),r}({userAgent:i.userAgent}),a.browser=(n||(n=function(){let e=h(),t=!1;function i(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(i()){let i=String(e.navigator.userAgent);if(i.includes("Version/")){let[e,s]=i.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWeb
1Kit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),n),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);let o={};a.modules.forEach(e=>{var t;e({params:i,swiper:a,extendParams:(t=i,function(e={}){let i=Object.keys(e)[0],s=e[i];if("object"!=typeof s||null===s||(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===t[i]&&(t[i]={auto:!0}),!(i in t&&"enabled"in s))){f(o,e);return}!0===t[i]&&(t[i]={enabled:!0}),"object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),f(o,e)}),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});let l=f({},_,o);return a.params=f({},l,N,i),a.originalParams=f({},a.params),a.passedParams=f({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getSlideIndex(e){let{slidesEl:t,params:i}=this,s=x(y(t,`.${i.slideClass}, swiper-slide`)[0]);return x(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=y(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:i,slides:s,slidesGrid:r,slidesSizesGrid:n,size:a,activeIndex:o}=this,l=1;if(i.centeredSlides){let e,t=s[o]?s[o].swiperSlideSize:0;for(let i=o+1;i<s.length;i+=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<s.length;e+=1)(t?r[e]+n[e]-r[o]<a:r[e]-r[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)r[o]-r[e]<a&&(l+=1);return l}update(){let e;let t=this;if(!t||t.destroyed)return;let{snapGrid:i,params:s}=t;function r(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(s.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEac
1h(e=>{e.complete&&P(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){let i=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.shadowEl&&(t.isElement=!0);let s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):y(i,s())[0];return!r&&t.params.createElements&&(r=b("div",t.params.wrapperClass),i.append(r),y(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement?i:r,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===w(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===w(i,"direction")),wrongRTL:"-webkit-box"===w(r,"display")}),!0}init(e){let t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?P(t,e):e.addEventListener("load",e=>{P(t,e.target)})}),M(t),t.initialized=!0,M(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){let i=this,{params:s,el:r,wrapperEl:n,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttribute("style"),n.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el.swiper=null,function(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){f(N,e)}static get extendedDefaults(){return N}static get defaults(){return _}static installModule(e){G.prototype.__modules__||(G.prototype.__modules__=[]);let t=G.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>G.installModule(e)):G.installModule(e),G}}Object.keys($).forEach(e=>{Object.keys($[e]).forEach(t=>{G.prototype[t]=$[e][t]})}),G.use([function({swiper:e,on:t,emit:i}){let s=h(),r=null,n=null,a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{n=s.requestAnimationFrame(()=>{let{width:i,height:s}=e,r=i,n=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(r=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),(r!==i||n!==s)&&a()})})).observe(e.el)},l=()=>{n&&s.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},u=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==s.ResizeObserver){o();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),t("destroy",()=>{l(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})},function({swiper:e,extendParams:t,on:i,emit:s}){let r=[],n=h(),a=(t,i={})=>{let a=new(n.MutationObserver||n.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length){s("observerUpdate",t[0]);return}let i=function(){s("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(i):n.setTimeout(i,0)});a.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),r.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=S(e.el);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),i("destroy",()=>
1{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);var W=G;function H(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function U({swiper:e,extendParams:t,on:i,emit:s}){let r;let n="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0,o=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function u(t,i){let{bulletActiveClass:s}=e.params.pagination;t&&(t=t[`${"prev"===i?"previous":"next"}ElementSibling`])&&(t.classList.add(`${s}-${i}`),(t=t[`${"prev"===i?"previous":"next"}ElementSibling`])&&t.classList.add(`${s}-${i}-${i}`))}function d(t){let i=t.target.closest(H(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();let s=x(i)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===s)return;let t=e.getSlideIndexByData(s),i=e.getSlideIndexByData(e.realIndex);t>e.slides.length-e.loopedSlides&&e.loopFix({direction:t>i?"next":"prev",activeSlideIndex:t,slideTo:!1}),e.slideToLoop(s)}else e.slideTo(s)}function h(){let t,i;let n=e.rtl,d=e.params.pagination;if(l())return;let h=e.pagination.el;h=o(h);let c=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(c/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(i=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(t=e.snapIndex,i=e.previousSnapIndex):(i=e.previousIndex||0,t=e.activeIndex||0),"bullets"===d.type&&e.pagination.bullets&&e.pagination.bullets.length>0){let s,o,l;let c=e.pagination.bullets;if(d.dynamicBullets&&(r=T(c[0],e.isHorizontal()?"width":"height",!0),h.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=`${r*(d.dynamicMainBullets+4)}px`}),d.dynamicMainBullets>1&&void 0!==i&&((a+=t-(i||0))>d.dynamicMainBullets-1?a=d.dynamicMainBullets-1:a<0&&(a=0)),l=((o=(s=Math.max(t-a,0))+(Math.min(c.length,d.dynamicMainBullets)-1))+s)/2),c.forEach(e=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${d.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),h.length>1)c.forEach(i=>{let r=x(i);r===t?i.classList.add(...d.bulletActiveClass.split(" ")):e.isElement&&i.setAttribute("part","bullet"),d.dynamicBullets&&(r>=s&&r<=o&&i.classList.add(...`${d.bulletActiveClass}-main`.split(" ")),r===s&&u(i,"prev"),r===o&&u(i,"next"))});else{let i=c[t];if(i&&i.classList.add(...d.bulletActiveClass.split(" ")),e.isElement&&c.forEach((e,i)=>{e.setAttribute("part",i===t?"bullet-active":"bullet")}),d.dynamicBullets){let e=c[s],t=c[o];for(let e=s;e<=o;e+=1)c[e]&&c[e].classList.add(...`${d.bulletActiveClass}-main`.split(" "));u(e,"prev"),u(t,"next")}}if(d.dynamicBullets){let t=Math.min(c.length,d.dynamicMainBullets+4),i=(r*t-r)/2-l*r,s=n?"right":"left";c.forEach(t=>{t.style[e.isHorizontal()?s:"top"]=`${i}px`})}}h.forEach((i,r)=>{if("fraction"===d.type&&(i.querySelectorAll(H(d.currentClass)).forEach(e=>{e.textContent=d.formatFractionCurrent(t+1)}),i.querySelectorAll(H(d.totalClass)).forEach(e=>{e.textContent=d.formatFractionTotal(p)})),"progressbar"===d.type){let s;s=d.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let r=(t+1)/p,n=1,a=1;"horizontal"===s?n=r:a=r,i.querySelectorAll(H(d.progressbarFillClass)).forEac
1h(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===d.type&&d.renderCustom?(i.innerHTML=d.renderCustom(e,t+1,p),0===r&&s("paginationRender",i)):(0===r&&s("paginationRender",i),s("paginationUpdate",i)),e.params.watchOverflow&&e.enabled&&i.classList[e.isLocked?"add":"remove"](d.lockClass)})}function c(){let t=e.params.pagination;if(l())return;let i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.el;r=o(r);let n="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?n+=t.renderBullet.call(e,i,t.bulletClass):n+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],r.forEach(i=>{"custom"!==t.type&&(i.innerHTML=n||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(H(t.bulletClass)))}),"custom"!==t.type&&s("paginationRender",r[0])}function p(){var t,i,s;let r;e.params.pagination=(t=e.originalParams.pagination,i=e.params.pagination,s={el:"swiper-pagination"},e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&!0===i.auto){let n=y(e.el,`.${s[r]}`)[0];n||((n=b("div",s[r])).className=s[r],e.el.append(n)),i[r]=n,t[r]=n}}),i);let n=e.params.pagination;n.el&&("string"==typeof n.el&&e.isElement&&(r=e.el.shadowRoot.querySelector(n.el)),r||"string"!=typeof n.el||(r=[...document.querySelectorAll(n.el)]),r||(r=n.el),r&&0!==r.length&&(e.params.uniqueNavElements&&"string"==typeof n.el&&Array.isArray(r)&&r.length>1&&(r=[...e.el.querySelectorAll(n.el)]).length>1&&(r=r.filter(t=>S(t,".swiper")[0]===e.el)[0]),Array.isArray(r)&&1===r.length&&(r=r[0]),Object.assign(e.pagination,{el:r}),(r=o(r)).forEach(t=>{"bullets"===n.type&&n.clickable&&t.classList.add(n.clickableClass),t.classList.add(n.modifierClass+n.type),t.classList.add(e.isHorizontal()?n.horizontalClass:n.verticalClass),"bullets"===n.type&&n.dynamicBullets&&(t.classList.add(`${n.modifierClass}${n.type}-dynamic`),a=0,n.dynamicMainBullets<1&&(n.dynamicMainBullets=1)),"progressbar"===n.type&&n.progressbarOpposite&&t.classList.add(n.progressbarOppositeClass),n.clickable&&t.addEventListener("click",d),e.enabled||t.classList.add(n.lockClass)})))}function m(){let t=e.params.pagination;if(l())return;let i=e.pagination.el;i&&(i=o(i)).forEach(i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&i.removeEventListener("click",d)}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:i}=e.pagination;(i=o(i)).forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),i("init",()=>{!1===e.params.pagination.enabled?f():(p(),c(),h())}),i("activeIndexChange",()=>{void 0===e.snapIndex&&h()}),i("snapIndexChange",()=>{h()}),i("snapGridLengthChange",()=>{c(),h()}),i("destroy",()=>{m()}),i("enable disable",()=>{let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))}),i("lock unlock",()=>{h()}),i("click",(t,i)=>{let r=i.target,{el:n}=e.pagination;if(Array.isArray(n)||(n=[n].filter(e=>!!e)),e.params.pagination.el&&e.params.pagination.hideOnClick&&n&&n.length>0&&!r.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;!0===n[0].classList.contains(e.params.pagination.hiddenClass)?s("paginationShow"):s("paginationHide"),n.forEac
1h(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass)),m()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass)),p(),c(),h()},disable:f,render:c,update:h,init:p,destroy:m})}function q({swiper:e,extendParams:t,on:i}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function r(e){let t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}let n=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function a(e){(e=n(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function o(e){(e=n(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function l(e,t){(e=n(e)).forEach(e=>{e.setAttribute("role",t)})}function u(e,t){(e=n(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function d(e,t){(e=n(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=n(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function c(e){(e=n(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function p(t){if(13!==t.keyCode&&32!==t.keyCode)return;let i=e.params.a11y,s=t.target;(!(e.pagination&&e.pagination.el&&(s===e.pagination.el||e.pagination.el.contains(t.target)))||t.target.matches(H(e.params.pagination.bulletClass)))&&(e.navigation&&e.navigation.nextEl&&s===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(i.lastSlideMessage):r(i.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&s===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(i.firstSlideMessage):r(i.prevSlideMessage)),e.pagination&&s.matches(H(e.params.pagination.bulletClass))&&s.click())}function m(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function f(){return m()&&e.params.pagination.clickable}let g=(e,t,i)=>{a(e),"BUTTON"!==e.tagName&&(l(e,"button"),e.addEventListener("keydown",p)),d(e,i),function(e,t){(e=n(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},v=()=>{e.a11y.clicked=!0},y=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},w=t=>{if(e.a11y.clicked)return;let i=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!i||!e.slides.includes(i))return;let s=e.slides.indexOf(i)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);!s&&!r&&(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(i),0)))},S=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&u(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&l(e.slides,t.slideRole);let i=e.slides.length;t.slideLabelMessage&&e.slides.forEach((s,r)=>{let n=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):r;d(s,t.slideLabelMessage.replace(/\{\{index\}\}/,n+1).replace(/\{\{slidesLength\}\}/,i))})},T=()=>{let t=e.params.a11y;e.isElement?e.el.shadowEl.append(s):e.el.append(s);let i=e.el;t.containerRoleDescriptionMessage&&u(i,t.containerRoleDescriptionMessage),t.containerMessage&&d(i,t.containerMessage);let r=e.wrapperEl,a=t.id||r.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,o=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";!function(e,t){(e=n(e)).forEach(e=>{e.setAttribute("id",t)})}(r,a),function(e,t){(e=n(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,o),S();let{nextEl:l,prevEl:h}=e.navigation?e.navigation:{};
1l=n(l),h=n(h),l&&l.forEach(e=>g(e,a,t.nextSlideMessage)),h&&h.forEach(e=>g(e,a,t.prevSlideMessage)),f()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.addEventListener("keydown",p)}),e.el.addEventListener("focus",w,!0),e.el.addEventListener("pointerdown",v,!0),e.el.addEventListener("pointerup",y,!0)};i("beforeInit",()=>{(s=b("span",e.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),i("afterInit",()=>{e.params.a11y.enabled&&T()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&S()}),i("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:i}=e.navigation;i&&(e.isBeginning?(h(i),o(i)):(c(i),a(i))),t&&(e.isEnd?(h(t),o(t)):(c(t),a(t)))}()}),i("paginationUpdate",()=>{e.params.a11y.enabled&&function(){let t=e.params.a11y;m()&&e.pagination.bullets.forEach(i=>{e.params.pagination.clickable&&(a(i),e.params.pagination.renderBullet||(l(i,"button"),d(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,x(i)+1)))),i.matches(H(e.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),i("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:t,prevEl:i}=e.navigation?e.navigation:{};t=n(t),i=n(i),t&&t.forEach(e=>e.removeEventListener("keydown",p)),i&&i.forEach(e=>e.removeEventListener("keydown",p)),f()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.removeEventListener("keydown",p)}),e.el.removeEventListener("focus",w,!0),e.el.removeEventListener("pointerdown",v,!0),e.el.removeEventListener("pointerup",y,!0)}()})}function Y({swiper:e,extendParams:t,on:i,emit:s,params:r}){let n,a,o,l,d,h,c,p,m;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let f=r&&r.autoplay?r.autoplay.delay:3e3,g=r&&r.autoplay?r.autoplay.delay:3e3,v=new Date().getTime;function y(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",y),P())}let b=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=o,l=!1);let t=e.autoplay.paused?o:v+g-new Date().getTime();e.autoplay.timeLeft=t,s("autoplayTimeLeft",t,t/f),a=requestAnimationFrame(()=>{b()})},w=()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:e.slides[e.activeIndex])return parseInt(t.getAttribute("data-swiper-autoplay"),10)},x=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),b();let i=void 0===t?e.params.autoplay.delay:t;f=e.params.autoplay.delay,g=e.params.autoplay.delay;let r=w();!Number.isNaN(r)&&r>0&&void 0===t&&(i=r,f=r,g=r),o=i;let l=e.params.speed,u=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(l,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,l,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(l,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,l,!0,!0),s("autoplay")),e.params.cssMode&&(v=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return i>0?(clearTimeout(n),n=setTimeout(()=>{u()},i)):requestAnimationFrame(()=>{u()}),i},S=()=>{e.autoplay.running=!0,x(),s("autoplayStart")},T=()=>{e.autoplay.running=!1,clearTimeout(n),cancelAnimationFrame(a),s("autoplayStop")},E=(t,i)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(n),t||(m=!0);let r=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",y):P()};if(e.autoplay.paused=!0,i){p&&(o=e.params.autoplay.delay),p=!1,r();return}o=(o||e.params.autoplay.delay)-(new Date().getTime()-v),e.isEnd&&o<0&&!e.params.loop||(o<0&&(o=0),r())},P=()=>{e.isEnd&&o<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=new Date().getTime(),m?(m=!1,x(o)):x(),e.autoplay.paused=!1,s("autoplayResume"))},C=()=>
1{if(e.destroyed||!e.autoplay.running)return;let t=u();"hidden"===t.visibilityState&&(m=!0,E(!0)),"visible"===t.visibilityState&&P()},M=e=>{"mouse"===e.pointerType&&(m=!0,E(!0))},A=t=>{"mouse"===t.pointerType&&e.autoplay.paused&&P()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",A))},k=()=>{e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",A)},V=()=>{u().addEventListener("visibilitychange",C)},O=()=>{u().removeEventListener("visibilitychange",C)};i("init",()=>{e.params.autoplay.enabled&&(L(),V(),v=new Date().getTime(),S())}),i("destroy",()=>{k(),O(),e.autoplay.running&&T()}),i("beforeTransitionStart",(t,i,s)=>{!e.destroyed&&e.autoplay.running&&(s||!e.params.autoplay.disableOnInteraction?E(!0,!0):T())}),i("sliderFirstMove",()=>{if(!e.destroyed&&e.autoplay.running){if(e.params.autoplay.disableOnInteraction){T();return}d=!0,h=!1,m=!1,c=setTimeout(()=>{m=!0,h=!0,E(!0)},200)}}),i("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(c),clearTimeout(n),e.params.autoplay.disableOnInteraction){h=!1,d=!1;return}h&&e.params.cssMode&&P(),h=!1,d=!1}}),i("slideChange",()=>{!e.destroyed&&e.autoplay.running&&(p=!0)}),Object.assign(e.autoplay,{start:S,stop:T,pause:E,resume:P})}}}]);
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.